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