public class Measure extends Identified
| Modifier and Type | Method and Description |
|---|---|
boolean |
addType(URI typeURI)
Adds the given type URI to this measure's set of type URIs.
|
void |
clearTypes()
Removes all entries of this measure's set of type URIs.
|
boolean |
containsType(URI typeURI)
Checks if the given type URI is included in this measure's set of type URIs.
|
boolean |
equals(Object obj) |
Double |
getNumericalValue()
Returns the numerical value.
|
Set<URI> |
getTypes()
Returns the set of type URIs owned by this measure.
|
TopLevel |
getUnit()
Returns the unit referenced by this measure.
|
URI |
getUnitIdentity()
Returns the unit identity referenced by this measure.
|
URI |
getUnitURI()
Returns the unit URI.
|
int |
hashCode() |
boolean |
removeType(URI typeURI)
Removes the given type URI from the set of types.
|
void |
setNumericalValue(Double hasNumericalValue) |
void |
setTypes(Set<URI> types)
Clears the existing set of types first, and then adds the given
set of the types to this measure.
|
void |
setUnit(URI hasUnit) |
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 Double getNumericalValue()
public void setNumericalValue(Double hasNumericalValue) throws SBOLValidationException
hasNumericalValue - the numerical value to setSBOLValidationException - if the following SBOL validation rule was violated: 13502.public URI getUnitURI()
public URI getUnitIdentity()
null if the associated SBOLDocument instance is null or no matching
unity identity referenced by this measure exists;
or the matching unit otherwise.public TopLevel getUnit()
null if the associated SBOLDocument instance is null or no matching
unit referenced by this measure exists;
or the matching unit otherwise.public void setUnit(URI hasUnit) throws SBOLValidationException
hasUnit - the unit to setSBOLValidationException - if the following SBOL validation rule was violated: 13503.public boolean addType(URI typeURI)
typeURI - the type URI to be addedtrue if this set did not already contain the specified type, false otherwise.public boolean removeType(URI typeURI)
typeURI - the given type URI to be removedtrue if the matching type reference was removed successfully, false otherwise.public Set<URI> getTypes()
public void setTypes(Set<URI> types)
types - the set of types to set topublic boolean containsType(URI typeURI)
typeURI - the type URI to be checkedtrue if this set contains the given type URI, false otherwise.public void clearTypes()
public String toString()
toString in class Identified