org.sbml.jsbml.ext.spatial
public class CoordinateComponent extends AbstractSpatialNamedSBase implements SBaseWithUnit
| Modifier and Type | Field and Description |
|---|---|
private Boundary |
boundaryMaximum |
private Boundary |
boundaryMinimum |
private static java.util.ResourceBundle |
bundle |
private static long |
serialVersionUID
Generated serial version identifier.
|
private CoordinateKind |
type |
private java.lang.String |
unit |
spatialIdignoredExtensions, ignoredXMLElementslistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| Constructor and Description |
|---|
CoordinateComponent() |
CoordinateComponent(CoordinateComponent coordComp) |
CoordinateComponent(int level,
int version) |
CoordinateComponent(java.lang.String id,
int level,
int version) |
| Modifier and Type | Method and Description |
|---|---|
CoordinateComponent |
clone()
Creates a deep copy of this object, i.e., a new
SBase with the same properties
like this one. |
boolean |
containsUndeclaredUnits()
Returns
true or false depending on whether this
SBaseWithDerivedUnit refers to elements such as parameters or
numbers with undeclared units. |
boolean |
equals(java.lang.Object object)
|
Boundary |
getBoundaryMaximum()
Returns the value of boundaryMaximum
|
Boundary |
getBoundaryMinimum()
Returns the value of boundaryMinimum
|
javax.swing.tree.TreeNode |
getChildAt(int childIndex) |
int |
getChildCount() |
UnitDefinition |
getDerivedUnitDefinition()
Derives the unit of this quantity and tries to identify an
equivalent
UnitDefinition within the corresponding Model. |
java.lang.String |
getDerivedUnits()
Derives the unit of this quantity.
|
CoordinateKind |
getType()
Returns the value of type
|
java.lang.String |
getUnits()
Returns the value of unit
|
UnitDefinition |
getUnitsInstance() |
int |
hashCode()
Returns a hash code value for this
SBase instance. |
boolean |
isSetBoundaryMaximum()
Returns whether boundaryMaximum is set
|
boolean |
isSetBoundaryMinimum()
Returns whether boundaryMinimum is set
|
boolean |
isSetType()
Returns whether type is set
|
boolean |
isSetUnits()
Returns whether unit is set
|
boolean |
isSetUnitsInstance()
Checks whether the element referenced by the
unitsID
attribute of this SBaseWithUnit is either an existing base
Unit, i.e., a simple Unit that can directly be addressed
via its Unit.Kind element, or the identifier of an existing
UnitDefinition in the Model to which this
SBaseWithUnit belongs. |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
Sets the given attribute in this
SBase. |
void |
setBoundaryMaximum(Boundary boundaryMaximum)
Sets the value of boundaryMaximum
|
void |
setBoundaryMinimum(Boundary boundaryMinimum)
Sets the value of boundaryMinimum
|
void |
setType(CoordinateKind type)
Sets the value of type
|
void |
setUnits(java.lang.String unit)
Sets the value of unit
|
void |
setUnits(Unit.Kind unitKind)
Sets the unit of this
SBaseWithUnit. |
void |
setUnits(Unit unit)
Sets the
Unit of this SBaseWithUnit. |
void |
setUnits(UnitDefinition units)
Set the unit attribute of this
SBaseWithUnit to the given
unit definition. |
java.lang.String |
toString() |
boolean |
unsetBoundaryMaximum()
Unsets the variable boundaryMaximum
|
boolean |
unsetBoundaryMinimum()
Unsets the variable boundaryMinimum
|
boolean |
unsetType()
Unsets the variable type
|
void |
unsetUnits()
Unsets the variable unit
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes()
Returns a map with all the attributes of this
SBase that
need to be written out in XML. |
getAllowsChildren, getSpatialId, isSetSpatialId, setSpatialId, unsetSpatialIdaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetprivate static final long serialVersionUID
private CoordinateKind type
private Boundary boundaryMaximum
private Boundary boundaryMinimum
private java.lang.String unit
private static final java.util.ResourceBundle bundle
public CoordinateComponent()
public CoordinateComponent(CoordinateComponent coordComp)
coordComp - public CoordinateComponent(int level,
int version)
level - version - public CoordinateComponent(java.lang.String id,
int level,
int version)
id - level - version - public CoordinateComponent clone()
SBaseSBase with the same properties
like this one.clone in interface SBaseclone in class AbstractSBasepublic Boundary getBoundaryMinimum()
public boolean isSetBoundaryMinimum()
public void setBoundaryMinimum(Boundary boundaryMinimum)
public boolean unsetBoundaryMinimum()
true, if boundaryMinimum was set before,
otherwise falsepublic Boundary getBoundaryMaximum()
public boolean isSetBoundaryMaximum()
public void setBoundaryMaximum(Boundary boundaryMaximum)
public boolean unsetBoundaryMaximum()
true, if boundaryMaximum was set before,
otherwise falsepublic CoordinateKind getType()
public boolean isSetType()
public void setType(CoordinateKind type)
public boolean unsetType()
true, if type was set before,
otherwise falsepublic boolean containsUndeclaredUnits()
SBaseWithDerivedUnittrue or false depending on whether this
SBaseWithDerivedUnit refers to elements such as parameters or
numbers with undeclared units.
A return value of true indicates that the UnitDefinition
returned by SBaseWithDerivedUnit.getDerivedUnitDefinition() may not accurately
represent the units of the expression.containsUndeclaredUnits in interface SBaseWithDerivedUnittrue if the math expression of this SBaseWithDerivedUnit
includes parameters/numbers with undeclared units,
false otherwise.public boolean equals(java.lang.Object object)
SBasepublic javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt in interface javax.swing.tree.TreeNodegetChildAt in class AbstractSpatialNamedSBasepublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodegetChildCount in class AbstractSpatialNamedSBasepublic java.lang.String getUnits()
getUnits in interface SBaseWithUnitpublic boolean isSetUnits()
isSetUnits in interface SBaseWithUnitpublic void setUnits(java.lang.String unit)
setUnits in interface SBaseWithUnitunit - the identifier of an already existing UnitDefinition
or an Unit.Kind identifier for the current
level/version combination of this unit. Passing a null value
to this method is equivalent to calling SBaseWithUnit.unsetUnits().public void unsetUnits()
unsetUnits in interface SBaseWithUnitpublic UnitDefinition getDerivedUnitDefinition()
SBaseWithDerivedUnitUnitDefinition within the corresponding Model.
If no equivalent unit definition can be found, a new unit definition will
be created that is not part of the model but represents the unit of this
quantity. If it is not possible to derive a unit for this quantity, null
will be returned.getDerivedUnitDefinition in interface SBaseWithDerivedUnitUnitDefinition that represent the derived unit of this quantity, or null
if it is not possible to derive a unit.public java.lang.String getDerivedUnits()
SBaseWithDerivedUnitUnit.Kind this
method will return the String representation of this
Unit.Kind.getDerivedUnits in interface SBaseWithDerivedUnitString that represent the id of a UnitDefinition. This UnitDefinition
represent the derived unit of this quantity. If it is not possible to derive a unit for this quantity
or if no equivalent UnitDefinition can be found in the Model, null is returned.public UnitDefinition getUnitsInstance()
getUnitsInstance in interface SBaseWithUnitUnitDefinition instance which has the unitsID of
this SBaseWithUnit as id. Null if it doesn't
exist. In case that the unit of this SBaseWithUnit
represents a base Unit, a new UnitDefinition will
be created and returned by this method. This new
UnitDefinition will only contain the one unit represented
by the unit identifier in this SBaseWithUnit. Note
that the corresponding model will not contain this
UnitDefinition. The identifier of this new
UnitDefinition will be set to the same value as the name
of the base Unit.public int hashCode()
SBaseSBase instance.hashCode in interface SBasehashCode in class AbstractSpatialNamedSBaseSBase instance.Object.hashCode()public boolean isSetUnitsInstance()
SBaseWithUnitunitsID
attribute of this SBaseWithUnit is either an existing base
Unit, i.e., a simple Unit that can directly be addressed
via its Unit.Kind element, or the identifier of an existing
UnitDefinition in the Model to which this
SBaseWithUnit belongs.isSetUnitsInstance in interface SBaseWithUnittrue if either a UnitDefinition, which has the
unitsID of this SBaseWithUnit, can be
found in the Model to which this
SBaseWithUnit belongs, or if this element's
unitsID as a corresponding base Unit for the
given Level/Version combination.public void setUnits(Unit.Kind unitKind)
SBaseWithUnitSBaseWithUnit.
A new unit will be created base on this kind.setUnits in interface SBaseWithUnitpublic void setUnits(Unit unit)
SBaseWithUnitUnit of this SBaseWithUnit.setUnits in interface SBaseWithUnitpublic void setUnits(UnitDefinition units)
SBaseWithUnitSBaseWithUnit to the given
unit definition.setUnits in interface SBaseWithUnitpublic java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBaseSBase that
need to be written out in XML.
The attribute name is used as a key and the attribute value as value. If a prefix is needed for the attribute name, it need to be set directly in this map.
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSpatialNamedSBaseMap containing the XML attributes of this object.public boolean readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
SBaseSBase.
If the given attribute name is not recognized, nothing is done and
false is returned.
readAttribute in interface SBasereadAttribute in class AbstractSpatialNamedSBaseattributeName - localName of the XML attributeprefix - prefix of the XML attributevalue - value of the XML attributetrue if the attribute has been successfully read.public java.lang.String toString()
toString in class AbstractSpatialNamedSBase