public class Participation extends Measured
Modifier and Type | Method and Description |
---|---|
boolean |
addRole(URI roleURI)
Adds the given role to this participation's set of roles.
|
boolean |
containsRole(URI roleURI)
Checks if the given role is included in this participation's set of roles.
|
boolean |
equals(Object obj) |
FunctionalComponent |
getParticipant()
Returns the functional component this participation refers to.
|
ComponentDefinition |
getParticipantDefinition()
Returns the component definition referenced by this participation's participant.
|
URI |
getParticipantIdentity()
Returns the functional component identity this participation refers to.
|
URI |
getParticipantURI()
Returns the FunctionalComponent URI that this participation refers to.
|
Set<URI> |
getRoles()
Returns the set of role URIs owned by this participation.
|
int |
hashCode() |
boolean |
removeRole(URI roleURI)
Removes the given role from the set of roles.
|
void |
setParticipant(URI participant)
Sets the participant property of this object to the given one.
|
void |
setRoles(Set<URI> roles)
Clears the existing set of roles first, and then adds the given
set of the roles to this participation.
|
String |
toString() |
clearMeasures, createMeasure, getMeasure, getMeasure, getMeasures, removeMeasure
addWasDerivedFrom, addWasGeneratedBy, clearAnnotations, clearWasDerivedFroms, clearWasGeneratedBys, containsWasDerivedFrom, containsWasGeneratedBy, createAnnotation, createAnnotation, createAnnotation, createAnnotation, createAnnotation, createAnnotation, getAnnotation, getAnnotations, getDescription, getDisplayId, getIdentity, getName, getPersistentIdentity, getVersion, getWasDerivedFrom, getWasDerivedFroms, getWasGeneratedBys, hasAnnotations, isSetDescription, isSetDisplayId, isSetName, isSetPersistentIdentity, isSetVersion, isSetWasDerivedFrom, removeAnnotation, removeWasDerivedFrom, removeWasGeneratedBy, setDescription, setName, setWasDerivedFrom, setWasDerivedFroms, setWasGeneratedBys, unsetDescription, unsetName, unsetWasDerivedFrom
public URI getParticipantURI()
public URI getParticipantIdentity()
public FunctionalComponent getParticipant()
public ComponentDefinition getParticipantDefinition()
public void setParticipant(URI participant) throws SBOLValidationException
participant
- the participant property to set toSBOLValidationException
- if either of the following SBOL validation rules was violated: 12002, 12003.public boolean addRole(URI roleURI)
roleURI
- the given role to be addedtrue
if this set did not already contain the given role,
or false
otherwisepublic boolean removeRole(URI roleURI) throws SBOLValidationException
roleURI
- the given role to be removedtrue
if the matching role reference was removed successfully, or false
otherwise.SBOLValidationException
- if the following SBOL validation rule was violated: 12004.public void setRoles(Set<URI> roles) throws SBOLValidationException
roles
- the set of roles to set toSBOLValidationException
- if the following SBOL validation rule was violated: 12004.public Set<URI> getRoles()
public boolean containsRole(URI roleURI)
roleURI
- the given role to be checkedtrue
if this set contains the specified URI, or false
otherwise