Package org.openprovenance.prov.vanilla
Class SpecializationOf
- java.lang.Object
-
- org.openprovenance.prov.vanilla.SpecializationOf
-
- All Implemented Interfaces:
Equals,HashCode,ToString,Relation,SpecializationOf,Statement,StatementOrBundle,UnqualifiedRelation
public class SpecializationOf extends Object implements SpecializationOf, 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 QualifiedNamegeneralEntityprotected QualifiedNamespecificEntity
-
Constructor Summary
Constructors Constructor Description SpecializationOf(QualifiedName specificEntity, QualifiedName generalEntity)
-
Method Summary
Modifier and Type Method Description booleanequals(Object object)voidequals(Object object, EqualsBuilder equalsBuilder)voidequals2(Object object, EqualsBuilder equalsBuilder)QualifiedNamegetGeneralEntity()Returns an identifier of the entity that is being specialized.StatementOrBundle.KindgetKind()Gets the type of a provenance statementQualifiedNamegetSpecificEntity()Returns an identifier of the entity that is a specialization of the general entity.inthashCode()voidhashCode(HashCodeBuilder hashCodeBuilder)voidsetGeneralEntity(QualifiedName eid)Mutator for the entity that is being specialized.voidsetSpecificEntity(QualifiedName aid)Mutator for the entity that is a specialization of the general entity.StringtoString()voidtoString(ToStringBuilder toStringBuilder)
-
-
-
Field Detail
-
specificEntity
protected QualifiedName specificEntity
-
generalEntity
protected QualifiedName generalEntity
-
-
Constructor Detail
-
SpecializationOf
public SpecializationOf(QualifiedName specificEntity, QualifiedName generalEntity)
-
-
Method Detail
-
setSpecificEntity
public void setSpecificEntity(QualifiedName aid)
Description copied from interface:SpecializationOfMutator for the entity that is a specialization of the general entity.- Specified by:
setSpecificEntityin interfaceSpecializationOf- Parameters:
aid- the entity that is a specialization of the general one
-
setGeneralEntity
public void setGeneralEntity(QualifiedName eid)
Description copied from interface:SpecializationOfMutator for the entity that is being specialized.- Specified by:
setGeneralEntityin interfaceSpecializationOf- Parameters:
eid- the entity that is being specialized.
-
getGeneralEntity
public QualifiedName getGeneralEntity()
Description copied from interface:SpecializationOfReturns an identifier of the entity that is being specialized.- Specified by:
getGeneralEntityin interfaceSpecializationOf- Returns:
QualifiedNameof the entity that is being specialized.
-
getSpecificEntity
public QualifiedName getSpecificEntity()
Description copied from interface:SpecializationOfReturns an identifier of the entity that is a specialization of the general entity.- Specified by:
getSpecificEntityin interfaceSpecializationOf- Returns:
QualifiedNameof the entity that is a specialization of the general one.
-
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)
-
-