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.
|
lv
listOfListeners, parent
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 copy of this object, i.e., e new
SBase with the same properties
like this one and returns a pointer to it. |
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()
Returns true if the message of this
Constraint is not null. |
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, writeXMLAttributes
addCVTerm, addDeclaredNamespace, addNamespace, appendNotes, appendNotes, checkLevelAndVersionCompatibility, equals, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, getAnnotation, getAnnotationString, getCVTerm, getCVTerms, getDeclaredNamespaces, getElementName, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespaces, getNotes, getNotesString, getNumCVTerms, getParentSBMLObject, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, notifyChildChange, registerChild, removeNamespace, setAnnotation, setHistory, setLevel, setLevelAndVersion, setMetaId, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetHistory, unsetMetaId, unsetNotes, unsetSBOTerm
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, fireNodeAddedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getTreeNodeChangeListenerCount, indexOf, isLeaf, isRoot, isSetParent, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, setParent
finalize, getClass, notify, notifyAll, wait, wait, wait
addCVTerm, addDeclaredNamespace, addNamespace, appendNotes, appendNotes, equals, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTerms, getDeclaredNamespaces, getElementName, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespaces, getNotes, getNotesString, getNumCVTerms, getParentSBMLObject, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetSBOTerm, isSetVersion, registerChild, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetHistory, unsetMetaId, unsetNotes, unsetSBOTerm
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getTreeNodeChangeListenerCount, isRoot, isSetParent, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener
private 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()
SBase
SBase
with the same properties
like this one and returns a pointer to it.clone
in interface SBase
clone
in class AbstractMathContainer
public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class AbstractMathContainer
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class AbstractMathContainer
public 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()
Constraint
as an XML String
.Constraint
as an XML String
.public ListOf<Constraint> getParent()
AbstractSBase
AbstractSBase.getParentSBMLObject()
, but this
method is needed for TreeNode
.getParent
in interface javax.swing.tree.TreeNode
getParent
in class AbstractSBase
AbstractSBase.getParentSBMLObject()
public boolean isSetMessage()
Constraint
is not null.Constraint
is not null.public void setMessage(java.lang.String message)
Constraint
to 'message'.message
- : the message to setpublic void setMessage(XMLNode message)
Constraint
to 'message'.message
- : the message to setpublic void unsetMessage()
Constraint
to null.