public class MultiCompartmentPlugin extends AbstractSBasePlugin
elementNamespace, extendedSBase, packageVersionlistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
MultiCompartmentPlugin()
Creates an MultiCompartmentPlugin instance.
|
MultiCompartmentPlugin(Compartment compartment)
Creates a
MultiCompartmentPlugin instance associated with the given
Compartment. |
MultiCompartmentPlugin(MultiCompartmentPlugin obj)
Clone constructor.
|
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 String getPackageName()
public String getPrefix()
public String getURI()
public Compartment getParent()
getParent in interface 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(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.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(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.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).public CompartmentReference getCompartmentReference(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 String getCompartmentType()
compartmentType.compartmentType.public boolean isSetCompartmentType()
compartmentType is set.compartmentType is set.public void setCompartmentType(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 TreeNode getChildAt(int index)
public int hashCode()
hashCode in interface SBasePluginhashCode in class AbstractSBasePluginpublic boolean equals(Object obj)
equals in interface SBasePluginequals in class AbstractSBasePluginpublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasePluginwriteXMLAttributes in class AbstractSBasePluginCopyright © 2009–2017. All rights reserved.