java.io.Serializable, java.lang.Cloneable, javax.swing.tree.TreeNode, SBasePlugin, TreeNodeWithChangeSupportpublic class MultiCompartmentPlugin extends AbstractSBasePlugin
elementNamespace, extendedSBase, packageVersionlistOfListeners, parent, resourceBundle| Constructor | Description |
|---|---|
MultiCompartmentPlugin() |
Creates an MultiCompartmentPlugin instance.
|
MultiCompartmentPlugin(Compartment compartment) |
Creates a
MultiCompartmentPlugin instance associated with the given
Compartment. |
MultiCompartmentPlugin(MultiCompartmentPlugin obj) |
Clone constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addCompartmentReference(CompartmentReference compartmentReference) |
Adds a new
CompartmentReference to the listOfCompartmentReferences. |
MultiCompartmentPlugin |
clone() |
|
CompartmentReference |
createCompartmentReference() |
Creates a new CompartmentReference element and adds it to the
listOfCompartmentReferences list. |
CompartmentReference |
createCompartmentReference(java.lang.String id) |
Creates a new
CompartmentReference element and adds it to the
listOfCompartmentReferences list. |
boolean |
equals(java.lang.Object obj) |
|
boolean |
getAllowsChildren() |
|
javax.swing.tree.TreeNode |
getChildAt(int index) |
|
int |
getChildCount() |
|
CompartmentReference |
getCompartmentReference(int i) |
Gets an element from the
listOfCompartmentReferences at the given index. |
CompartmentReference |
getCompartmentReference(java.lang.String compartmentReferenceId) |
Gets an element from the listOfCompartmentReferences, with the given id.
|
int |
getCompartmentReferenceCount() |
Returns the number of
CompartmentReferences in this
MultiCompartmentPlugin. |
java.lang.String |
getCompartmentType() |
Returns the value of
compartmentType. |
boolean |
getIsType() |
Returns the value of
isType. |
ListOf<CompartmentReference> |
getListOfCompartmentReferences() |
Returns the
listOfCompartmentReferences. |
int |
getNumCompartmentReferences() |
Returns the number of
CompartmentReferences in this
MultiCompartmentPlugin. |
java.lang.String |
getPackageName() |
|
Compartment |
getParent() |
|
Compartment |
getParentSBMLObject() |
|
java.lang.String |
getPrefix() |
|
java.lang.String |
getURI() |
|
int |
hashCode() |
|
void |
initDefaults() |
Initializes the default values using the namespace.
|
boolean |
isSetCompartmentType() |
Returns whether
compartmentType is set. |
boolean |
isSetIsType() |
Returns whether
isType is set. |
boolean |
isSetListOfCompartmentReferences() |
Returns
true if listOfCompartmentReferences contains at least
one element. |
boolean |
isType() |
Returns the value of
isType, return false if isType is not defined. |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value) |
|
CompartmentReference |
removeCompartmentReference(int i) |
Removes an element from the
listOfCompartmentReferences at the given index. |
CompartmentReference |
removeCompartmentReference(java.lang.String compartmentReferenceId) |
Removes an element from the
listOfCompartmentReferences. |
boolean |
removeCompartmentReference(CompartmentReference compartmentReference) |
Removes an element from the
listOfCompartmentReferences. |
void |
setCompartmentType(java.lang.String compartmentType) |
Sets the value of compartmentType
|
void |
setIsType(boolean isType) |
Sets the value of isType
|
void |
setListOfCompartmentReferences(ListOf<CompartmentReference> listOfCompartmentReferences) |
Sets the given
ListOf<CompartmentReference>. |
boolean |
unsetCompartmentType() |
Unsets the variable compartmentType.
|
boolean |
unsetIsType() |
Unsets the variable isType.
|
boolean |
unsetListOfCompartmentReferences() |
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getElementNamespace, getExtendedSBase, getLevel, getPackageVersion, getSBMLDocument, getVersion, isSetExtendedSBase, isSetPackageVersion, removeFromParent, setExtendedSBase, setNamespace, setPackageVersionaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isCloningInProgress, isInvalidSBMLAllowed, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetpublic MultiCompartmentPlugin()
public MultiCompartmentPlugin(Compartment compartment)
MultiCompartmentPlugin instance associated with the given
Compartment.compartment - the compartment to extend.public MultiCompartmentPlugin(MultiCompartmentPlugin obj)
obj - the MultiCompartmentPlugin to clonepublic MultiCompartmentPlugin clone()
clone in interface SBasePluginclone in class AbstractSBasePluginpublic void initDefaults()
public java.lang.String getPackageName()
public java.lang.String getPrefix()
public java.lang.String getURI()
public Compartment getParent()
getParent in interface javax.swing.tree.TreeNodegetParent in class AbstractTreeNodepublic Compartment getParentSBMLObject()
getParentSBMLObject in interface SBasePlugingetParentSBMLObject in class AbstractSBasePluginpublic boolean isSetListOfCompartmentReferences()
true if listOfCompartmentReferences contains at least
one element.true if listOfCompartmentReferences contains at least
one element, otherwise false.public ListOf<CompartmentReference> getListOfCompartmentReferences()
listOfCompartmentReferences.
Creates it if it does not already exist.listOfCompartmentReferences.public void setListOfCompartmentReferences(ListOf<CompartmentReference> listOfCompartmentReferences)
ListOf<CompartmentReference>.
If listOfCompartmentReferences was defined before and contains some
elements, they are all unset.listOfCompartmentReferences - the list of CompartmentReferences to setpublic boolean unsetListOfCompartmentReferences()
true if listOfCompartmentReferences contains at least
one element, otherwise false.public boolean addCompartmentReference(CompartmentReference compartmentReference)
CompartmentReference to the listOfCompartmentReferences.
The listOfCompartmentReferences is initialized if necessary.
compartmentReference - the element to add to the listtrue (as specified by Collection.add(E))Collection.add(Object)public boolean removeCompartmentReference(CompartmentReference compartmentReference)
listOfCompartmentReferences.compartmentReference - the element to be removed from the list.true if the list contained the specified element and it was
removed.List.remove(Object)public CompartmentReference removeCompartmentReference(java.lang.String compartmentReferenceId)
listOfCompartmentReferences.compartmentReferenceId - the id of the element to be removed from the list.null.public CompartmentReference removeCompartmentReference(int i)
listOfCompartmentReferences at the given index.i - the index where to remove the CompartmentReference.java.lang.IndexOutOfBoundsException - if the listOf is not set or if the index is
out of bound ((i < 0) || (i > listOfCompartmentReferences)).public CompartmentReference createCompartmentReference()
listOfCompartmentReferences list.listOfCompartmentReferencespublic CompartmentReference createCompartmentReference(java.lang.String id)
CompartmentReference element and adds it to the
listOfCompartmentReferences list.id - the identifier that is to be applied to the new element.CompartmentReference element, which is the last
element in the listOfCompartmentReferences.public CompartmentReference getCompartmentReference(int i)
listOfCompartmentReferences at the given index.i - the index of the CompartmentReference element to get.java.lang.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).public CompartmentReference getCompartmentReference(java.lang.String compartmentReferenceId)
compartmentReferenceId - the id of the CompartmentReference element to get.null.public int getCompartmentReferenceCount()
CompartmentReferences in this
MultiCompartmentPlugin.CompartmentReferences in this
MultiCompartmentPlugin.public int getNumCompartmentReferences()
CompartmentReferences in this
MultiCompartmentPlugin.CompartmentReferences in this
MultiCompartmentPlugin.getCompartmentReferenceCount()public java.lang.String getCompartmentType()
compartmentType.compartmentType.public boolean isSetCompartmentType()
compartmentType is set.compartmentType is set.public void setCompartmentType(java.lang.String compartmentType)
compartmentType - the value of compartmentType to be set.public boolean unsetCompartmentType()
true if compartmentType was set before, otherwise false.public boolean isType()
isType, return false if isType is not defined.isType, return false if isType is not defined.public boolean isSetIsType()
isType is set.isType is set.public void setIsType(boolean isType)
isType - the value of isType to be set.public boolean unsetIsType()
true if isType was set before, otherwise false.public boolean getAllowsChildren()
public int getChildCount()
public javax.swing.tree.TreeNode getChildAt(int index)
public int hashCode()
hashCode in interface SBasePluginhashCode in class AbstractSBasePluginpublic boolean equals(java.lang.Object obj)
equals in interface SBasePluginequals in class AbstractSBasePluginpublic java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
writeXMLAttributes in interface SBasePluginwriteXMLAttributes in class AbstractSBasePluginpublic boolean readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
Copyright © 2009–2022. All rights reserved.