java.lang.Object
org.openprovenance.prov.vanilla.AlternateOf
- All Implemented Interfaces:
org.openprovenance.apache.commons.lang.builder.Equals,org.openprovenance.apache.commons.lang.builder.HashCode,org.openprovenance.apache.commons.lang.builder.ToString,AlternateOf,Relation,Statement,StatementOrBundle,UnqualifiedRelation
public class AlternateOf
extends Object
implements AlternateOf, org.openprovenance.apache.commons.lang.builder.Equals, org.openprovenance.apache.commons.lang.builder.HashCode, org.openprovenance.apache.commons.lang.builder.ToString
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openprovenance.prov.model.StatementOrBundle
StatementOrBundle.Kind -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidReturns the identifier for the first of the two entities.Returns the identifier for the second of the two entities.getKind()Gets the type of a provenance statementinthashCode()voidhashCode(org.openprovenance.apache.commons.lang.builder.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.toString()voidtoString(org.openprovenance.apache.commons.lang.builder.ToStringBuilder toStringBuilder)
-
Field Details
-
alternate1
-
alternate2
-
-
Constructor Details
-
AlternateOf
-
-
Method Details
-
setAlternate1
Description copied from interface:AlternateOfSets the identifier for the first of the two entities.- Specified by:
setAlternate1in interfaceAlternateOf- Parameters:
alternate1- aQualifiedNamefor second entity
-
setAlternate2
Description copied from interface:AlternateOfSets the identifier for the second of the two entities.- Specified by:
setAlternate2in interfaceAlternateOf- Parameters:
alternate2- aQualifiedNamefor second entity
-
getAlternate2
Description copied from interface:AlternateOfReturns the identifier for the second of the two entities.- Specified by:
getAlternate2in interfaceAlternateOf- Returns:
- a
QualifiedName
-
getAlternate1
Description copied from interface:AlternateOfReturns the identifier for the first of the two entities.- Specified by:
getAlternate1in interfaceAlternateOf- Returns:
- a
QualifiedName
-
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, org.openprovenance.apache.commons.lang.builder.EqualsBuilder equalsBuilder) - Specified by:
equalsin interfaceorg.openprovenance.apache.commons.lang.builder.Equals
-
equals2
public void equals2(Object object, org.openprovenance.apache.commons.lang.builder.EqualsBuilder equalsBuilder) -
equals
-
hashCode
public void hashCode(org.openprovenance.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder) - Specified by:
hashCodein interfaceorg.openprovenance.apache.commons.lang.builder.HashCode
-
hashCode
-
toString
public void toString(org.openprovenance.apache.commons.lang.builder.ToStringBuilder toStringBuilder) - Specified by:
toStringin interfaceorg.openprovenance.apache.commons.lang.builder.ToString
-
toString
-