public class Collection extends TopLevel
ACTIVITY, AGENT, ANNOTATION, ATTACHMENT, COLLECTION, COMBINATORIAL_DERIVATION, COMPONENT_DEFINITION, EXPERIMENT, EXPERIMENTAL_DATA, GENERIC_TOP_LEVEL, IMPLEMENTATION, MODEL, MODULE_DEFINITION, PLAN, SEQUENCE| Modifier and Type | Method and Description |
|---|---|
boolean |
addMember(URI memberURI)
Adds the given member URI to this Collection instance's
set of reference member URIs.
|
void |
clearMembers()
Removes all entries of this Collection instance's set of reference
member URIs.
|
boolean |
containsMember(URI memberURI)
Checks if the given URI is included in this Collection
instance's set of member URIs.
|
boolean |
equals(Object obj) |
Set<URI> |
getMemberIdentities()
Returns the set of member identities referenced by this Collection instance.
|
Set<TopLevel> |
getMembers()
Returns the set of objects referenced by this Collection instance's members.
|
Set<URI> |
getMemberURIs()
Returns the set of member URIs referenced by this Collection instance.
|
int |
hashCode() |
boolean |
removeMember(URI memberURI)
Removes the given member from this Collection instance's set of members.
|
void |
setMembers(Set<URI> members)
Clears the existing set of members of this Collection instance first, then adds the given
set of the member references to it.
|
String |
toString() |
addAttachment, addAttachment, addAttachment, clearAttachments, containsAttachment, getAttachments, getAttachmentURIs, removeAttachment, setAttachmentsaddWasDerivedFrom, 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 boolean addMember(URI memberURI) throws SBOLValidationException
memberURI - References to a TopLevel instancetrue if the matching member reference has been added successfully,
false otherwise.SBOLValidationException - if the following SBOL validation rule was violated: 12103.public boolean removeMember(URI memberURI)
memberURI - the member identity URI to be removed from this Collection's memberstrue if the matching member is removed successfully,
false otherwise.public void setMembers(Set<URI> members) throws SBOLValidationException
members - a set of identity URIs of zero or more TopLevel instances to be addedSBOLValidationException - see SBOL validation rule violation at addMember(URI)public Set<URI> getMemberURIs()
public Set<URI> getMemberIdentities()
public Set<TopLevel> getMembers()
public boolean containsMember(URI memberURI)
memberURI - a URI that is checked against this Collection instance's list of member URIstrue if its members contain the given URI, false otherwise.public void clearMembers()
public String toString()
toString in class Identified