org.sbml.jsbml.xml.parsers
class SBMLLevel1Rule extends ExplicitRule
SBMLCoreParser.processEndDocument(org.sbml.jsbml.SBMLDocument)
if the
level of the model is equal to 1, we loop over the list of rules and clone
the rules into RateRule
or AssignmentRule
.
As this class is supposed to be used only inside the SBMLCoreParser
,
it's visibility is put at the package level.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
Generated serial version identifier.
|
private java.lang.String |
type |
unitsID
ignoredExtensions, ignoredXMLElements
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
ILLEGAL_CONSTANT_VARIABLE_MSG, ILLEGAL_VARIABLE_EXCEPTION_MSG, NO_SUCH_VARIABLE_EXCEPTION_MSG
Constructor and Description |
---|
SBMLLevel1Rule() |
SBMLLevel1Rule(SBMLLevel1Rule rule)
Creates a new
ExplicitRule |
Modifier and Type | Method and Description |
---|---|
SBMLLevel1Rule |
clone()
Creates a deep copy of this object, i.e., a new
SBase with the same properties
like this one. |
AssignmentRule |
cloneAsAssignmentRule() |
RateRule |
cloneAsRateRule() |
java.lang.String |
getType() |
boolean |
isScalar()
Predicate returning true or false depending on whether this Rule is an
AssignmentRule (SBML Level 2) or has a 'type' attribute value of 'scalar'
(SBML Level 1).
|
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
Sets the given attribute in this
SBase . |
void |
setType(java.lang.String type) |
equals, getUnits, getUnitsInstance, getVariable, getVariableInstance, hashCode, initDefaults, isCompartmentVolume, isParameter, isSetUnits, isSetUnitsInstance, isSetVariable, isSetVariableInstance, isSpeciesConcentration, setUnits, setUnits, setUnits, setUnits, setVariable, setVariable, unsetUnits, unsetVariable, writeXMLAttributes
getParent, isAlgebraic, isAssignment, isRate
containsUndeclaredUnits, getAllowsChildren, getChildAt, getChildCount, getDerivedUnitDefinition, getDerivedUnits, getFormula, getMath, getMathMLString, isSetMath, setFormula, setMath, toString, unsetFormula, unsetMath
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
getFormula, getMath, getMathMLString, isSetMath, setFormula, setMath, unsetFormula, unsetMath
containsUndeclaredUnits, getDerivedUnitDefinition, getDerivedUnits
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTerm
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
private static final long serialVersionUID
private java.lang.String type
public SBMLLevel1Rule()
public SBMLLevel1Rule(SBMLLevel1Rule rule)
ExplicitRule
rule
- public SBMLLevel1Rule clone()
SBase
SBase
with the same properties
like this one.clone
in interface SBase
clone
in class ExplicitRule
public AssignmentRule cloneAsAssignmentRule()
public RateRule cloneAsRateRule()
public java.lang.String getType()
public boolean isScalar()
ExplicitRule
isScalar
in class ExplicitRule
true
if this Rule is an AssignmentRule (Level 2) or has type
'scalar' (Level 1), false
otherwise.public boolean readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBase
SBase
.
If the given attribute name is not recognized, nothing is done and
false
is returned.
readAttribute
in interface SBase
readAttribute
in class ExplicitRule
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 setType(java.lang.String type)
type
-