public class Participation extends Identified
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.
|
FunctionalComponent |
getParticipant()
Returns the functional component this participation refers to.
|
ComponentDefinition |
getParticipantDefinition()
Returns the component definition referenced by this participation's participant.
|
URI |
getParticipantURI()
Returns the FunctionalComponent URI that this participation refers to.
|
Set<URI> |
getRoles()
Returns the set of role URIs owned by this participation.
|
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() |
addWasDerivedFrom, clearAnnotations, clearWasDerivedFroms, containsWasDerivedFrom, createAnnotation, createAnnotation, createAnnotation, createAnnotation, createAnnotation, createAnnotation, equals, getAnnotation, getAnnotations, getDescription, getDisplayId, getIdentity, getName, getPersistentIdentity, getVersion, getWasDerivedFrom, getWasDerivedFroms, hasAnnotations, hashCode, isSetDescription, isSetDisplayId, isSetName, isSetPersistentIdentity, isSetVersion, isSetWasDerivedFrom, removeAnnotation, removeWasDerivedFrom, setDescription, setName, setWasDerivedFrom, setWasDerivedFroms, unsetDescription, unsetName, unsetWasDerivedFrom
public URI getParticipantURI()
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
otherwisepublic String toString()
toString
in class Identified
Copyright © 2017. All rights reserved.