Class WasDerivedFrom
- java.lang.Object
-
- org.openprovenance.prov.vanilla.WasDerivedFrom
-
- All Implemented Interfaces:
Equals,HashCode,ToString,HasLabel,HasOther,HasType,Identifiable,Influence,QualifiedRelation,Relation,Statement,StatementOrBundle,WasDerivedFrom,HasAttributes
public class WasDerivedFrom extends Object implements WasDerivedFrom, 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 Optional<QualifiedName>activityprotected QualifiedNamegeneratedEntityprotected Optional<QualifiedName>generationprotected Optional<QualifiedName>usageprotected QualifiedNameusedEntity
-
Constructor Summary
Constructors Constructor Description WasDerivedFrom(QualifiedName id, Collection<Attribute> attributes)WasDerivedFrom(QualifiedName id, QualifiedName generatedEntity, QualifiedName usedEntity, Collection<Attribute> attributes)WasDerivedFrom(QualifiedName id, QualifiedName generatedEntity, QualifiedName usedEntity, QualifiedName activity, Collection<Attribute> attributes)WasDerivedFrom(QualifiedName id, QualifiedName generatedEntity, QualifiedName usedEntity, QualifiedName activity, QualifiedName generation, QualifiedName usage, Collection<Attribute> attributes)
-
Method Summary
-
-
-
Field Detail
-
generatedEntity
protected QualifiedName generatedEntity
-
usedEntity
protected QualifiedName usedEntity
-
activity
protected Optional<QualifiedName> activity
-
generation
protected Optional<QualifiedName> generation
-
usage
protected Optional<QualifiedName> usage
-
-
Constructor Detail
-
WasDerivedFrom
public WasDerivedFrom(QualifiedName id, Collection<Attribute> attributes)
-
WasDerivedFrom
public WasDerivedFrom(QualifiedName id, QualifiedName generatedEntity, QualifiedName usedEntity, Collection<Attribute> attributes)
-
WasDerivedFrom
public WasDerivedFrom(QualifiedName id, QualifiedName generatedEntity, QualifiedName usedEntity, QualifiedName activity, Collection<Attribute> attributes)
-
WasDerivedFrom
public WasDerivedFrom(QualifiedName id, QualifiedName generatedEntity, QualifiedName usedEntity, QualifiedName activity, QualifiedName generation, QualifiedName usage, Collection<Attribute> attributes)
-
-
Method Detail
-
setActivity
public void setActivity(QualifiedName aid)
- Specified by:
setActivityin interfaceWasDerivedFrom
-
setGeneration
public void setGeneration(QualifiedName gen)
- Specified by:
setGenerationin interfaceWasDerivedFrom
-
setUsage
public void setUsage(QualifiedName use)
- Specified by:
setUsagein interfaceWasDerivedFrom
-
setUsedEntity
public void setUsedEntity(QualifiedName eid)
- Specified by:
setUsedEntityin interfaceWasDerivedFrom
-
setGeneratedEntity
public void setGeneratedEntity(QualifiedName eid)
- Specified by:
setGeneratedEntityin interfaceWasDerivedFrom
-
getUsedEntity
public QualifiedName getUsedEntity()
- Specified by:
getUsedEntityin interfaceWasDerivedFrom
-
getUsage
public QualifiedName getUsage()
- Specified by:
getUsagein interfaceWasDerivedFrom
-
getGeneratedEntity
public QualifiedName getGeneratedEntity()
- Specified by:
getGeneratedEntityin interfaceWasDerivedFrom
-
getGeneration
public QualifiedName getGeneration()
- Specified by:
getGenerationin interfaceWasDerivedFrom
-
getActivity
public QualifiedName getActivity()
- Specified by:
getActivityin interfaceWasDerivedFrom
-
getId
public QualifiedName getId()
Description copied from interface:IdentifiableGets the value of the id property. A null value means that the object has not been identified.Entity,Activity,Agenthave a non-null identifier.- Specified by:
getIdin interfaceIdentifiable- Returns:
- possible object is
QualifiedName
-
getKind
public StatementOrBundle.Kind getKind()
Description copied from interface:StatementOrBundleGets the type of a provenance statement- Specified by:
getKindin interfaceStatementOrBundle- Returns:
StatementOrBundle.Kind
-
setId
public void setId(QualifiedName value)
Description copied from interface:IdentifiableSets the value of the id property.- Specified by:
setIdin interfaceIdentifiable- Parameters:
value- allowed object isQualifiedName
-
getLabel
public List<LangString> getLabel()
Description copied from interface:HasLabelGets 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
setmethod 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:HasTypeGets the value of theprov:typeproperty.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
setmethod 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:HasOtherGets 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
setmethod 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:
getAttributesin interfaceHasAttributes
-
getIndexedAttributes
public Map<QualifiedName,Set<Attribute>> getIndexedAttributes()
- Specified by:
getIndexedAttributesin interfaceHasAttributes
-
-