java.io.Serializable
, java.lang.Cloneable
, javax.swing.tree.TreeNode
, SBasePlugin
, TreeNodeWithChangeSupport
public class DistribSBasePlugin extends AbstractSBasePlugin
Constructor | Description |
---|---|
DistribSBasePlugin() |
Creates a new
DistribSBasePlugin instance. |
DistribSBasePlugin(DistribSBasePlugin obj) |
Creates a new
DistribSBasePlugin instance, cloned from
the input parameter. |
DistribSBasePlugin(SBase sbase) |
Creates a new
DistribSBasePlugin instance. |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addUncertainty(Uncertainty uncertainty) |
Adds a new
Uncertainty to the listOfUncertainties . |
AbstractSBasePlugin |
clone() |
Creates a new instance of
SBasePlugin from this SBasePlugin . |
Uncertainty |
createUncertainty() |
Creates a new Uncertainty element and adds it to the
listOfUncertainties list. |
Uncertainty |
createUncertainty(java.lang.String id) |
Creates a new
Uncertainty element and adds it to the
listOfUncertainties list. |
boolean |
getAllowsChildren() |
|
javax.swing.tree.TreeNode |
getChildAt(int index) |
|
int |
getChildCount() |
|
ListOf<Uncertainty> |
getListOfUncertainties() |
Returns the
listOfUncertainties . |
int |
getNumUncertainties() |
Returns the number of
Uncertainty s in this
DistribSBasePlugin . |
java.lang.String |
getPackageName() |
Returns the package name of this plugin object.
|
java.lang.String |
getPrefix() |
Returns the prefix of the package extension of this plugin object.
|
Uncertainty |
getUncertainty(int i) |
Gets an element from the
listOfUncertainties at the given index. |
Uncertainty |
getUncertainty(java.lang.String uncertaintyId) |
Gets an element from the listOfUncertainties, with the given id.
|
int |
getUncertaintyCount() |
Returns the number of
Uncertainty s in this
DistribSBasePlugin . |
java.lang.String |
getURI() |
Gets the URI to which this element belongs to.
|
boolean |
isSetListOfUncertainties() |
Returns
true if listOfUncertainties contains at least
one element. |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value) |
Reads and sets the attribute if it is know from this
SBasePlugin . |
Uncertainty |
removeUncertainty(int i) |
Removes an element from the
listOfUncertainties at the given index. |
Uncertainty |
removeUncertainty(java.lang.String uncertaintyId) |
Removes an element from the
listOfUncertainties . |
boolean |
removeUncertainty(Uncertainty uncertainty) |
Removes an element from the
listOfUncertainties . |
void |
setListOfUncertainties(ListOf<Uncertainty> listOfUncertainties) |
Sets the given
ListOf<Uncertainty> . |
boolean |
unsetListOfUncertainties() |
equals, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getElementNamespace, getExtendedSBase, getLevel, getPackageVersion, getParentSBMLObject, getSBMLDocument, getVersion, hashCode, isSetExtendedSBase, isSetPackageVersion, removeFromParent, setExtendedSBase, setNamespace, setPackageVersion, writeXMLAttributes
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
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
public DistribSBasePlugin()
DistribSBasePlugin
instance.public DistribSBasePlugin(SBase sbase)
DistribSBasePlugin
instance.sbase
- the SBase
to be extended.public DistribSBasePlugin(DistribSBasePlugin obj)
DistribSBasePlugin
instance, cloned from
the input parameter.obj
- the DistribSBasePlugin
to clonepublic java.lang.String getPackageName()
SBasePlugin
public java.lang.String getPrefix()
SBasePlugin
public java.lang.String getURI()
SBasePlugin
SBasePlugin.getElementNamespace()
public int getChildCount()
public javax.swing.tree.TreeNode getChildAt(int index)
public boolean getAllowsChildren()
public AbstractSBasePlugin clone()
SBasePlugin
SBasePlugin
from this SBasePlugin
.clone
in interface SBasePlugin
clone
in class AbstractSBasePlugin
SBasePlugin
from this SBasePlugin
.public boolean readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBasePlugin
SBasePlugin
.attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.public boolean isSetListOfUncertainties()
true
if listOfUncertainties
contains at least
one element.true
if listOfUncertainties
contains at least
one element, otherwise false
.public ListOf<Uncertainty> getListOfUncertainties()
listOfUncertainties
.
Creates it if it does not already exist.listOfUncertainties
.public void setListOfUncertainties(ListOf<Uncertainty> listOfUncertainties)
ListOf<Uncertainty>
.
If listOfUncertainties
was defined before and contains some
elements, they are all unset.listOfUncertainties
- the list to setpublic boolean unsetListOfUncertainties()
true
if listOfUncertainties
contains at least
one element, otherwise false
.public boolean addUncertainty(Uncertainty uncertainty)
Uncertainty
to the listOfUncertainties
.
The listOfUncertainties is initialized if necessary.
uncertainty
- the element to add to the listtrue
(as specified by Collection.add(E)
)Collection.add(Object)
public boolean removeUncertainty(Uncertainty uncertainty)
listOfUncertainties
.uncertainty
- the element to be removed from the list.true
if the list contained the specified element and it was
removed.List.remove(Object)
public Uncertainty removeUncertainty(java.lang.String uncertaintyId)
listOfUncertainties
.uncertaintyId
- the id of the element to be removed from the list.null
.public Uncertainty removeUncertainty(int i)
listOfUncertainties
at the given index.i
- the index where to remove the Uncertainty
.java.lang.IndexOutOfBoundsException
- if the listOf is not set or if the index is
out of bound ((i < 0) || (i > listOfUncertainties)
).public Uncertainty createUncertainty()
listOfUncertainties
list.listOfUncertainties
public Uncertainty createUncertainty(java.lang.String id)
Uncertainty
element and adds it to the
listOfUncertainties
list.id
- the identifier that is to be applied to the new element.Uncertainty
element, which is the last
element in the listOfUncertainties
.public Uncertainty getUncertainty(int i)
listOfUncertainties
at the given index.i
- the index of the Uncertainty
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 Uncertainty getUncertainty(java.lang.String uncertaintyId)
uncertaintyId
- the id of the Uncertainty
element to get.null
.public int getUncertaintyCount()
Uncertainty
s in this
DistribSBasePlugin
.Uncertainty
s in this
DistribSBasePlugin
.public int getNumUncertainties()
Uncertainty
s in this
DistribSBasePlugin
.Uncertainty
s in this
DistribSBasePlugin
.getUncertaintyCount()