org.sbml.jsbml.ext.multi
public class SpeciesTypeState extends AbstractNamedSBase implements UniqueNamedSBase
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
connex |
private ListOf<ContainedSpeciesType> |
listOfContainedSpeciesTypes |
private ListOf<StateFeatureInstance> |
listOfStateFeatureInstances |
private java.lang.Integer |
maxOccur |
private java.lang.Integer |
minOccur |
private java.lang.Boolean |
saturated |
private static long |
serialVersionUID
Generated serial version identifier.
|
private java.lang.String |
speciesType |
ignoredExtensions, ignoredXMLElements
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
SpeciesTypeState() |
Modifier and Type | Method and Description |
---|---|
void |
addContainedSpeciesType(ContainedSpeciesType containedSpeciesType)
Adds a ContainedSpeciesType.
|
void |
addStateFeatureInstance(StateFeatureInstance stateFeatureInstance)
Adds a StateFeatureInstance.
|
AbstractSBase |
clone()
Creates a deep copy of this object, i.e., a new
SBase with the same properties
like this one. |
ContainedSpeciesType |
createContainedSpeciesType()
Creates a new
ContainedSpeciesType inside this StateFeature and returns it. |
StateFeatureInstance |
createStateFeatureInstance()
Creates a new
StateFeatureInstance inside this SpeciesTypeState and returns it. |
StateFeatureInstance |
createStateFeatureInstance(java.lang.String id)
Creates a new
StateFeatureInstance inside this SpeciesTypeState and returns it. |
javax.swing.tree.TreeNode |
getChildAt(int index) |
int |
getChildCount() |
boolean |
getConnex()
Returns if this
SpeciesTypeState is connex or not. |
ContainedSpeciesType |
getContainedSpeciesType(int i)
Gets the ith
ContainedSpeciesType . |
ContainedSpeciesType |
getContainedSpeciesType(java.lang.String id)
Gets the
ContainedSpeciesType that has the given speciesTypeState id. |
ListOf<ContainedSpeciesType> |
getListOfContainedSpeciesTypes()
Returns the listOfContainedSpeciesTypes
|
ListOf<StateFeatureInstance> |
getListOfStateFeatureInstances()
Returns the listOfStateFeatureInstances
|
int |
getMaxOccur()
Returns the maxOccur.
|
int |
getMinOccur()
Returns the minOccur.
|
boolean |
getSaturated()
Returns if this
SpeciesTypeState is saturated or not. |
java.lang.String |
getSpeciesType()
Returns the speciesType.
|
StateFeatureInstance |
getStateFeatureInstance(int i)
Gets the ith
StateFeatureInstance . |
StateFeatureInstance |
getStateFeatureInstance(java.lang.String id)
Gets the
StateFeatureInstance that has the given id. |
void |
initDefaults() |
boolean |
isConnex()
Returns if this
SpeciesTypeState is connex or not. |
boolean |
isIdMandatory()
This method can be used to query if the identifier of this
NamedSBase is required to be defined (i.e., not null )
in the definition of SBML. |
boolean |
isSaturated()
Returns if this
SpeciesTypeState is saturated or not. |
boolean |
isSetConnex()
Returns
true if connex is not null . |
boolean |
isSetListOfContainedSpeciesTypes()
Returns
true if the listOfContainedSpeciesType is set. |
boolean |
isSetListOfStateFeatureInstances()
Returns
true if the listOfStateFeatureInstance is set. |
boolean |
isSetMaxOccur()
Returns
true if maxOccur is not null . |
boolean |
isSetMinOccur()
Returns
true if minOccur is not null . |
boolean |
isSetSaturated()
Returns
true if saturated is not null . |
boolean |
isSetSpeciesType()
Returns
true if the speciesType is defined. |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
If the attribute is an id or name attribute, it will set the id or name
of this object with the value of the XML attribute ('value').
|
void |
setConnex(boolean connex)
Sets the connex
|
void |
setMaxOccur(int maxOccur)
Sets the maxOccur.
|
void |
setMinOccur(int minOccur)
Sets the minOccur.
|
void |
setSaturated(boolean saturated)
Sets the saturated.
|
void |
setSpeciesType(java.lang.String speciesType)
Sets the speciesType.
|
boolean |
unsetListOfContainedSpeciesTypes()
Sets the listOfContainedSpeciesTypes to null
|
boolean |
unsetListOfStateFeatureInstances()
Sets the listOfStateFeatureInstances to null
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
equals, getId, getName, hashCode, isSetId, isSetName, isValidId, setId, setName, toString, unsetId, unsetName
addCVTerm, addDeclaredNamespace, addExtension, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, getAllowsChildren, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParent, 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, setAnnotation, setHistory, setLevel, 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
getId, getName, isSetId, isSetName, setId, setName, unsetId, unsetName
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 java.lang.String speciesType
private java.lang.Integer minOccur
private java.lang.Integer maxOccur
private java.lang.Boolean connex
private java.lang.Boolean saturated
private ListOf<StateFeatureInstance> listOfStateFeatureInstances
private ListOf<ContainedSpeciesType> listOfContainedSpeciesTypes
public boolean isIdMandatory()
NamedSBase
NamedSBase
is required to be defined (i.e., not null
)
in the definition of SBML.isIdMandatory
in interface NamedSBase
true
if the identifier of this element must be set in
order to create a valid SBML representation. false
otherwise, i.e., if the identifier can be understood as an optional
attribute.public AbstractSBase clone()
SBase
SBase
with the same properties
like this one.clone
in interface SBase
clone
in class AbstractSBase
public java.lang.String getSpeciesType()
public void setSpeciesType(java.lang.String speciesType)
speciesType
- the speciesType to setpublic boolean isSetSpeciesType()
true
if the speciesType is defined.true
if the speciesType is defined, false
otherwise.public int getMinOccur()
public void setMinOccur(int minOccur)
minOccur
- the minOccur to setpublic boolean isSetMinOccur()
true
if minOccur is not null
.true
if minOccur is not null
.public int getMaxOccur()
public void setMaxOccur(int maxOccur)
maxOccur
- the maxOccur to setpublic boolean isSetMaxOccur()
true
if maxOccur is not null
.true
if maxOccur is not null
.public boolean isConnex()
SpeciesTypeState
is connex or not.public boolean getConnex()
SpeciesTypeState
is connex or not.public void setConnex(boolean connex)
connex
- the connex to setpublic boolean isSetConnex()
true
if connex is not null
.true
if connex is not null
.public boolean isSaturated()
SpeciesTypeState
is saturated or not.public boolean getSaturated()
SpeciesTypeState
is saturated or not.public void setSaturated(boolean saturated)
saturated
- the saturated to setpublic boolean isSetSaturated()
true
if saturated is not null
.true
if saturated is not null
.public ListOf<StateFeatureInstance> getListOfStateFeatureInstances()
public void addStateFeatureInstance(StateFeatureInstance stateFeatureInstance)
stateFeatureInstance
- the StateFeatureInstance to addpublic StateFeatureInstance createStateFeatureInstance()
StateFeatureInstance
inside this SpeciesTypeState
and returns it.
StateFeatureInstance
object created
addStateFeatureInstance(StateFeatureInstance r)
public StateFeatureInstance createStateFeatureInstance(java.lang.String id)
StateFeatureInstance
inside this SpeciesTypeState
and returns it.id
- the id of the new element to createStateFeatureInstance
object createdpublic StateFeatureInstance getStateFeatureInstance(int i)
StateFeatureInstance
.i
- StateFeatureInstance
java.lang.IndexOutOfBoundsException
- if the index is invalid.public StateFeatureInstance getStateFeatureInstance(java.lang.String id)
StateFeatureInstance
that has the given id.id
- StateFeatureInstance
that has the given id or null if
no StateFeatureInstance
are found that match id
.public boolean isSetListOfStateFeatureInstances()
true
if the listOfStateFeatureInstance is set.true
if the listOfStateFeatureInstance is set.public boolean unsetListOfStateFeatureInstances()
true
is successfulpublic ListOf<ContainedSpeciesType> getListOfContainedSpeciesTypes()
public void addContainedSpeciesType(ContainedSpeciesType containedSpeciesType)
containedSpeciesType
- the ContainedSpeciesType to addpublic ContainedSpeciesType createContainedSpeciesType()
ContainedSpeciesType
inside this StateFeature
and returns it.ContainedSpeciesType
object createdpublic ContainedSpeciesType getContainedSpeciesType(int i)
ContainedSpeciesType
.i
- ContainedSpeciesType
java.lang.IndexOutOfBoundsException
- if the index is invalid.public ContainedSpeciesType getContainedSpeciesType(java.lang.String id)
ContainedSpeciesType
that has the given speciesTypeState id.id
- ContainedSpeciesType
that has the given speciesTypeState id or null if
no ContainedSpeciesType
are found that match id
.public boolean isSetListOfContainedSpeciesTypes()
true
if the listOfContainedSpeciesType is set.true
if the listOfContainedSpeciesType is set.public boolean unsetListOfContainedSpeciesTypes()
true
is successfulpublic void initDefaults()
public javax.swing.tree.TreeNode getChildAt(int index)
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 readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBase
readAttribute
in interface SBase
readAttribute
in class AbstractNamedSBase
attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
writeXMLAttributes
in interface SBase
writeXMLAttributes
in class AbstractNamedSBase
Map
containing the XML attributes of this object.