Class QualifiedHadMember
- java.lang.Object
-
- org.openprovenance.prov.vanilla.QualifiedHadMember
-
- All Implemented Interfaces:
Equals
,HashCode
,ToString
,QualifiedHadMember
,HadMember
,HasLabel
,HasOther
,HasType
,Identifiable
,QualifiedRelation
,Relation
,Statement
,StatementOrBundle
,UnqualifiedRelation
,HasAttributes
public class QualifiedHadMember extends Object implements QualifiedHadMember, Equals, HashCode, ToString, HasAttributes
-
-
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 QualifiedName
collection
protected List<QualifiedName>
entity
-
Constructor Summary
Constructors Constructor Description QualifiedHadMember(QualifiedName id, QualifiedName collection, Collection<QualifiedName> entity, Collection<Attribute> attributes)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object object)
void
equals(Object object, EqualsBuilder equalsBuilder)
void
equals2(Object object, EqualsBuilder equalsBuilder)
Collection<Attribute>
getAttributes()
QualifiedName
getCollection()
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.QualifiedName
getId()
Gets the value of the id property.Map<QualifiedName,Set<Attribute>>
getIndexedAttributes()
StatementOrBundle.Kind
getKind()
Gets the type of a provenance statementList<LangString>
getLabel()
Gets the value of the label property.List<Other>
getOther()
Gets the list of non-PROV attributes.List<Type>
getType()
Gets the value of theprov:type
property.int
hashCode()
void
hashCode(HashCodeBuilder hashCodeBuilder)
boolean
isUnqualified()
void
setCollection(QualifiedName collection)
Set an identifier for the collection whose member is assertedvoid
setId(QualifiedName value)
Sets the value of the id property.void
setIndexedAttributes(Object qn, Set<Attribute> attributes)
String
toString()
void
toString(ToStringBuilder toStringBuilder)
-
-
-
Field Detail
-
collection
protected QualifiedName collection
-
entity
protected List<QualifiedName> entity
-
-
Constructor Detail
-
QualifiedHadMember
public QualifiedHadMember(QualifiedName id, QualifiedName collection, Collection<QualifiedName> entity, Collection<Attribute> attributes)
-
-
Method Detail
-
isUnqualified
public boolean isUnqualified()
- Specified by:
isUnqualified
in interfaceQualifiedHadMember
-
setCollection
public void setCollection(QualifiedName collection)
Description copied from interface:HadMember
Set an identifier for the collection whose member is asserted- Specified by:
setCollection
in interfaceHadMember
- Parameters:
collection
- QualifiedName for the collection- See Also:
- membership collection
-
getEntity
public List<QualifiedName> getEntity()
Description copied from interface:HadMember
Get the list of identifiers of entities that are member of the collection.- Specified by:
getEntity
in interfaceHadMember
- Returns:
- a list of
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
- See Also:
- membership entity
-
getCollection
public QualifiedName getCollection()
Description copied from interface:HadMember
Get an identifier for the collection whose member is asserted- Specified by:
getCollection
in interfaceHadMember
- Returns:
- QualifiedName for the collection
- See Also:
- membership collection
-
getId
public QualifiedName getId()
Description copied from interface:Identifiable
Gets the value of the id property. A null value means that the object has not been identified.Entity
,Activity
,Agent
have a non-null identifier.- Specified by:
getId
in interfaceIdentifiable
- Returns:
- possible object is
QualifiedName
-
getKind
public StatementOrBundle.Kind getKind()
Description copied from interface:StatementOrBundle
Gets the type of a provenance statement- Specified by:
getKind
in interfaceStatementOrBundle
- Returns:
StatementOrBundle.Kind
-
setId
public void setId(QualifiedName value)
Description copied from interface:Identifiable
Sets the value of the id property.- Specified by:
setId
in interfaceIdentifiable
- Parameters:
value
- allowed object isQualifiedName
-
getLabel
public List<LangString> getLabel()
Description copied from interface:HasLabel
Gets 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
set
method 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
public List<Type> getType()
Description copied from interface:HasType
Gets the value of theprov:type
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 JAXB object. This is why there is not a
set
method 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
public List<Other> getOther()
Description copied from interface:HasOther
Gets 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
set
method for the role property.For example, to add a new item, do as follows:
getOther().add(newItem);
-
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)
-
getAttributes
public Collection<Attribute> getAttributes()
- Specified by:
getAttributes
in interfaceHasAttributes
-
getIndexedAttributes
public Map<QualifiedName,Set<Attribute>> getIndexedAttributes()
- Specified by:
getIndexedAttributes
in interfaceHasAttributes
-
-