org.sbml.jsbml.ext.multi
public class MultiModel extends AbstractSBasePlugin
SpeciesType
s and a list of
Selector
s.Modifier and Type | Field and Description |
---|---|
(package private) ListOf<Selector> |
listOfSelectors |
(package private) ListOf<SpeciesType> |
listOfSpeciesTypes |
private static long |
serialVersionUID
Generated serial version identifier.
|
extendedSBase, packageVersion
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
MultiModel(Model model) |
MultiModel(MultiModel multiModel) |
Modifier and Type | Method and Description |
---|---|
void |
addSelector(Selector selector)
Adds a
Selector . |
void |
addSpeciesType(SpeciesType speciesType)
Adds a
SpeciesType . |
MultiModel |
clone() |
Selector |
createSelector()
Creates a new
Selector inside this MultiModel and returns it. |
Selector |
createSelector(java.lang.String id)
Creates a new
Selector inside this MultiModel and returns it. |
SpeciesType |
createSpeciesType()
Creates a new
SpeciesType inside this MultiModel and returns it. |
SpeciesType |
createSpeciesType(java.lang.String id)
Creates a new
SpeciesType inside this MultiModel and returns it. |
boolean |
getAllowsChildren() |
SBase |
getChildAt(int childIndex) |
int |
getChildCount() |
java.lang.String |
getElementNamespace()
Returns the XML namespace (URI) of the package extension of this plugin object.
|
ListOf<Selector> |
getListOfSelectors()
Returns the listOfSelectors.
|
ListOf<SpeciesType> |
getListOfSpeciesTypes()
Returns the listOfSpeciesTypes.
|
Model |
getModel()
Returns the
Model |
java.lang.String |
getPackageName()
Returns the package name of this plugin object.
|
SBMLDocument |
getParent() |
SBMLDocument |
getParentSBMLObject()
Returns the parent
SBase object to which this plugin object connected. |
java.lang.String |
getPrefix()
Returns the prefix of the package extension of this plugin object.
|
Selector |
getSelector(int i)
Gets the ith
Selector . |
Selector |
getSelector(java.lang.String id)
Gets the
Selector that has the given id. |
SpeciesType |
getSpeciesType(int i)
Gets the ith
SpeciesType . |
SpeciesType |
getSpeciesType(java.lang.String id)
Gets the
SpeciesType that has the given id. |
java.lang.String |
getURI()
Gets the URI to which this element belongs to.
|
boolean |
isSetListOfSelectors()
Returns
true if the listOfSelector is set. |
boolean |
isSetListOfSpeciesTypes()
Returns
true if the listOfSpeciesType is set. |
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 . |
boolean |
unsetListOfSelectors()
Sets the listOfSelectors to null
|
boolean |
unsetListOfSpeciesTypes()
Sets the listOfSpeciesTypes to null
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes()
Returns a
Map containing the XML attributes of this object. |
equals, getExtendedSBase, getLevel, getPackageVersion, getSBMLDocument, getVersion, hashCode, isSetExtendedSBase
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
private static final long serialVersionUID
ListOf<SpeciesType> listOfSpeciesTypes
public MultiModel(Model model)
model
- public MultiModel(MultiModel multiModel)
model
- public java.lang.String getElementNamespace()
SBasePlugin
public java.lang.String getPackageName()
SBasePlugin
public java.lang.String getPrefix()
SBasePlugin
public java.lang.String getURI()
SBasePlugin
public SBMLDocument getParent()
getParent
in interface javax.swing.tree.TreeNode
getParent
in class AbstractTreeNode
public SBMLDocument getParentSBMLObject()
SBasePlugin
SBase
object to which this plugin object connected.getParentSBMLObject
in interface SBasePlugin
getParentSBMLObject
in class AbstractSBasePlugin
SBase
object to which this plugin object connected.public MultiModel clone()
clone
in interface SBasePlugin
clone
in class AbstractSBasePlugin
public ListOf<SpeciesType> getListOfSpeciesTypes()
public void addSpeciesType(SpeciesType speciesType)
SpeciesType
.speciesTypes
- the speciesType to addpublic SpeciesType createSpeciesType()
SpeciesType
inside this MultiModel
and returns it.
SpeciesType
object created
addSpeciesType(SpeciesType r)
public SpeciesType createSpeciesType(java.lang.String id)
SpeciesType
inside this MultiModel
and returns it.id
- the id of the new element to createSpeciesType
object createdpublic SpeciesType getSpeciesType(int i)
SpeciesType
.i
- SpeciesType
java.lang.IndexOutOfBoundsException
- if the index is invalid.public SpeciesType getSpeciesType(java.lang.String id)
SpeciesType
that has the given id.id
- SpeciesType
that has the given id or null if
no SpeciesType
are found that match id
.public boolean isSetListOfSpeciesTypes()
true
if the listOfSpeciesType is set.true
if the listOfSpeciesType is set.public boolean unsetListOfSpeciesTypes()
true
is successfulpublic ListOf<Selector> getListOfSelectors()
public void addSelector(Selector selector)
Selector
.selector
- the selector to addpublic Selector createSelector()
Selector
inside this MultiModel
and returns it.
Selector
object created
addSelector(Selector r)
public Selector createSelector(java.lang.String id)
Selector
inside this MultiModel
and returns it.id
- the id of the new element to createSelector
object createdpublic Selector getSelector(int i)
Selector
.i
- Selector
java.lang.IndexOutOfBoundsException
- if the index is invalid.public Selector getSelector(java.lang.String id)
Selector
that has the given id.public boolean isSetListOfSelectors()
true
if the listOfSelector is set.true
if the listOfSelector is set.public boolean unsetListOfSelectors()
true
is successfulpublic 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 SBase getChildAt(int childIndex)
public int getChildCount()
public boolean getAllowsChildren()
public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBasePlugin
Map
containing the XML attributes of this object.writeXMLAttributes
in interface SBasePlugin
writeXMLAttributes
in class AbstractSBasePlugin
Map
containing the XML attributes of this object.