Package org.openprovenance.prov.vanilla
Class HadMember
- java.lang.Object
-
- org.openprovenance.prov.vanilla.HadMember
-
-
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 QualifiedNamecollectionprotected List<QualifiedName>entity
-
Constructor Summary
Constructors Modifier Constructor Description protectedHadMember()HadMember(QualifiedName collection, List<QualifiedName> entity)
-
Method Summary
Modifier and Type Method Description booleanequals(Object object)voidequals(Object object, EqualsBuilder equalsBuilder)voidequals2(Object object, EqualsBuilder equalsBuilder)QualifiedNamegetCollection()Get an identifier for the collection whose member is assertedList<QualifiedName>getEntity()Get the list of identifiers of entities that are member of the collection.StatementOrBundle.KindgetKind()Gets the type of a provenance statementinthashCode()voidhashCode(HashCodeBuilder hashCodeBuilder)voidsetCollection(QualifiedName collection)Set an identifier for the collection whose member is assertedStringtoString()voidtoString(ToStringBuilder toStringBuilder)
-
-
-
Field Detail
-
entity
protected List<QualifiedName> entity
-
collection
protected QualifiedName collection
-
-
Constructor Detail
-
HadMember
protected HadMember()
-
HadMember
public HadMember(QualifiedName collection, List<QualifiedName> entity)
-
-
Method Detail
-
getCollection
public QualifiedName getCollection()
Get an identifier for the collection whose member is asserted- Specified by:
getCollectionin interfaceHadMember- Returns:
- QualifiedName for the collection
- See Also:
- membership collection
-
getEntity
public List<QualifiedName> 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:
- membership entity
-
setCollection
public void setCollection(QualifiedName collection)
Set an identifier for the collection whose member is asserted- Specified by:
setCollectionin interfaceHadMember- Parameters:
collection- QualifiedName for the collection- See Also:
- membership collection
-
getKind
public StatementOrBundle.Kind getKind()
Gets 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)
-
-