org.sbml.jsbml
public interface MathContainer extends SBaseWithDerivedUnit
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFormula()
Deprecated.
As this is part of SBML Level 1, it is strongly recommended
not to work with the
String representation of a
formula, but to deal with a more flexible ASTNode. |
ASTNode |
getMath()
|
java.lang.String |
getMathMLString()
If
isSetMath() returns true, this method returns the
corresponding MathML String, otherwise an empty String
will be returned. |
boolean |
isSetMath()
Checks if an
ASTNode has been set for this MathContainer. |
void |
setFormula(java.lang.String formula)
Deprecated.
As this is part of SBML Level 1, it is strongly recommended
not to work with the
String representation of a
formula, but to deal with a more flexible ASTNode.
Please use ASTNode.parseFormula(String) to create an
ASTNode object from your formula String. |
void |
setMath(ASTNode math)
Sets the math
ASTNode of this MathContainer to the given
value. |
void |
unsetFormula()
Deprecated.
use
unsetMath() |
void |
unsetMath()
Sets the current
ASTNode math element of this
MathContainer to null and notifies all
TreeNodeChangeListeners assigned to this object about this
change. |
containsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnitsaddCVTerm, addDeclaredNamespace, addExtension, appendNotes, appendNotes, clone, createPlugin, disablePackage, enablePackage, enablePackage, equals, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, readAttribute, registerChild, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTerm, writeXMLAttributesaddAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet@Deprecated java.lang.String getFormula()
String representation of a
formula, but to deal with a more flexible ASTNode.MathContainer's internal ASTNode to a
C-like String according to the SBML Level 1 specifications and
returns it.ASTNode getMath()
java.lang.String getMathMLString()
isSetMath() returns true, this method returns the
corresponding MathML String, otherwise an empty String
will be returned.MathContainer's math
element.boolean isSetMath()
ASTNode has been set for this MathContainer.true if the math ASTNode of this object is not null.@Deprecated
void setFormula(java.lang.String formula)
throws ParseException
String representation of a
formula, but to deal with a more flexible ASTNode.
Please use ASTNode.parseFormula(String) to create an
ASTNode object from your formula String.MathContainer instance
to the given formula. This method parses the given String and
stores the result in an ASTNode object.formula - a C-like String according to the definition in the
SBML Level 1 specifications.ParseException - If the given formula is invalid or cannot be parsed properly.PropertyNotAvailableException - When trying to set this attribute and the Level is set to a
value other than 1, this will throw an error.void setMath(ASTNode math)
ASTNode of this MathContainer to the given
value.math - an abstract syntax tree.@Deprecated void unsetFormula()
unsetMath()void unsetMath()
ASTNode math element of this
MathContainer to null and notifies all
TreeNodeChangeListeners assigned to this object about this
change.