Package org.openprovenance.prov.model
Interface HasLabel
-
- 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 HasLabel
Interface for PROV objects that have a role.
PROV-DM Definition for Label: The attribute prov:label provides a human-readable representation of an instance of a PROV-DM type or relation.
Relevant class
- Author:
- lavm
-
-
Method Summary
Modifier and Type Method Description List<LangString>
getLabel()
Gets the value of the label property.
-
-
-
Method Detail
-
getLabel
List<LangString> getLabel()
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
- Returns:
- a List of strings
-
-