org.sbml.jsbml
public class Constraint extends AbstractMathContainer
| Modifier and Type | Field and Description |
|---|---|
private XMLNode |
message
Represents the subnode message of a constraint element.
|
private static long |
serialVersionUID
Generated serial version identifier.
|
ignoredExtensions, ignoredXMLElements, lvlistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| Constructor and Description |
|---|
Constraint()
Creates a
Constraint instance. |
Constraint(ASTNode math,
int level,
int version)
Creates a
Constraint instance from an ASTNode, a level and a version. |
Constraint(Constraint sb)
Creates a
Constraint instance from a given Constraint. |
Constraint(int level,
int version)
Creates a
Constraint instance from a level and a version. |
| Modifier and Type | Method and Description |
|---|---|
Constraint |
clone()
Creates a deep copy of this object, i.e., a new
SBase with the same properties
like this one. |
javax.swing.tree.TreeNode |
getChildAt(int index) |
int |
getChildCount() |
XMLNode |
getMessage()
Returns the message of this
Constraint. |
java.lang.String |
getMessageString()
Returns the message of this
Constraint as an XML String. |
ListOf<Constraint> |
getParent()
This is equivalent to calling
AbstractSBase.getParentSBMLObject(), but this
method is needed for TreeNode. |
boolean |
isSetMessage()
|
void |
setMessage(java.lang.String message)
Sets the message of this
Constraint to 'message'. |
void |
setMessage(XMLNode message)
Sets the message of this
Constraint to 'message'. |
void |
unsetMessage()
Sets the message of this
Constraint to null. |
containsUndeclaredUnits, getAllowsChildren, getDerivedUnitDefinition, getDerivedUnits, getFormula, getMath, getMathMLString, isSetMath, readAttribute, setFormula, setMath, toString, unsetFormula, unsetMath, writeXMLAttributesaddCVTerm, addDeclaredNamespace, addExtension, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, equals, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, 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, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, setAnnotation, setHistory, setLevel, setLevelAndVersion, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitaddCVTerm, addDeclaredNamespace, addExtension, appendNotes, appendNotes, 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, registerChild, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetprivate static final long serialVersionUID
private XMLNode message
public Constraint()
Constraint instance. By default, the message is null.public Constraint(ASTNode math, int level, int version)
Constraint instance from an ASTNode, a level and a version. By
default, the message is null.math - level - version - public Constraint(Constraint sb)
Constraint instance from a given Constraint.sb - public Constraint(int level,
int version)
Constraint instance from a level and a version. By default, the
message is null.level - version - public Constraint clone()
SBaseSBase with the same properties
like this one.clone in interface SBaseclone in class AbstractMathContainerpublic javax.swing.tree.TreeNode getChildAt(int index)
getChildAt in interface javax.swing.tree.TreeNodegetChildAt in class AbstractMathContainerpublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodegetChildCount in class AbstractMathContainerpublic XMLNode getMessage()
Constraint. Returns null if the
message is not set.Constraint. Returns null if the
message is not set.public java.lang.String getMessageString()
throws javax.xml.stream.XMLStreamException
Constraint as an XML String.Constraint as an XML String.javax.xml.stream.XMLStreamExceptionpublic ListOf<Constraint> getParent()
AbstractSBaseAbstractSBase.getParentSBMLObject(), but this
method is needed for TreeNode.getParent in interface javax.swing.tree.TreeNodegetParent in class AbstractSBaseAbstractSBase.getParentSBMLObject()public boolean isSetMessage()
true if the message of this Constraint is not null.public void setMessage(java.lang.String message)
throws javax.xml.stream.XMLStreamException
Constraint to 'message'.message - the message to setjavax.xml.stream.XMLStreamExceptionpublic void setMessage(XMLNode message)
Constraint to 'message'.message - the message to setpublic void unsetMessage()
Constraint to null.