org.sbml.jsbml.ext.fbc
public class FBCSpeciesPlugin extends AbstractSBasePlugin
FBCSpeciesPlugin is the extended Species class with the additional
attributes charge and chemicalFormula| Modifier and Type | Field and Description |
|---|---|
private int |
charge |
private java.lang.String |
chemicalFormula |
private boolean |
isSetCharge |
private static long |
serialVersionUID
Generated serial version identifier.
|
extendedSBase, packageVersionlistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| Constructor and Description |
|---|
FBCSpeciesPlugin(FBCSpeciesPlugin obj)
Clone constructor
|
FBCSpeciesPlugin(Species species)
Creates an FBCSpeciesPlugin instance
|
| Modifier and Type | Method and Description |
|---|---|
FBCSpeciesPlugin |
clone()
Creates a new instance of
SBasePlugin from this SBasePlugin. |
boolean |
getAllowsChildren() |
int |
getCharge()
Returns the value of charge
|
java.lang.String |
getChemicalFormula()
Returns the value of chemicalFormula
|
javax.swing.tree.TreeNode |
getChildAt(int index) |
int |
getChildCount() |
java.lang.String |
getElementNamespace()
Returns the XML namespace (URI) of the package extension of this plugin object.
|
java.lang.String |
getPackageName()
Returns the package name of this plugin object.
|
ListOf<Species> |
getParent() |
ListOf<Species> |
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.
|
java.lang.String |
getURI()
Gets the URI to which this element belongs to.
|
void |
initDefaults()
Initializes the default values.
|
boolean |
isSetCharge()
Returns whether charge is set
|
boolean |
isSetChemicalFormula()
Returns whether chemicalFormula 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. |
void |
setCharge(int charge)
Sets the value of charge.
|
void |
setChemicalFormula(java.lang.String chemicalFormula)
Sets the value of chemicalFormula.
|
boolean |
unsetCharge()
Unsets the variable charge
|
boolean |
unsetChemicalFormula()
Unsets the variable chemicalFormula
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes()
Returns a
Map containing the XML attributes of this object. |
equals, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getExtendedSBase, getLevel, getPackageVersion, getSBMLDocument, getVersion, hashCode, isSetExtendedSBase, removeFromParent, setExtendedSBaseaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, 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, userObjectKeySetprivate static final long serialVersionUID
private int charge
private java.lang.String chemicalFormula
private boolean isSetCharge
public FBCSpeciesPlugin(FBCSpeciesPlugin obj)
public FBCSpeciesPlugin(Species species)
public java.lang.String getElementNamespace()
SBasePluginpublic java.lang.String getPackageName()
SBasePluginpublic java.lang.String getPrefix()
SBasePluginpublic java.lang.String getURI()
SBasePluginpublic ListOf<Species> getParent()
getParent in interface javax.swing.tree.TreeNodegetParent in class AbstractTreeNodepublic ListOf<Species> getParentSBMLObject()
SBasePluginSBase object to which this plugin object connected.getParentSBMLObject in interface SBasePlugingetParentSBMLObject in class AbstractSBasePluginSBase object to which this plugin object connected.public FBCSpeciesPlugin clone()
SBasePluginSBasePlugin from this SBasePlugin.clone in interface SBasePluginclone in class AbstractSBasePluginSBasePlugin from this SBasePlugin.public boolean getAllowsChildren()
public int getCharge()
public java.lang.String getChemicalFormula()
public javax.swing.tree.TreeNode getChildAt(int index)
public int getChildCount()
public void initDefaults()
public boolean isSetCharge()
public boolean isSetChemicalFormula()
public boolean readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
SBasePluginSBasePlugin.attributeName - localName of the XML attributeprefix - prefix of the XML attributevalue - value of the XML attributetrue if the attribute has been successfully read.public void setCharge(int charge)
public void setChemicalFormula(java.lang.String chemicalFormula)
public boolean unsetCharge()
true, if charge was set before,
otherwise falsepublic boolean unsetChemicalFormula()
true if chemicalFormula was set before,
otherwise falsepublic java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBasePluginMap containing the XML attributes of this object.writeXMLAttributes in interface SBasePluginwriteXMLAttributes in class AbstractSBasePluginMap containing the XML attributes of this object.