Package org.openprovenance.prov.vanilla
Class AlternateOf
- java.lang.Object
-
- org.openprovenance.prov.vanilla.AlternateOf
-
- All Implemented Interfaces:
Equals,HashCode,ToString,AlternateOf,Relation,Statement,StatementOrBundle,UnqualifiedRelation
public class AlternateOf extends Object implements AlternateOf, Equals, HashCode, ToString
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openprovenance.prov.model.StatementOrBundle
StatementOrBundle.Kind
-
-
Field Summary
Fields Modifier and Type Field Description protected QualifiedNamealternate1protected QualifiedNamealternate2
-
Constructor Summary
Constructors Constructor Description AlternateOf(QualifiedName alternate1, QualifiedName alternate2)
-
Method Summary
Modifier and Type Method Description booleanequals(Object object)voidequals(Object object, EqualsBuilder equalsBuilder)voidequals2(Object object, EqualsBuilder equalsBuilder)QualifiedNamegetAlternate1()Returns the identifier for the first of the two entities.QualifiedNamegetAlternate2()Returns the identifier for the second of the two entities.StatementOrBundle.KindgetKind()Gets the type of a provenance statementinthashCode()voidhashCode(HashCodeBuilder hashCodeBuilder)voidsetAlternate1(QualifiedName alternate1)Sets the identifier for the first of the two entities.voidsetAlternate2(QualifiedName alternate2)Sets the identifier for the second of the two entities.StringtoString()voidtoString(ToStringBuilder toStringBuilder)
-
-
-
Field Detail
-
alternate1
protected QualifiedName alternate1
-
alternate2
protected QualifiedName alternate2
-
-
Constructor Detail
-
AlternateOf
public AlternateOf(QualifiedName alternate1, QualifiedName alternate2)
-
-
Method Detail
-
setAlternate1
public void setAlternate1(QualifiedName alternate1)
Description copied from interface:AlternateOfSets the identifier for the first of the two entities.- Specified by:
setAlternate1in interfaceAlternateOf- Parameters:
alternate1- aQualifiedNamefor second entity
-
setAlternate2
public void setAlternate2(QualifiedName alternate2)
Description copied from interface:AlternateOfSets the identifier for the second of the two entities.- Specified by:
setAlternate2in interfaceAlternateOf- Parameters:
alternate2- aQualifiedNamefor second entity
-
getAlternate2
public QualifiedName getAlternate2()
Description copied from interface:AlternateOfReturns the identifier for the second of the two entities.- Specified by:
getAlternate2in interfaceAlternateOf- Returns:
- a
QualifiedName
-
getAlternate1
public QualifiedName getAlternate1()
Description copied from interface:AlternateOfReturns the identifier for the first of the two entities.- Specified by:
getAlternate1in interfaceAlternateOf- Returns:
- a
QualifiedName
-
getKind
public StatementOrBundle.Kind getKind()
Description copied from interface:StatementOrBundleGets the type of a provenance statement- Specified by:
getKindin interfaceStatementOrBundle- Returns:
StatementOrBundle.Kind
-
equals
public void equals(Object object, EqualsBuilder equalsBuilder)
-
equals2
public void equals2(Object object, EqualsBuilder equalsBuilder)
-
hashCode
public void hashCode(HashCodeBuilder hashCodeBuilder)
-
toString
public void toString(ToStringBuilder toStringBuilder)
-
-