org.sbml.jsbml
public abstract class SimpleSpeciesReference extends AbstractNamedSBase implements UniqueNamedSBase
SpeciesReference
and
ModifierSpeciesReference
.Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
Generated serial version identifier.
|
private java.lang.String |
speciesID
Represents the 'species' XML attribute.
|
lv
listOfListeners, parent
Constructor and Description |
---|
SimpleSpeciesReference()
Creates a SimpleSpeciesReference instance.
|
SimpleSpeciesReference(int level,
int version) |
SimpleSpeciesReference(SimpleSpeciesReference ssr)
Creates a SimpleSpeciesReference instance from a given
SimpleSpeciesReference.
|
SimpleSpeciesReference(Species s)
Creates a SimpleSpeciesReference instance from a given Species.
|
SimpleSpeciesReference(java.lang.String id) |
SimpleSpeciesReference(java.lang.String id,
int level,
int version) |
SimpleSpeciesReference(java.lang.String id,
java.lang.String name,
int level,
int version) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getSpecies() |
Species |
getSpeciesInstance() |
int |
hashCode() |
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 |
isSetSpecies() |
boolean |
isSetSpeciesInstance() |
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 |
setSpecies(Species species)
Sets the speciesID to the id of the
Species 'species'. |
void |
setSpecies(java.lang.String species)
Sets the speciesID to 'spec'.
|
java.lang.String |
toString()
Returns the name of the component, if it is available.
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
checkIdentifier, getId, getName, isSetId, isSetName, isValidId, setId, setName, unsetId, unsetName
addCVTerm, addDeclaredNamespace, addNamespace, appendNotes, appendNotes, checkLevelAndVersionCompatibility, clone, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, getAllowsChildren, getAnnotation, getAnnotationString, getChildAt, getChildCount, getCVTerm, getCVTerms, getDeclaredNamespaces, getElementName, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespaces, getNotes, getNotesString, getNumCVTerms, getParent, getParentSBMLObject, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, notifyChildChange, registerChild, removeNamespace, setAnnotation, setHistory, setLevel, setLevelAndVersion, setMetaId, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetHistory, unsetMetaId, unsetNotes, unsetSBOTerm
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, fireNodeAddedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getTreeNodeChangeListenerCount, indexOf, isLeaf, isRoot, isSetParent, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, setParent
finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getName, isSetId, isSetName, setId, setName, unsetId, unsetName
addCVTerm, addDeclaredNamespace, addNamespace, appendNotes, appendNotes, clone, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTerms, getDeclaredNamespaces, getElementName, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespaces, getNotes, getNotesString, getNumCVTerms, getParentSBMLObject, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetSBOTerm, isSetVersion, registerChild, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetHistory, unsetMetaId, unsetNotes, unsetSBOTerm
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getTreeNodeChangeListenerCount, isRoot, isSetParent, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener
private static final long serialVersionUID
private java.lang.String speciesID
public SimpleSpeciesReference()
public SimpleSpeciesReference(int level, int version)
level
- version
- public SimpleSpeciesReference(SimpleSpeciesReference ssr)
ssr
- public SimpleSpeciesReference(Species s)
ssr
- public SimpleSpeciesReference(java.lang.String id)
id
- public SimpleSpeciesReference(java.lang.String id, int level, int version)
id
- level
- version
- public SimpleSpeciesReference(java.lang.String id, java.lang.String name, int level, int version)
id
- name
- level
- version
- public boolean equals(java.lang.Object object)
SBase
SBase
has exactly the same
properties like this SBase
instance.equals
in interface SBase
equals
in class AbstractNamedSBase
Object
is an instance of
SBase
that has exactly the same properties like this
SBase instance.public java.lang.String getSpecies()
Species
. The empty String if it is not set.public Species getSpeciesInstance()
public int hashCode()
hashCode
in interface SBase
hashCode
in class AbstractNamedSBase
Object.hashCode()
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 boolean isSetSpecies()
public boolean isSetSpeciesInstance()
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 attributepublic void setSpecies(Species species)
Species
'species'.species
- public void setSpecies(java.lang.String species)
species
- public java.lang.String toString()
AbstractNamedSBase
toString
in class AbstractNamedSBase
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.