org.sbml.jsbml.ext.spatial
public class CSGeometry extends GeometryDefinition
| Modifier and Type | Field and Description |
|---|---|
private ListOf<CSGObject> |
listOfCSGObjects |
private static long |
serialVersionUID
Generated serial version identifier.
|
spatialIdignoredExtensions, ignoredXMLElementslistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| Constructor and Description |
|---|
CSGeometry() |
CSGeometry(CSGeometry csg) |
CSGeometry(int level,
int version) |
CSGeometry(java.lang.String id,
int level,
int version) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCSGObject(CSGObject csgo)
Adds a new
CSGObject to the listOfCSGObjects. |
CSGeometry |
clone()
Creates a deep copy of this object, i.e., a new
SBase with the same properties
like this one. |
CSGObject |
createCSGObject()
Creates a new CSGObject element and adds it to the ListOfCSGObjects list
|
CSGObject |
createCSGObject(java.lang.String id)
Creates a new
CSGObject element and adds it to the ListOfCSGObjects list |
boolean |
equals(java.lang.Object object)
|
ListOf<CSGObject> |
getListOfCSGObjects()
Returns the listOfCSGObjects.
|
boolean |
isSetListOfCSGObjects()
Returns
true, if listOfCSGObjects contains at least one element. |
boolean |
removeCSGObject(CSGObject csgo)
Removes an element from the listOfCSGObjects.
|
void |
removeCSGObject(int i)
Removes an element from the listOfCSGObjects at the given index.
|
void |
setListOfCSGObjects(ListOf<CSGObject> listOfCSGObjects)
Sets the given
ListOf<CSGObject>. |
boolean |
unsetListOfCSGObjects()
Returns
true, if listOfCSGObjects contain at least one element,
otherwise false |
getIsActive, hashCode, isActive, isSetIsActive, readAttribute, setIsActive, toString, unsetIsActive, writeXMLAttributesgetAllowsChildren, getChildAt, getChildCount, 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
public CSGeometry()
public CSGeometry(CSGeometry csg)
node - public CSGeometry(int level,
int version)
level - version - public CSGeometry(java.lang.String id,
int level,
int version)
id - level - version - public CSGeometry clone()
SBaseSBase with the same properties
like this one.clone in interface SBaseclone in class AbstractSBasepublic boolean equals(java.lang.Object object)
SBasepublic boolean isSetListOfCSGObjects()
true, if listOfCSGObjects contains at least one element.true, if listOfCSGObjects contains at least one element,
otherwise falsepublic ListOf<CSGObject> getListOfCSGObjects()
public void setListOfCSGObjects(ListOf<CSGObject> listOfCSGObjects)
ListOf<CSGObject>. If listOfCSGObjects
was defined before and contains some elements, they are all unset.listOfCSGObjects - public boolean unsetListOfCSGObjects()
true, if listOfCSGObjects contain at least one element,
otherwise falsetrue, if listOfCSGObjects contain at least one element,
otherwise falsepublic boolean addCSGObject(CSGObject csgo)
CSGObject to the listOfCSGObjects.
The listOfCSGObjects is initialized if necessary.
csgo - the element to add to the listCollection.add)public boolean removeCSGObject(CSGObject csgo)
csgo - the element to be removed from the listList#remove(Object)public void removeCSGObject(int i)
i - the index where to remove the CSGObjectjava.lang.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size)public CSGObject createCSGObject()