public interface HadMember extends Relation
Interface for PROV Collection Membership
PROV-DM Definition for Collection Membership: Membership is the belonging of an entity to a collection.
Relevant Factory Methods:
ProvFactory.newHadMember(QualifiedName, java.util.Collection)
ProvFactory.newHadMember(QualifiedName, QualifiedName...)
ObjectFactory.createHadMember()
Schema Definition:
The following schema fragment specifies the expected content contained within this class.
<complexType name="Membership">
<complexContent>
<extension base="{http://www.w3.org/ns/prov#}AStatement">
<sequence>
<element name="collection" type="{http://www.w3.org/ns/prov#}IDRef"/>
<element name="entity" type="{http://www.w3.org/ns/prov#}IDRef" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
StatementOrBundle.Kind| Modifier and Type | Method and Description |
|---|---|
QualifiedName |
getCollection()
Get an identifier for the collection whose member is asserted
|
List<QualifiedName> |
getEntity()
Get the list of identifiers of entities that are member of the collection.
|
void |
setCollection(QualifiedName collection)
Set an identifier for the collection whose member is asserted
|
getKindQualifiedName getCollection()
List<QualifiedName> getEntity()
QualifiedName
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 set method 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
void setCollection(QualifiedName collection)
collection - QualifiedName for the collectionCopyright © 2015. All rights reserved.