Package org.openprovenance.prov.model
Interface HasType
-
- All Known Subinterfaces:
ActedOnBehalfOf
,Activity
,Agent
,DerivedByInsertionFrom
,DerivedByRemovalFrom
,Element
,Entity
,Influence
,QualifiedAlternateOf
,QualifiedHadMember
,QualifiedRelation
,QualifiedSpecializationOf
,Used
,WasAssociatedWith
,WasAttributedTo
,WasDerivedFrom
,WasEndedBy
,WasGeneratedBy
,WasInfluencedBy
,WasInformedBy
,WasInvalidatedBy
,WasStartedBy
- All Known Implementing Classes:
ActedOnBehalfOf
,Activity
,Agent
,Entity
,QualifiedAlternateOf
,QualifiedHadMember
,QualifiedSpecializationOf
,Used
,WasAssociatedWith
,WasAttributedTo
,WasDerivedFrom
,WasEndedBy
,WasGeneratedBy
,WasInfluencedBy
,WasInformedBy
,WasInvalidatedBy
,WasStartedBy
public interface HasType
Interface for PROV objects that have a type.
PROV-DM Definition for prov:type: The attribute prov:type provides further typing information for any construct with an optional set of attribute-value pairs.
Relevant class
-
-
Method Detail
-
getType
List<Type> getType()
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
- Returns:
- a List of Type values
-
-