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, ignoredXMLElementslistOfListeners, 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)
Sets the given attribute in this
SBase. |
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()
Returns a map with all the attributes of this
SBase that
need to be written out in XML. |
equals, getId, getName, hashCode, isSetId, isSetName, isValidId, setId, setName, toString, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllowsChildren, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, 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, removeCVTerm, removeCVTerm, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, 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, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, isSetId, isSetName, setId, setName, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, equals, 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, hashCode, 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, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetprivate 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()
NamedSBaseNamedSBase is required to be defined (i.e., not null)
in the definition of SBML.isIdMandatory in interface NamedSBasetrue 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()
SBaseSBase with the same properties
like this one.clone in interface SBaseclone in class AbstractSBasepublic 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 - StateFeatureInstancejava.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 - ContainedSpeciesTypejava.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.TreeNodegetChildAt in class AbstractSBasepublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodegetChildCount in class AbstractSBasepublic boolean readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
SBaseSBase.
If the given attribute name is not recognized, nothing is done and
false is returned.
readAttribute in interface SBasereadAttribute in class AbstractNamedSBaseattributeName - 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()
SBaseSBase 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 SBasewriteXMLAttributes in class AbstractNamedSBaseMap containing the XML attributes of this object.