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
Modifier and Type | Method and Description |
---|---|
List<LangString> |
getLabel()
Gets the value of the label property.
|
List<LangString> getLabel()
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
Copyright © 2016. All rights reserved.