java.lang.Object
org.openprovenance.prov.vanilla.HadMember
- All Implemented Interfaces:
org.openprovenance.apache.commons.lang.builder.Equals,org.openprovenance.apache.commons.lang.builder.HashCode,org.openprovenance.apache.commons.lang.builder.ToString,HadMember,Relation,Statement,StatementOrBundle,UnqualifiedRelation
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openprovenance.prov.model.StatementOrBundle
StatementOrBundle.Kind -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHadMember(QualifiedName collection, List<QualifiedName> entity) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidGet an identifier for the collection whose member is assertedGet the list of identifiers of entities that are member of the collection.getKind()Gets the type of a provenance statementinthashCode()voidhashCode(org.openprovenance.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder) voidsetCollection(QualifiedName collection) Set an identifier for the collection whose member is assertedtoString()voidtoString(org.openprovenance.apache.commons.lang.builder.ToStringBuilder toStringBuilder)
-
Field Details
-
entity
-
collection
-
-
Constructor Details
-
HadMember
protected HadMember() -
HadMember
-
-
Method Details
-
getCollection
Get an identifier for the collection whose member is asserted- Specified by:
getCollectionin interfaceHadMember- Returns:
- QualifiedName for the collection
- See Also:
-
getEntity
Get the list of identifiers of entities that are member of the collection.- Specified by:
getEntityin interfaceHadMember- Returns:
- a list of
QualifiedNameThis 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 entity property.For example, to add a new item, do as follows:
getEntity().add(newItem);Objects of the following type(s) are allowed in the list
QualifiedName - See Also:
-
setCollection
Set an identifier for the collection whose member is asserted- Specified by:
setCollectionin interfaceHadMember- Parameters:
collection- QualifiedName for the collection- See Also:
-
getKind
Gets 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
-