- All Implemented Interfaces:
DictionaryMembership,HasLabel,HasOther,HasType,Identifiable,Relation,Statement,StatementOrBundle
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openprovenance.prov.model.StatementOrBundle
StatementOrBundle.Kind -
Constructor Summary
ConstructorsConstructorDescriptionDictionaryMembership(QualifiedName id, QualifiedName dictionary, List<Entry> keyEntityPair, Collection<Attribute> attributes) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidGet an identifier for the dictionary whose members are asserted.getId()Gets the value of the id property.A list of entries (key-entity pairs) that are members of the dictionary.getKind()Gets the type of a provenance statementgetLabel()Gets the value of the label property.getOther()Gets the list of non-PROV attributes.getType()Gets the value of theprov:typeproperty.inthashCode()voidhashCode(org.openprovenance.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder) voidsetDictionary(QualifiedName dictionary) Set an identifier for the dictionary whose members are asserted.voidsetId(QualifiedName id) Sets the value of the id property.toString()voidtoString(org.openprovenance.apache.commons.lang.builder.ToStringBuilder toStringBuilder)
-
Constructor Details
-
DictionaryMembership
public DictionaryMembership(QualifiedName id, QualifiedName dictionary, List<Entry> keyEntityPair, Collection<Attribute> attributes)
-
-
Method Details
-
getDictionary
Description copied from interface:DictionaryMembershipGet an identifier for the dictionary whose members are asserted.- Specified by:
getDictionaryin interfaceDictionaryMembership- Returns:
QualifiedNameof the dictionary- See Also:
-
getKeyEntityPair
Description copied from interface:DictionaryMembershipA list of entries (key-entity pairs) that are members of the dictionary. Note that while the conceptual models allows for one key-entity pair to be asserted at the time,DictionaryMembershipallows for multiple pairs to be asserted.- Specified by:
getKeyEntityPairin interfaceDictionaryMembership- Returns:
- a list of
Entry - See Also:
-
setDictionary
Description copied from interface:DictionaryMembershipSet an identifier for the dictionary whose members are asserted.- Specified by:
setDictionaryin interfaceDictionaryMembership- Parameters:
dictionary- aQualifiedNameof the dictionary- See Also:
-
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) -
equals
-
hashCode
public void hashCode(org.openprovenance.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder) -
hashCode
-
toString
public void toString(org.openprovenance.apache.commons.lang.builder.ToStringBuilder toStringBuilder) -
toString
-
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 -
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); -
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 -
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
-
setId
Description copied from interface:IdentifiableSets the value of the id property.- Specified by:
setIdin interfaceIdentifiable- Parameters:
id- allowed object isQualifiedName
-