Class ActedOnBehalfOf
- java.lang.Object
-
- org.openprovenance.prov.vanilla.ActedOnBehalfOf
-
- All Implemented Interfaces:
Equals
,HashCode
,ToString
,ActedOnBehalfOf
,HasLabel
,HasOther
,HasType
,Identifiable
,Influence
,QualifiedRelation
,Relation
,Statement
,StatementOrBundle
,HasAttributes
public class ActedOnBehalfOf extends Object implements ActedOnBehalfOf, 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
delegate
static QualifiedName
QUALIFIED_NAME_XSD_STRING
protected QualifiedName
responsible
-
Constructor Summary
Constructors Constructor Description ActedOnBehalfOf(QualifiedName id, Collection<Attribute> attributes)
ActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible, QualifiedName activity, Collection<Attribute> attributes)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object object)
void
equals(Object object, EqualsBuilder equalsBuilder)
QualifiedName
getActivity()
Get the activity identifier.Collection<Attribute>
getAttributes()
QualifiedName
getDelegate()
Get the delegate identifier.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.QualifiedName
getResponsible()
Get the responsible identifier.List<Type>
getType()
Gets the value of theprov:type
property.int
hashCode()
void
hashCode(HashCodeBuilder hashCodeBuilder)
void
setActivity(QualifiedName eid)
Set the activity identifier.void
setDelegate(QualifiedName aid)
Set the delegate identifier.void
setId(QualifiedName value)
Sets the value of the id property.void
setIndexedAttributes(Object qn, Set<Attribute> attributes)
void
setResponsible(QualifiedName aid)
Set the responsible identifierString
toString()
void
toString(ToStringBuilder toStringBuilder)
-
-
-
Field Detail
-
QUALIFIED_NAME_XSD_STRING
public static final QualifiedName QUALIFIED_NAME_XSD_STRING
-
delegate
protected QualifiedName delegate
-
responsible
protected QualifiedName responsible
-
-
Constructor Detail
-
ActedOnBehalfOf
public ActedOnBehalfOf(QualifiedName id, Collection<Attribute> attributes)
-
ActedOnBehalfOf
public ActedOnBehalfOf(QualifiedName id, QualifiedName delegate, QualifiedName responsible, QualifiedName activity, Collection<Attribute> attributes)
-
-
Method Detail
-
setDelegate
public void setDelegate(QualifiedName aid)
Description copied from interface:ActedOnBehalfOf
Set the delegate identifier.- Specified by:
setDelegate
in interfaceActedOnBehalfOf
- Parameters:
aid
- QualifiedName of the delegate agent.- See Also:
- delegation delegate
-
setResponsible
public void setResponsible(QualifiedName aid)
Description copied from interface:ActedOnBehalfOf
Set the responsible identifier- Specified by:
setResponsible
in interfaceActedOnBehalfOf
- Parameters:
aid
- QualifiedName of the responsible agent.- See Also:
- delegation responsible
-
setActivity
public void setActivity(QualifiedName eid)
Description copied from interface:ActedOnBehalfOf
Set the activity identifier.- Specified by:
setActivity
in interfaceActedOnBehalfOf
- Parameters:
eid
- QualifiedName of the activity- See Also:
- delegation activity
-
getDelegate
public QualifiedName getDelegate()
Description copied from interface:ActedOnBehalfOf
Get the delegate identifier. The delegate is the agent associated with an activity, acting on behalf of the responsible agent.- Specified by:
getDelegate
in interfaceActedOnBehalfOf
- Returns:
- a QualifiedName
- See Also:
- delegation delegate
-
getResponsible
public QualifiedName getResponsible()
Description copied from interface:ActedOnBehalfOf
Get the responsible identifier. The responsible is the agent, on behalf of which the delegate agent acted.- Specified by:
getResponsible
in interfaceActedOnBehalfOf
- Returns:
- a QualifiedName
- See Also:
- delegation responsible
-
getActivity
public QualifiedName getActivity()
Description copied from interface:ActedOnBehalfOf
Get the activity identifier. This is the activity for which the delegation link holds.- Specified by:
getActivity
in interfaceActedOnBehalfOf
- Returns:
- the activity QualifiedName
- See Also:
- delegation activity
-
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)
-
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
-
-