public abstract class TopLevel extends Identified
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVITY
The abbreviation for the Activity type in URI
|
static String |
AGENT
The abbreviation for the Agent type in URI
|
static String |
ANNOTATION
The abbreviation for the Annotation type in URI
|
static String |
ATTACHMENT
The abbreviation for the Attachment type in URI
|
static String |
COLLECTION
The abbreviation for the Collection type in URI
|
static String |
COMBINATORIAL_DERIVATION
The abbreviation for the CombinatorialDerivation type in URI
|
static String |
COMPONENT_DEFINITION
The abbreviation for the ComponentDefinition type in URI
|
static String |
EXPERIMENT
The abbreviation for the Experiment type in URI
|
static String |
EXPERIMENTAL_DATA
The abbreviation for the Experimental_DATA type in URI
|
static String |
GENERIC_TOP_LEVEL
The abbreviation for the GenericTopLevel type in URI
|
static String |
IMPLEMENTATION
The abbreviation for the Implementation type in URI
|
static String |
MODEL
The abbreviation for the Model type in URI
|
static String |
MODULE_DEFINITION
The abbreviation for the ModuleDefinition type in URI
|
static String |
PLAN
The abbreviation for the Plan type in URI
|
static String |
SEQUENCE
The abbreviation for the Sequence type in URI
|
Modifier and Type | Method and Description |
---|---|
boolean |
addAttachment(Attachment attachment)
Adds the URI of the given Attachment instance to this top level's
set of attachment URIs.
|
boolean |
addAttachment(String displayId)
Constructs a compliant sequence URI using the given attachment display ID, and then adds this URI to
this top level's set of attachment URIs.
|
boolean |
addAttachment(String displayId,
String version)
Constructs a compliant attachment URI with the given display ID and version, and then adds this URI
to this top level's set of attachment URIs.
|
void |
clearAttachments()
Removes all entries of this top level's list of attachments.
|
boolean |
containsAttachment(URI attachmentURI)
Checks if the given attachment URI is included in this top level's
set of attachment URIs.
|
boolean |
equals(Object obj) |
Set<Attachment> |
getAttachments()
Returns the set of attachments referenced by this top level.
|
Set<URI> |
getAttachmentURIs()
Returns the set of attachment URIs referenced by this top level.
|
int |
hashCode() |
boolean |
removeAttachment(URI attachment)
Removes the given attachment from the list of attachments.
|
void |
setAttachments(Set<URI> attachments)
Clears the existing set of attachments first, and then adds the given set of
the attachments to this top level.
|
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, toString, unsetDescription, unsetName, unsetWasDerivedFrom
public static final String COLLECTION
public static final String MODULE_DEFINITION
public static final String MODEL
public static final String COMPONENT_DEFINITION
public static final String SEQUENCE
public static final String GENERIC_TOP_LEVEL
public static final String ACTIVITY
public static final String AGENT
public static final String PLAN
public static final String COMBINATORIAL_DERIVATION
public static final String IMPLEMENTATION
public static final String ATTACHMENT
public static final String ANNOTATION
public static final String EXPERIMENT
public static final String EXPERIMENTAL_DATA
public int hashCode()
hashCode
in class Identified
public boolean equals(Object obj)
equals
in class Identified
public boolean addAttachment(Attachment attachment) throws SBOLValidationException
addAttachment(URI)
with this Attachment URI.attachment
- the Attachment instance whose identity URI to be addedtrue
if this set did not already contain the identity URI of the given Attachment, false
otherwise.SBOLValidationException
- if the following SBOL validation rule was violated: TODOpublic boolean addAttachment(String displayId, String version) throws SBOLValidationException
This method creates a compliant sequence URI with the default
URI prefix, which was set in the SBOLDocument instance hosting this top level, the given
display ID and version. It then calls addAttachment(URI)
with this Attachment URI.
displayId
- the display ID of the attachment whose identity URI is to be addedversion
- version of the attachment whose identity URI is to be addedtrue
if this set did not already contain the given attachment's URI, false
otherwise.SBOLValidationException
- see addAttachment(URI)
public boolean addAttachment(String displayId) throws SBOLValidationException
addAttachment(String, String)
with
the given attachment display ID and an empty string as its version.displayId
- the display ID of the attachment whose identity URI is to be addedtrue
if this set did not already contain the given attachment's URI, false
otherwise.SBOLValidationException
- see addAttachment(String, String)
public Set<Attachment> getAttachments()
public Set<URI> getAttachmentURIs()
public void clearAttachments()
public boolean containsAttachment(URI attachmentURI)
attachmentURI
- the attachment URI to be checkedtrue
if this set contains the given attachment URI, false
otherwise.public boolean removeAttachment(URI attachment)
attachment
- an attachment uri be removedtrue
if the matching attachment is removed
successfully, false
otherwise.public void setAttachments(Set<URI> attachments) throws SBOLValidationException
attachments
- The set of attachments for this top level.SBOLValidationException
- if an SBOL validation rule violation occurred in any of the
following methods: