- All Implemented Interfaces:
org.openprovenance.apache.commons.lang.builder.Equals,org.openprovenance.apache.commons.lang.builder.HashCode,org.openprovenance.apache.commons.lang.builder.ToString,QualifiedSpecializationOf,HasLabel,HasOther,HasType,Identifiable,QualifiedRelation,Relation,SpecializationOf,Statement,StatementOrBundle,UnqualifiedRelation,HasAttributes
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openprovenance.prov.model.StatementOrBundle
StatementOrBundle.Kind -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQualifiedSpecializationOf(QualifiedName id, QualifiedName specificEntity, QualifiedName generalEntity, Collection<Attribute> attributes) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidReturns an identifier of the entity that is being specialized.getId()Gets the value of the id property.getKind()Gets the type of a provenance statementgetLabel()Gets the value of the label property.getOther()Gets the list of non-PROV attributes.Returns an identifier of the entity that is a specialization of the general entity.getType()Gets the value of theprov:typeproperty.inthashCode()voidhashCode(org.openprovenance.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder) booleanvoidsetGeneralEntity(QualifiedName informant) Mutator for the entity that is being specialized.voidsetId(QualifiedName value) Sets the value of the id property.voidsetIndexedAttributes(Object qn, Set<Attribute> attributes) voidsetSpecificEntity(QualifiedName specific) Mutator for the entity that is a specialization of the general entity.toString()voidtoString(org.openprovenance.apache.commons.lang.builder.ToStringBuilder toStringBuilder)
-
Field Details
-
specific
-
generalEntity
-
-
Constructor Details
-
QualifiedSpecializationOf
public QualifiedSpecializationOf(QualifiedName id, QualifiedName specificEntity, QualifiedName generalEntity, Collection<Attribute> attributes)
-
-
Method Details
-
isUnqualified
public boolean isUnqualified()- Specified by:
isUnqualifiedin interfaceQualifiedSpecializationOf
-
setSpecificEntity
Description copied from interface:SpecializationOfMutator for the entity that is a specialization of the general entity.- Specified by:
setSpecificEntityin interfaceSpecializationOf- Parameters:
specific- the entity that is a specialization of the general one
-
setGeneralEntity
Description copied from interface:SpecializationOfMutator for the entity that is being specialized.- Specified by:
setGeneralEntityin interfaceSpecializationOf- Parameters:
informant- the entity that is being specialized.
-
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
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.
-
getId
Description copied from interface:IdentifiableGets the value of the id property. A null value means that the object has not been identified.Entity,Activity,Agenthave a non-null identifier.- Specified by:
getIdin interfaceIdentifiable- Returns:
- possible object is
QualifiedName
-
getKind
Description copied from interface:StatementOrBundleGets the type of a provenance statement- Specified by:
getKindin interfaceStatementOrBundle- Returns:
StatementOrBundle.Kind
-
setId
Description copied from interface:IdentifiableSets the value of the id property.- Specified by:
setIdin interfaceIdentifiable- Parameters:
value- allowed object isQualifiedName
-
getLabel
Description copied from interface:HasLabelGets the value of the label property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the object. This is why there is not a
setmethod for the label property.For example, to add a new item, do as follows:
getLabel().add(newItem);Objects of the following type(s) are allowed in the list
LangString -
getType
Description copied from interface:HasTypeGets the value of theprov:typeproperty.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the type property.For example, to add a new item, do as follows:
getType().add(newItem);Objects of the following type(s) are allowed in the list
Type -
getOther
Description copied from interface:HasOtherGets the list of non-PROV attributes.This accessor method returns a reference to the live list, not a snapshot. Therefore, any modification made to the returned list will be present inside the object. This is why there is not a
setmethod for the role property.For example, to add a new item, do as follows:
getOther().add(newItem); -
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
-
getAttributes
- Specified by:
getAttributesin interfaceHasAttributes
-
setIndexedAttributes
-
getIndexedAttributes
- Specified by:
getIndexedAttributesin interfaceHasAttributes
-