java.io.Serializable
, java.lang.Cloneable
, javax.swing.tree.TreeNode
, SBase
, TreeNodeWithChangeSupport
AdvectionCoefficient
, BoundaryCondition
, DiffusionCoefficient
, SpatialSymbolReference
public class ParameterType extends AbstractSBase
SpatialParameterPlugin
.JSBML_WRONG_SBO_TERM
Constructor | Description |
---|---|
ParameterType() |
Creates a new
ParameterType instance. |
ParameterType(int level,
int version) |
Creates a new
ParameterType instance. |
ParameterType(ParameterType ref) |
Creates a new
ParameterType instance. |
Modifier and Type | Method | Description |
---|---|---|
ParameterType |
clone() |
Creates a deep copy of this object, i.e., a new
SBase with the same
properties
like this one. |
boolean |
equals(java.lang.Object object) |
|
boolean |
getAllowsChildren() |
|
javax.swing.tree.TreeNode |
getChildAt(int childIndex) |
|
int |
getChildCount() |
|
Geometry |
getGeometryInstance() |
Returns the
Geometry instance. |
Parameter |
getParameterInstance() |
|
java.lang.String |
getSpatialRef() |
Returns the spatial reference (id of any element defined in the Geometry of the model).
|
Species |
getSpeciesInstance() |
|
java.lang.String |
getSpeciesReference() |
Returns the value of
variable . |
java.lang.String |
getSpId() |
Returns the spatial reference (id of any element defined in the Geometry of the model).
|
java.lang.String |
getVariable() |
Returns the value of
variable . |
SBase |
getVariableInstance() |
|
int |
hashCode() |
Returns a hash code value for this
SBase instance. |
void |
initDefaults() |
Initializes the default values using the namespace.
|
boolean |
isSetSpatialRef() |
Returns
true is the spatial reference is set. |
boolean |
isSetSpeciesReference() |
Returns whether
variable is set. |
boolean |
isSetSpId() |
Returns
true is the spatial reference is set. |
boolean |
isSetVariable() |
Returns whether
variable is set. |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value) |
Sets the given attribute in this
SBase . |
void |
setSpatialRef(java.lang.String spatialRef) |
Sets the spatial reference
|
void |
setSpeciesRef(java.lang.String variable) |
Sets the value of variable
|
void |
setSpeciesReference(java.lang.String variable) |
Sets the value of variable
|
void |
setSpId(java.lang.String spatialRef) |
Sets the spatial reference
|
void |
setVariable(java.lang.String variable) |
Sets the value of variable
|
boolean |
unsetSpatialRef() |
Unsets the spatialRef attribute.
|
boolean |
unsetVariable() |
Unsets the variable attribute.
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
Returns a map with all the attributes of this
SBase that
need to be written out in XML. |
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, addResources, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllDeclaredNamespaces, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getFirstElementIndex, getHistory, getId, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasExtension, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, 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
removeTreeNodeChangeListener
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
public ParameterType()
ParameterType
instance.public ParameterType(int level, int version)
ParameterType
instance.level
- the SBML levelversion
- the SBML versionpublic ParameterType(ParameterType ref)
ParameterType
instance.ref
- the instance to clonepublic void initDefaults()
public Geometry getGeometryInstance()
Geometry
instance.Geometry
instance.public java.lang.String getSpId()
getSpatialRef()
public java.lang.String getSpatialRef()
public boolean isSetSpId()
true
is the spatial reference is set.true
is the spatial reference is set.isSetSpatialRef()
public boolean isSetSpatialRef()
true
is the spatial reference is set.true
is the spatial reference is set.public void setSpId(java.lang.String spatialRef)
spatialRef
- the spatialRef to setsetSpatialRef(String)
public void setSpatialRef(java.lang.String spatialRef)
spatialRef
- the spatialRef to setpublic java.lang.String getVariable()
variable
.variable
.public SBase getVariableInstance()
public Species getSpeciesInstance()
public java.lang.String getSpeciesReference()
variable
.variable
.getVariable()
public Parameter getParameterInstance()
public boolean isSetSpeciesReference()
variable
is set.variable
is set.isSetVariable()
public boolean isSetVariable()
variable
is set.variable
is set.public void setSpeciesReference(java.lang.String variable)
variable
- the value of variable to be set.setVariable(String)
public void setVariable(java.lang.String variable)
variable
- the value of variable to be set.public boolean unsetSpatialRef()
true
if spatialRef was set before, otherwise false
.public boolean unsetVariable()
true
if variable was set before, otherwise false
.public void setSpeciesRef(java.lang.String variable)
variable
- the value of variable to be set.setVariable(String)
public ParameterType clone()
SBase
SBase
with the same
properties
like this one.clone
in interface SBase
clone
in class AbstractSBase
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class AbstractSBase
public javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class AbstractSBase
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class AbstractSBase
public boolean equals(java.lang.Object object)
SBase
public int hashCode()
SBase
SBase
instance.hashCode
in interface SBase
hashCode
in class AbstractSBase
SBase
instance.Object.hashCode()
public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBase
SBase
that
need to be written out in XML.
The attribute name is used as a key and the attribute value as value. If a prefix is needed for the attribute name, it need to be set directly in this map.
writeXMLAttributes
in interface SBase
writeXMLAttributes
in class AbstractSBase
Map
containing the XML attributes of this object.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 AbstractSBase
attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.