java.lang.Cloneable
, SBase
, java.io.Serializable
, javax.swing.tree.TreeNode
, TreeNodeWithChangeSupport
CallableSBase
, CompartmentalizedSBase
, NamedSBaseWithDerivedUnit
, Quantity
, UniqueNamedSBase
, Variable
AbstractDistribSBase
, AbstractNamedSBase
, AbstractNamedSBaseRef
, AbstractNamedSBaseWithUnit
, AbstractReferenceGlyph
, AbstractSpatialNamedSBase
, AdjacentDomains
, AnalyticGeometry
, AnalyticVolume
, BindingSiteSpeciesType
, Boundary
, BoundingBox
, ChangedMath
, ColorDefinition
, Compartment
, CompartmentGlyph
, CompartmentMapping
, CompartmentReference
, CompartmentType
, CoordinateComponent
, CSGeometry
, CSGHomogeneousTransformation
, CSGNode
, CSGObject
, CSGPrimitive
, CSGPseudoPrimitive
, CSGRotation
, CSGScale
, CSGSetOperator
, CSGTransformation
, CSGTranslation
, Deletion
, Dimension
, Dimensions
, Domain
, DomainType
, DynElement
, Event
, ExternalModelDefinition
, FluxBound
, FluxObjective
, FunctionDefinition
, GeneProduct
, GeneProductAssociation
, GeneProductRef
, GeneralGlyph
, Geometry
, GeometryDefinition
, GlobalRenderInformation
, GradientBase
, GraphicalObject
, Group
, Input
, InSpeciesTypeBond
, IntraSpeciesReaction
, Layout
, LinearGradient
, ListOfMemberConstraint
, ListOfMembers
, LocalParameter
, LocalRenderInformation
, LocalStyle
, Member
, MemberConstraint
, MixedGeometry
, Model
, ModelDefinition
, ModifierSpeciesReference
, MultiSpeciesType
, Objective
, Output
, Parameter
, ParametricGeometry
, ParametricObject
, Point
, Port
, PossibleSpeciesFeatureValue
, QualitativeSpecies
, QuantityWithUnit
, RadialGradient
, Reaction
, ReactionGlyph
, ReferenceGlyph
, RenderGroup
, RenderInformationBase
, SampledField
, SampledFieldGeometry
, SampledVolume
, SimpleSpeciesReference
, SpatialComponent
, SpatialPoints
, Species
, SpeciesFeature
, SpeciesFeatureType
, SpeciesGlyph
, SpeciesReference
, SpeciesReferenceGlyph
, SpeciesType
, SpeciesTypeComponentIndex
, SpeciesTypeInstance
, Style
, SubListOfSpeciesFeature
, Submodel
, Symbol
, TextGlyph
, Transition
, Uncertainty
, UncertParameter
, UncertSpan
, UnitDefinition
public interface NamedSBase extends SBase
SBase
have an id an a name. This interface is kept as it is to be able to know
which elements could have an id or name before SBML L3V2, not every SBase
will
be NamedSBase
in jsbml. If you support L3V2 and want to manipulate id and name, prefer
to use the SBase
interface instead of NamedSBase
.Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getId() |
Returns the id of the element if it is set, an empty string otherwise.
|
java.lang.String |
getName() |
Returns the name of the element if it is set, an empty string otherwise.
|
boolean |
isIdMandatory() |
Returns
true if the identifier of this
NamedSBase is required to be defined (i.e., not null )
in the definition of SBML. |
boolean |
isSetId() |
Returns
true if the id is not null . |
boolean |
isSetName() |
Returns
true if the name is not null . |
void |
setId(java.lang.String id) |
Sets the id value with 'id'
|
void |
setName(java.lang.String name) |
Sets the name value with 'name'.
|
void |
unsetId() |
Sets the id value to
null . |
void |
unsetName() |
Sets the name value to
null . |
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
java.lang.String getId()
java.lang.String getName()
boolean isIdMandatory()
true
if the identifier of this
NamedSBase
is required to be defined (i.e., not null
)
in the definition of SBML.isIdMandatory
in interface SBase
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.boolean isSetId()
true
if the id is not null
.boolean isSetName()
true
if the name is not null
.void setId(java.lang.String id)
void setName(java.lang.String name)