public class Association extends Identified
| Modifier and Type | Method and Description | 
|---|---|
| boolean | addRole(ActivityRoleType role)Adds the given role to this association's set of roles. | 
| boolean | addRole(URI roleURI)Adds the given role URI to this association's set of role URIs. | 
| void | clearRoles()Removes all entries of this associations's set of role URIs. | 
| boolean | containsRole(URI roleURI)Checks if the given role URI is included in this association's set of role URIs. | 
| boolean | equals(Object obj) | 
| Agent | getAgent()Returns the agent referenced by this association. | 
| URI | getAgentIdentity()Returns the agent identity referenced by this association. | 
| URI | getAgentURI()Returns the reference agent URI. | 
| Plan | getPlan()Returns the plan referenced by this association. | 
| URI | getPlanIdentity()Returns the plan identity referenced by this association. | 
| URI | getPlanURI()Returns the reference plan URI. | 
| Set<URI> | getRoles()Returns the set of role URIs owned by this association. | 
| int | hashCode() | 
| boolean | isSetPlan()Test if the plan is set. | 
| boolean | removeRole(URI roleURI)Removes the given role URI from the set of roles. | 
| void | setAgent(URI agent) | 
| void | setPlan(URI plan) | 
| void | setRoles(Set<URI> roles)Clears the existing set of roles first, and then adds the given
 set of the roles to this association. | 
| String | toString() | 
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, unsetWasDerivedFrompublic int hashCode()
hashCode in class Identifiedpublic boolean equals(Object obj)
equals in class Identifiedpublic boolean addRole(URI roleURI)
roleURI - the role URI to be addedtrue if this set did not already contain the specified role, false otherwise.public boolean addRole(ActivityRoleType role)
role - the role to be addedtrue if this set did not already contain the specified role, false otherwise.public boolean removeRole(URI roleURI)
roleURI - the given role URI to be removedtrue if the matching role reference was removed successfully, false otherwise.public Set<URI> getRoles()
public void setRoles(Set<URI> roles)
roles - the set of roles to set topublic boolean containsRole(URI roleURI)
roleURI - the role URI to be checkedtrue if this set contains the given role URI, false otherwise.public void clearRoles()
public URI getAgentURI()
public URI getAgentIdentity()
null if the associated SBOLDocument instance is null or no matching
 agent referenced by this association exists; 
 or the matching agent otherwise.public Agent getAgent()
null if the associated SBOLDocument instance is null or no matching
 agent referenced by this association exists; 
 or the matching agent otherwise.public void setAgent(URI agent) throws SBOLValidationException
agent - the agent to setSBOLValidationException - if either of the following SBOL validation rules was violated: 12605, 12606.public boolean isSetPlan()
true if it is not null, or false otherwisepublic URI getPlanURI()
public URI getPlanIdentity()
null if the associated SBOLDocument instance is null or no matching
 plan referenced by this association exists; 
 or the matching plan otherwise.public Plan getPlan()
null if the associated SBOLDocument instance is null or no matching
 plan referenced by this association exists; 
 or the matching plan otherwise.public void setPlan(URI plan) throws SBOLValidationException
plan - the plan to setSBOLValidationException - if the following SBOL validation rule was violated: 12604.public String toString()
toString in class Identified