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, lv
listOfListeners, 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, writeXMLAttributes
addCVTerm, 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, unsetSBOTerm
addAllChangeListeners, 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, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
addCVTerm, 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, unsetSBOTerm
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
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.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() throws javax.xml.stream.XMLStreamException
Constraint
as an XML String
.Constraint
as an XML String
.javax.xml.stream.XMLStreamException
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()
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.XMLStreamException
public void setMessage(XMLNode message)
Constraint
to 'message'.message
- the message to setpublic void unsetMessage()
Constraint
to null
.