public class Attachment 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 |
equals(Object obj) |
URI |
getFormat()
Returns this attachment's format property
|
String |
getHash()
Returns this attachment's hash property
|
Long |
getSize()
Returns this attachment's size property
|
URI |
getSource()
Returns this attachment's source property
|
int |
hashCode() |
boolean |
isSetFormat()
Checks if the format property is set.
|
boolean |
isSetHash()
Checks if the hash property is set.
|
boolean |
isSetSize()
Checks if the size property is set.
|
void |
setFormat(URI format)
Sets the URI of this attachment's format property
|
void |
setHash(String hash)
sets this attachment's hash property
|
void |
setSize(long size)
Sets the value of this attachment's size property
|
void |
setSource(URI source)
Sets the source property to the given one.
|
String |
toString() |
void |
unsetFormat()
Sets the format property of the attachment to
null. |
void |
unsetHash()
Sets the hash property of the attachment to
null. |
void |
unsetSize()
Sets the size property of the attachment to -1.
|
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 URI getSource()
public void setSource(URI source) throws SBOLValidationException
source - the source property to setSBOLValidationException - if the following SBOL validation rule was violated: 11502.public boolean isSetFormat()
true if it is not null, false otherwisepublic URI getFormat()
public void setFormat(URI format)
format - the given URI to set topublic void unsetFormat()
null.public boolean isSetSize()
true if it is not null, false otherwisepublic Long getSize()
public void setSize(long size)
size - the given size to set topublic void unsetSize()
public boolean isSetHash()
true if it is not null, false otherwisepublic String getHash()
public void setHash(String hash)
hash - the given hash to set topublic void unsetHash()
null.public String toString()
toString in class Identified