org.sbml.jsbml.ext.spatial
public class Geometry extends AbstractSBase
Modifier and Type | Field and Description |
---|---|
private static java.util.ResourceBundle |
bundle |
private java.lang.String |
coordinateSystem |
private ListOf<AdjacentDomains> |
listOfAdjacentDomains |
private ListOf<CoordinateComponent> |
listOfCoordinateComponents |
private ListOf<Domain> |
listOfDomains |
private ListOf<DomainType> |
listOfDomainTypes |
private ListOf<GeometryDefinition> |
listOfGeometryDefinitions |
private static long |
serialVersionUID
Generated serial version identifier.
|
ignoredExtensions, ignoredXMLElements
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
Geometry() |
Geometry(Geometry sb) |
Geometry(int level,
int version) |
Modifier and Type | Method and Description |
---|---|
boolean |
addAdjacentDomain(AdjacentDomains adjacentDomains)
Adds a new
AdjacentDomain to the listOfAdjacentDomains. |
boolean |
addCoordinateComponent(CoordinateComponent coordinateComponents)
Adds a new
CoordinateComponent to the listOfCoordinateComponents. |
boolean |
addDomain(Domain domain)
Adds a new
Domain to the listOfDomains. |
boolean |
addDomainType(DomainType domainType)
Adds a new
DomainType to the listOfDomainTypes. |
boolean |
addGeometryDefinition(GeometryDefinition geometryDefinition)
Adds a new
GeometryDefinition to the listOfGeometryDefinitions. |
Geometry |
clone()
Creates a deep copy of this object, i.e., a new
SBase with the same properties
like this one. |
AdjacentDomains |
createAdjacentDomain()
Creates a new AdjacentDomain element and adds it to the ListOfAdjacentDomains list
|
AdjacentDomains |
createAdjacentDomain(java.lang.String id)
Creates a new
AdjacentDomain element and adds it to the ListOfAdjacentDomains list |
AnalyticGeometry |
createAnalyticGeometry() |
AnalyticGeometry |
createAnalyticGeometry(java.lang.String id) |
CoordinateComponent |
createCoordinateComponent()
Creates a new CoordinateComponent element and adds it to the ListOfCoordinateComponents list
|
CoordinateComponent |
createCoordinateComponent(java.lang.String id)
Creates a new
CoordinateComponent element and adds it to the ListOfCoordinateComponents list |
CSGeometry |
createCSGeometry() |
CSGeometry |
createCSGeometry(java.lang.String id) |
Domain |
createDomain()
Creates a new Domain element and adds it to the ListOfDomains list
|
Domain |
createDomain(java.lang.String id)
Creates a new
Domain element and adds it to the ListOfDomains list |
DomainType |
createDomainType()
Creates a new DomainType element and adds it to the ListOfDomainTypes list
|
DomainType |
createDomainType(java.lang.String id)
Creates a new
DomainType element and adds it to the ListOfDomainTypes list |
ParametricGeometry |
createParametricGeometry() |
ParametricGeometry |
createParametricGeometry(java.lang.String id) |
SampledFieldGeometry |
createSampledFieldGeometry(java.lang.String id)
Creates a new
GeometryDefinition element and adds it to the ListOfGeometryDefinitions list |
SampledFieldGeometry |
createSampledFieldGeometryn()
Creates a new GeometryDefinition element and adds it to the ListOfGeometryDefinitions list
|
boolean |
equals(java.lang.Object object)
|
boolean |
getAllowsChildren() |
javax.swing.tree.TreeNode |
getChildAt(int index) |
int |
getChildCount() |
java.lang.String |
getCoordinateSystem()
Returns the value of coordinateSystem
|
ListOf<AdjacentDomains> |
getListOfAdjacentDomains()
Returns the listOfAdjacentDomains.
|
ListOf<CoordinateComponent> |
getListOfCoordinateComponents()
Returns the listOfCoordinateComponents.
|
ListOf<Domain> |
getListOfDomains()
Returns the listOfDomains.
|
ListOf<DomainType> |
getListOfDomainTypes()
Returns the listOfDomainTypes.
|
ListOf<GeometryDefinition> |
getListOfGeometryDefinitions()
Returns the listOfGeometryDefinitions.
|
int |
hashCode() |
boolean |
isSetCoordinateSystem()
Returns whether coordinateSystem is set
|
boolean |
isSetListOfAdjacentDomains()
Returns
true , if listOfAdjacentDomains contains at least one element. |
boolean |
isSetListOfCoordinateComponents()
Returns
true , if listOfCoordinateComponents contains at least one element. |
boolean |
isSetListOfDomains()
Returns
true , if listOfDomains contains at least one element. |
boolean |
isSetListOfDomainTypes()
Returns
true , if listOfDomainTypes contains at least one element. |
boolean |
isSetListOfGeometryDefinitions()
Returns
true , if listOfGeometryDefinitions contains at least one element. |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
If the attribute is an id or name attribute, it will set the id or name
of this object with the value of the XML attribute ('value').
|
boolean |
removeAdjacentDomain(AdjacentDomains adjacentDomains)
Removes an element from the listOfAdjacentDomains.
|
void |
removeAdjacentDomain(int i)
Removes an element from the listOfAdjacentDomains at the given index.
|
boolean |
removeCoordinateComponent(CoordinateComponent coordinateComponents)
Removes an element from the listOfCoordinateComponents.
|
void |
removeCoordinateComponent(int i)
Removes an element from the listOfCoordinateComponents at the given index.
|
boolean |
removeDomain(Domain domain)
Removes an element from the listOfDomains.
|
void |
removeDomain(int i)
Removes an element from the listOfDomains at the given index.
|
boolean |
removeDomainType(DomainType domainType)
Removes an element from the listOfDomainTypes.
|
void |
removeDomainType(int i)
Removes an element from the listOfDomainTypes at the given index.
|
boolean |
removeGeometryDefinition(GeometryDefinition geometryDefinition)
Removes an element from the listOfGeometryDefinitions.
|
void |
removeGeometryDefinition(int i)
Removes an element from the listOfGeometryDefinitions at the given index.
|
void |
setCoordinateSystem(java.lang.String coordinateSystem)
Sets the value of coordinateSystem
|
void |
setListOfAdjacentDomains(ListOf<AdjacentDomains> listOfAdjacentDomains)
Sets the given
ListOf<AdjacentDomain> . |
void |
setListOfCoordinateComponents(ListOf<CoordinateComponent> listOfCoordinateComponents)
Sets the given
ListOf<CoordinateComponent> . |
void |
setListOfDomains(ListOf<Domain> listOfDomains)
Sets the given
ListOf<Domain> . |
void |
setListOfDomainTypes(ListOf<DomainType> listOfDomainTypes)
Sets the given
ListOf<DomainType> . |
void |
setListOfGeometryDefinitions(ListOf<GeometryDefinition> listOfGeometryDefinitions)
Sets the given
ListOf<GeometryDefinition> . |
java.lang.String |
toString() |
boolean |
unsetCoordinateSystem()
Unsets the variable coordinateSystem
|
boolean |
unsetListOfAdjacentDomains()
Returns
true , if listOfAdjacentDomains contain at least one element,
otherwise false |
boolean |
unsetListOfCoordinateComponents()
Returns
true , if listOfCoordinateComponents contain at least one element,
otherwise false |
boolean |
unsetListOfDomains()
Returns
true , if listOfDomains contain at least one element,
otherwise false |
boolean |
unsetListOfDomainTypes()
Returns
true , if listOfDomainTypes contain at least one element,
otherwise false |
boolean |
unsetListOfGeometryDefinitions()
Returns
true , if listOfGeometryDefinitions contain at least one element,
otherwise false |
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
addCVTerm, addDeclaredNamespace, addExtension, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionPackages, getHistory, 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, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
removeTreeNodeChangeListener
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
private static final long serialVersionUID
private ListOf<CoordinateComponent> listOfCoordinateComponents
private ListOf<DomainType> listOfDomainTypes
private ListOf<AdjacentDomains> listOfAdjacentDomains
private ListOf<GeometryDefinition> listOfGeometryDefinitions
private java.lang.String coordinateSystem
private static final java.util.ResourceBundle bundle
public Geometry()
public Geometry(Geometry sb)
sb
- public Geometry(int level, int version)
level
- version
- public Geometry clone()
SBase
SBase
with the same properties
like this one.clone
in interface SBase
clone
in class AbstractSBase
public boolean equals(java.lang.Object object)
SBase
true
if and only if the given SBase
has exactly the same
properties like this SBase
instance.equals
in interface SBase
equals
in class AbstractSBase
true
if and only if the given Object
is an instance of
SBase
that has exactly the same properties like this
SBase instance.public java.lang.String getCoordinateSystem()
public boolean isSetCoordinateSystem()
public void setCoordinateSystem(java.lang.String coordinateSystem)
public boolean unsetCoordinateSystem()
true
, if coordinateSystem was set before,
otherwise false
public boolean isSetListOfGeometryDefinitions()
true
, if listOfGeometryDefinitions contains at least one element.true
, if listOfGeometryDefinitions contains at least one element,
otherwise false
public ListOf<GeometryDefinition> getListOfGeometryDefinitions()
public void setListOfGeometryDefinitions(ListOf<GeometryDefinition> listOfGeometryDefinitions)
ListOf<GeometryDefinition>
. If listOfGeometryDefinitions
was defined before and contains some elements, they are all unset.listOfGeometryDefinitions
- public boolean unsetListOfGeometryDefinitions()
true
, if listOfGeometryDefinitions contain at least one element,
otherwise false
true
, if listOfGeometryDefinitions contain at least one element,
otherwise false
public boolean addGeometryDefinition(GeometryDefinition geometryDefinition)
GeometryDefinition
to the listOfGeometryDefinitions.
The listOfGeometryDefinitions is initialized if necessary.
geometryDefinition
- the element to add to the listCollection.add
)public boolean removeGeometryDefinition(GeometryDefinition geometryDefinition)
geometryDefinition
- the element to be removed from the listList#remove(Object)
public void removeGeometryDefinition(int i)
i
- the index where to remove the GeometryDefinition
java.lang.IndexOutOfBoundsException
- if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size)public SampledFieldGeometry createSampledFieldGeometryn()
public AnalyticGeometry createAnalyticGeometry()
public CSGeometry createCSGeometry()
public ParametricGeometry createParametricGeometry()
public SampledFieldGeometry createSampledFieldGeometry(java.lang.String id)
GeometryDefinition
element and adds it to the ListOfGeometryDefinitions listGeometryDefinition
elementpublic AnalyticGeometry createAnalyticGeometry(java.lang.String id)
public CSGeometry createCSGeometry(java.lang.String id)
public ParametricGeometry createParametricGeometry(java.lang.String id)
public boolean isSetListOfAdjacentDomains()
true
, if listOfAdjacentDomains contains at least one element.true
, if listOfAdjacentDomains contains at least one element,
otherwise false
public ListOf<AdjacentDomains> getListOfAdjacentDomains()
public void setListOfAdjacentDomains(ListOf<AdjacentDomains> listOfAdjacentDomains)
ListOf<AdjacentDomain>
. If listOfAdjacentDomains
was defined before and contains some elements, they are all unset.listOfAdjacentDomains
- public boolean unsetListOfAdjacentDomains()
true
, if listOfAdjacentDomains contain at least one element,
otherwise false
true
, if listOfAdjacentDomains contain at least one element,
otherwise false
public boolean addAdjacentDomain(AdjacentDomains adjacentDomains)
AdjacentDomain
to the listOfAdjacentDomains.
The listOfAdjacentDomains is initialized if necessary.
adjacentDomains
- the element to add to the listCollection.add
)public boolean removeAdjacentDomain(AdjacentDomains adjacentDomains)
adjacentDomains
- the element to be removed from the listList#remove(Object)
public void removeAdjacentDomain(int i)
i
- the index where to remove the AdjacentDomain
java.lang.IndexOutOfBoundsException
- if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size)public AdjacentDomains createAdjacentDomain()
public AdjacentDomains createAdjacentDomain(java.lang.String id)
AdjacentDomain
element and adds it to the ListOfAdjacentDomains listAdjacentDomain
elementpublic boolean isSetListOfDomainTypes()
true
, if listOfDomainTypes contains at least one element.true
, if listOfDomainTypes contains at least one element,
otherwise false
public ListOf<DomainType> getListOfDomainTypes()
public void setListOfDomainTypes(ListOf<DomainType> listOfDomainTypes)
ListOf<DomainType>
. If listOfDomainTypes
was defined before and contains some elements, they are all unset.listOfDomainTypes
- public boolean unsetListOfDomainTypes()
true
, if listOfDomainTypes contain at least one element,
otherwise false
true
, if listOfDomainTypes contain at least one element,
otherwise false
public boolean addDomainType(DomainType domainType)
DomainType
to the listOfDomainTypes.
The listOfDomainTypes is initialized if necessary.
domainType
- the element to add to the listCollection.add
)public boolean removeDomainType(DomainType domainType)
domainType
- the element to be removed from the listList#remove(Object)
public void removeDomainType(int i)
i
- the index where to remove the DomainType
java.lang.IndexOutOfBoundsException
- if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size)public DomainType createDomainType()
public DomainType createDomainType(java.lang.String id)
DomainType
element and adds it to the ListOfDomainTypes listDomainType
elementpublic boolean isSetListOfDomains()
true
, if listOfDomains contains at least one element.true
, if listOfDomains contains at least one element,
otherwise false
public ListOf<Domain> getListOfDomains()
public void setListOfDomains(ListOf<Domain> listOfDomains)
ListOf<Domain>
. If listOfDomains
was defined before and contains some elements, they are all unset.listOfDomains
- public boolean unsetListOfDomains()
true
, if listOfDomains contain at least one element,
otherwise false
true
, if listOfDomains contain at least one element,
otherwise false
public boolean addDomain(Domain domain)
Domain
to the listOfDomains.
The listOfDomains is initialized if necessary.
domain
- the element to add to the listCollection.add
)public boolean removeDomain(Domain domain)
domain
- the element to be removed from the listList#remove(Object)
public void removeDomain(int i)
i
- the index where to remove the Domain
java.lang.IndexOutOfBoundsException
- if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size)public Domain createDomain()
public Domain createDomain(java.lang.String id)
Domain
element and adds it to the ListOfDomains listDomain
elementpublic boolean isSetListOfCoordinateComponents()
true
, if listOfCoordinateComponents contains at least one element.true
, if listOfCoordinateComponents contains at least one element,
otherwise false
public ListOf<CoordinateComponent> getListOfCoordinateComponents()
public void setListOfCoordinateComponents(ListOf<CoordinateComponent> listOfCoordinateComponents)
ListOf<CoordinateComponent>
. If listOfCoordinateComponents
was defined before and contains some elements, they are all unset.listOfCoordinateComponents
- public boolean unsetListOfCoordinateComponents()
true
, if listOfCoordinateComponents contain at least one element,
otherwise false
true
, if listOfCoordinateComponents contain at least one element,
otherwise false
public boolean addCoordinateComponent(CoordinateComponent coordinateComponents)
CoordinateComponent
to the listOfCoordinateComponents.
The listOfCoordinateComponents is initialized if necessary.
coordinateComponents
- the element to add to the listCollection.add
)public boolean removeCoordinateComponent(CoordinateComponent coordinateComponents)
coordinateComponents
- the element to be removed from the listList#remove(Object)
public void removeCoordinateComponent(int i)
i
- the index where to remove the CoordinateComponent
java.lang.IndexOutOfBoundsException
- if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size)public CoordinateComponent createCoordinateComponent()
public CoordinateComponent createCoordinateComponent(java.lang.String id)
CoordinateComponent
element and adds it to the ListOfCoordinateComponents listCoordinateComponent
elementpublic java.lang.String toString()
toString
in class AbstractSBase
public boolean readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBase
readAttribute
in interface SBase
readAttribute
in class AbstractSBase
attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
writeXMLAttributes
in interface SBase
writeXMLAttributes
in class AbstractSBase
Map
containing the XML attributes of this object.public int hashCode()
hashCode
in interface SBase
hashCode
in class AbstractSBase
Object.hashCode()
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class AbstractSBase
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class AbstractSBase
public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class AbstractSBase