- 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 Summary
-
Method Details
-
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
setmethod 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
-