public abstract class Location extends Identified implements Comparable<Location>
Modifier and Type | Method and Description |
---|---|
OrientationType |
getOrientation()
Returns the orientation property of this location.
|
Sequence |
getSequence()
Returns the sequence referenced by this location.
|
URI |
getSequenceIdentity()
Returns the sequence identity referenced by this location.
|
URI |
getSequenceURI()
Returns the sequence URI referenced by this location.
|
boolean |
isSetOrientation()
Checks if the orientation property is set.
|
boolean |
isSetSequence()
Checks if the sequence property is set.
|
void |
setOrientation(OrientationType orientation)
Sets the orientation property of this location to the given one.
|
void |
setSequence(URI sequence)
Sets the sequence property to the given one.
|
String |
toString() |
void |
unsetOrientation()
Sets the orientation property of this location to
null . |
void |
unsetSequence()
Sets the sequence property of this location to
null . |
addWasDerivedFrom, addWasGeneratedBy, clearAnnotations, clearWasDerivedFroms, clearWasGeneratedBys, containsWasDerivedFrom, containsWasGeneratedBy, createAnnotation, createAnnotation, createAnnotation, createAnnotation, createAnnotation, createAnnotation, equals, getAnnotation, getAnnotations, getDescription, getDisplayId, getIdentity, getName, getPersistentIdentity, getVersion, getWasDerivedFrom, getWasDerivedFroms, getWasGeneratedBys, hasAnnotations, hashCode, isSetDescription, isSetDisplayId, isSetName, isSetPersistentIdentity, isSetVersion, isSetWasDerivedFrom, removeAnnotation, removeWasDerivedFrom, removeWasGeneratedBy, setDescription, setName, setWasDerivedFrom, setWasDerivedFroms, setWasGeneratedBys, unsetDescription, unsetName, unsetWasDerivedFrom
compareTo
public boolean isSetOrientation()
true
if it is not null
, false
otherwisepublic OrientationType getOrientation()
public void setOrientation(OrientationType orientation)
orientation
- the orientation to set topublic void unsetOrientation()
null
.public boolean isSetSequence()
true
if it is not null
, false
otherwisepublic URI getSequenceURI()
public URI getSequenceIdentity()
null
if the associated SBOLDocument instance is null
or no matching
sequence referenced by this location exists;
or the matching sequence otherwise.public Sequence getSequence()
null
if the associated SBOLDocument instance is null
or no matching
sequence referenced by this location exists;
or the matching sequence otherwise.public void setSequence(URI sequence) throws SBOLValidationException
sequence
- the given sequence URI to set toSBOLValidationException
- if the following SBOL validation rules was violated: 11003.public void unsetSequence()
null
.public String toString()
toString
in class Identified