Package org.openprovenance.prov.model
Interface HasRole
-
- All Known Subinterfaces:
Used
,WasAssociatedWith
,WasEndedBy
,WasGeneratedBy
,WasInvalidatedBy
,WasStartedBy
- All Known Implementing Classes:
Used
,WasAssociatedWith
,WasEndedBy
,WasGeneratedBy
,WasInvalidatedBy
,WasStartedBy
public interface HasRole
Interface for PROV objects that have a role.
PROV-DM Definition for Role: A role is the function of an entity or agent with respect to an activity, in the context of a usage, generation, invalidation, association, start, and end.
Relevant class
-
-
Method Detail
-
getRole
List<Role> getRole()
Gets the value of the role property.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:
getRole().add(newItem);
- Returns:
- a list of objects of type
Role
-
-