java.io.Serializable
, java.lang.Cloneable
, javax.swing.tree.TreeNode
, NamedSBase
, SBase
, TreeNodeWithChangeSupport
AbstractNamedSBaseWithUnit
, BoundingBox
, ChangedMath
, ColorDefinition
, CompartmentReference
, CompartmentType
, Dimension
, Dimensions
, DynElement
, ExternalModelDefinition
, FluxBound
, FluxObjective
, GeneProduct
, GeneProductAssociation
, GeneProductRef
, GradientBase
, GraphicalObject
, Group
, Input
, InSpeciesTypeBond
, Layout
, Member
, MemberConstraint
, Model
, Objective
, Output
, Point
, PossibleSpeciesFeatureValue
, QualitativeSpecies
, Reaction
, RenderInformationBase
, SimpleSpeciesReference
, SpatialComponent
, SpeciesFeature
, SpeciesFeatureType
, SpeciesType
, SpeciesTypeComponentIndex
, SpeciesTypeInstance
, Style
, Submodel
, Transition
, UnitDefinition
public abstract class AbstractNamedSBase extends AbstractSBase implements NamedSBase
SBase
have an id an a name. This class is kept for compatibility but it is more or less empty,
all code dealing with id and name has been moved to AbstractSBase.JSBML_WRONG_SBO_TERM
Constructor | Description |
---|---|
AbstractNamedSBase() |
Creates a new
AbstractNamedSBase instance. |
AbstractNamedSBase(int level,
int version) |
Creates an
AbstractNamedSBase from a level and version. |
AbstractNamedSBase(java.lang.String id) |
Creates an
AbstractNamedSBase with the given identifier. |
AbstractNamedSBase(java.lang.String id,
int level,
int version) |
Creates an
AbstractNamedSBase from an id, level and version. |
AbstractNamedSBase(java.lang.String id,
java.lang.String name,
int level,
int version) |
Creates an AbctractNamedSBase from an id, name, level and version.
|
AbstractNamedSBase(AbstractNamedSBase nsb) |
Creates an
AbstractNamedSBase from a given AbstractNamedSBase . |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
isValidId(java.lang.String idCandidate,
int level,
int version) |
Deprecated.
|
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, addResources, appendAnnotation, appendAnnotation, appendNotes, appendNotes, clone, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, equals, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllDeclaredNamespaces, getAllowsChildren, getAnnotation, getAnnotationString, getChildAt, getChildCount, 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, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, readAttribute, 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, writeXMLAttributes
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
getId, getName, isIdMandatory, isSetId, isSetName, setId, setName, unsetId, unsetName
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, clone, createPlugin, disablePackage, enablePackage, enablePackage, equals, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasExtension, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, readAttribute, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTreeNodeChangeListener, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTerm, writeXMLAttributes
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
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
public AbstractNamedSBase()
AbstractNamedSBase
instance. By default, id and name are null
.public AbstractNamedSBase(int level, int version)
AbstractNamedSBase
from a level and version. By default, id
and name are null
.level
- the SBML levelversion
- the SBML versionpublic AbstractNamedSBase(java.lang.String id)
AbstractNamedSBase
with the given identifier. Note
that with this constructor the level and version of the element are not
specified. These elements are however required to ensure the validity of
the SBML data structure. Without level and version, it may not be
possible to serialize this class to SBML.id
- the id of this AbstractNamedSBase
public AbstractNamedSBase(java.lang.String id, int level, int version)
AbstractNamedSBase
from an id, level and version.id
- the id of this AbstractNamedSBase
level
- the SBML levelversion
- the SBML versionpublic AbstractNamedSBase(java.lang.String id, java.lang.String name, int level, int version)
id
- the id of this AbstractNamedSBase
name
- the name of this AbstractNamedSBase
level
- the SBML levelversion
- the SBML versionpublic AbstractNamedSBase(AbstractNamedSBase nsb)
AbstractNamedSBase
from a given AbstractNamedSBase
.nsb
- an AbstractNamedSBase
object to clone@Deprecated public static final boolean isValidId(java.lang.String idCandidate, int level, int version)
SyntaxChecker.isValidId(String, int, int)
idCandidate
- The String
to be tested.level
- Level of the SBML to be used.version
- Version of the SBML to be used.