java.io.Serializable
, java.lang.Cloneable
, javax.swing.tree.TreeNode
, SBasePlugin
, TreeNodeWithChangeSupport
public class MultiSpeciesReferencePlugin extends MultiSimpleSpeciesReferencePlugin
Constructor | Description |
---|---|
MultiSpeciesReferencePlugin() |
Creates an MultiSpeciesReferencePlugin instance
|
MultiSpeciesReferencePlugin(MultiSpeciesReferencePlugin obj) |
Clone constructor
|
MultiSpeciesReferencePlugin(SpeciesReference sp) |
Creates a MultiSpeciesReferencePlugin instance with a
SpeciesReference . |
fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getElementNamespace, getExtendedSBase, getLevel, getPackageVersion, getParentSBMLObject, getSBMLDocument, getVersion, isSetExtendedSBase, isSetPackageVersion, removeFromParent, setExtendedSBase, setNamespace, setPackageVersion
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getParent, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySet
getCompartmentReference, getPackageName, getPrefix, getURI, isSetCompartmentReference, readAttribute, setCompartmentReference, unsetCompartmentReference, writeXMLAttributes
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
public MultiSpeciesReferencePlugin()
public MultiSpeciesReferencePlugin(SpeciesReference sp)
SpeciesReference
.sp
- the SpeciesReference
for the new element.public MultiSpeciesReferencePlugin(MultiSpeciesReferencePlugin obj)
public MultiSpeciesReferencePlugin clone()
clone
in interface SBasePlugin
clone
in class MultiSimpleSpeciesReferencePlugin
SBasePlugin
from this SBasePlugin
.public void initDefaults()
initDefaults
in class MultiSimpleSpeciesReferencePlugin
public int hashCode()
hashCode
in interface SBasePlugin
hashCode
in class MultiSimpleSpeciesReferencePlugin
public boolean equals(java.lang.Object obj)
equals
in interface SBasePlugin
equals
in class MultiSimpleSpeciesReferencePlugin
public boolean isSetListOfSpeciesTypeComponentMapInProducts()
true
if listOfSpeciesTypeComponentMapInProducts
contains at least
one element.true
if listOfSpeciesTypeComponentMapInProducts
contains at least
one element, otherwise false
.public ListOf<SpeciesTypeComponentMapInProduct> getListOfSpeciesTypeComponentMapInProducts()
listOfSpeciesTypeComponentMapInProducts
.
Creates it if it does not already exist.listOfSpeciesTypeComponentMapInProducts
.public void setListOfSpeciesTypeComponentMapInProducts(ListOf<SpeciesTypeComponentMapInProduct> listOfSpeciesTypeComponentMapInProducts)
ListOf<SpeciesTypeComponentMapInProduct>
.
If listOfSpeciesTypeComponentMapInProducts
was defined before and contains some
elements, they are all unset.listOfSpeciesTypeComponentMapInProducts
- the list of SpeciesTypeComponentMapInProduct
public boolean unsetListOfSpeciesTypeComponentMapInProducts()
true
if listOfSpeciesTypeComponentMapInProducts
contains at least
one element, otherwise false
.true
if listOfSpeciesTypeComponentMapInProducts
contains at least
one element, otherwise false
.public boolean addSpeciesTypeComponentMapInProduct(SpeciesTypeComponentMapInProduct speciesTypeComponentMapInProduct)
SpeciesTypeComponentMapInProduct
to the listOfSpeciesTypeComponentMapInProducts
.
The listOfSpeciesTypeComponentMapInProducts is initialized if necessary.
speciesTypeComponentMapInProduct
- the element to add to the listtrue
(as specified by Collection.add(E)
)Collection.add(Object)
public boolean removeSpeciesTypeComponentMapInProduct(SpeciesTypeComponentMapInProduct speciesTypeComponentMapInProduct)
listOfSpeciesTypeComponentMapInProducts
.speciesTypeComponentMapInProduct
- the element to be removed from the list.true
if the list contained the specified element and it was
removed.List.remove(Object)
public SpeciesTypeComponentMapInProduct removeSpeciesTypeComponentMapInProduct(int i)
listOfSpeciesTypeComponentMapInProducts
at the given index.i
- the index where to remove the SpeciesTypeComponentMapInProduct
.java.lang.IndexOutOfBoundsException
- if the listOf is not set or if the index is
out of bound ((i < 0) || (i > listOfSpeciesTypeComponentMapInProducts)
).public SpeciesTypeComponentMapInProduct createSpeciesTypeComponentMapInProduct()
listOfSpeciesTypeComponentMapInProducts
list.listOfSpeciesTypeComponentMapInProducts
public SpeciesTypeComponentMapInProduct getSpeciesTypeComponentMapInProduct(int i)
listOfSpeciesTypeComponentMapInProducts
at the given index.i
- the index of the SpeciesTypeComponentMapInProduct
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 int getSpeciesTypeComponentMapInProductCount()
SpeciesTypeComponentMapInProduct
s in this
MultiSpeciesReferencePlugin
.SpeciesTypeComponentMapInProduct
s in this
MultiSpeciesReferencePlugin
.public int getNumSpeciesTypeComponentMapInProducts()
SpeciesTypeComponentMapInProduct
s in this
MultiSpeciesReferencePlugin
.SpeciesTypeComponentMapInProduct
s in this
MultiSpeciesReferencePlugin
.getSpeciesTypeComponentMapInProductCount()
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class MultiSimpleSpeciesReferencePlugin
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class MultiSimpleSpeciesReferencePlugin
public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class MultiSimpleSpeciesReferencePlugin