java.io.Serializable, java.lang.Cloneable, javax.swing.tree.TreeNode, SBase, TreeNodeWithChangeSupportAbstractNamedSBaseRef, ReplacedBy, ReplacedElementpublic class SBaseRef extends AbstractSBase
The four different attributes on SBaseRef are mutually exclusive: only one of the attributes can have a value at any given time, and exactly one must have a value in a given SBaseRef object instance.
ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor | Description |
|---|---|
SBaseRef() |
Creates a
SBaseRef instance. |
SBaseRef(int level,
int version) |
Creates a SBaseRef instance with a level and version.
|
SBaseRef(SBaseRef obj) |
Clone constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
SBaseRef |
clone() |
|
SBaseRef |
createSBaseRef() |
|
boolean |
equals(java.lang.Object obj) |
|
boolean |
getAllowsChildren() |
|
javax.swing.tree.TreeNode |
getChildAt(int index) |
|
int |
getChildCount() |
|
java.lang.String |
getIdRef() |
Returns the value of idRef
|
java.lang.String |
getMetaIdRef() |
Returns the value of metaIdRef
|
java.lang.String |
getPortRef() |
Returns the value of portRef
|
SBaseRef |
getSBaseRef() |
Returns the value of sBaseRef
|
java.lang.String |
getUnitRef() |
Returns the value of unitRef
|
int |
hashCode() |
|
void |
initDefaults() |
Initializes the default values.
|
boolean |
isSetIdRef() |
Returns whether idRef is set
|
boolean |
isSetMetaIdRef() |
Returns whether metaIdRef is set
|
boolean |
isSetPortRef() |
Returns whether portRef is set
|
boolean |
isSetSBaseRef() |
Returns whether sBaseRef is set
|
boolean |
isSetUnitRef() |
Returns whether unitRef is set
|
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value) |
|
void |
setIdRef(java.lang.String idRef) |
Sets the value of the optional idRef attribute.
|
void |
setMetaIdRef(java.lang.String metaIdRef) |
Sets the value of the optional metaIdRef attribute.
|
void |
setPortRef(java.lang.String portRef) |
Sets the value of the optional portRef attribute.
|
void |
setSBaseRef(SBaseRef sBaseRef) |
Sets the value of the optional sBaseRef element.
|
void |
setUnitRef(java.lang.String unitRef) |
Sets the value of the optional unitRef attribute
|
boolean |
unsetIdRef() |
Unsets the variable idRef
|
boolean |
unsetMetaIdRef() |
Unsets the variable metaIdRef
|
boolean |
unsetPortRef() |
Unsets the variable portRef
|
boolean |
unsetSBaseRef() |
Unsets the variable sBaseRef
|
boolean |
unsetUnitRef() |
Unsets the variable unitRef
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, addResources, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkIdentifier, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllDeclaredNamespaces, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getFirstElementIndex, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasExtension, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isCloningInProgress, isInvalidSBMLAllowed, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitremoveTreeNodeChangeListeneraddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetpublic SBaseRef()
SBaseRef instance.public SBaseRef(int level,
int version)
level - the SBML levelversion - the SBML versionpublic SBaseRef(SBaseRef obj)
obj - the instance to clonepublic SBaseRef clone()
clone in interface SBaseclone in class AbstractSBasepublic void initDefaults()
public java.lang.String getPortRef()
public boolean isSetPortRef()
public void setPortRef(java.lang.String portRef)
As its name implies, this attribute is used to refer
to a port identifier, in the case when the reference
being constructed with the SBaseRef is
intended to refer to a port on a submodel.
portRef - the value of portRefpublic boolean unsetPortRef()
true, if portRef was set before,
otherwise falsepublic java.lang.String getIdRef()
public boolean isSetIdRef()
public void setIdRef(java.lang.String idRef)
As its name implies, this attribute is used to
refer to a regular identifier (i.e., the value of
an id attribute on some other object), in the case
when the reference being constructed with the
SBaseRef is intended to refer to an object
that does not have a port identifier.
idRef - the value of idRefpublic boolean unsetIdRef()
true, if idRef was set before,
otherwise falsepublic java.lang.String getUnitRef()
public boolean isSetUnitRef()
public void setUnitRef(java.lang.String unitRef)
This attribute is used to refer to the identifier of a
UnitDefinition object. The namespace of the
UnitSIdRef value is the set of unit identifiers defined
in the submodel, not the parent model.
Note that even though this attribute is of type UnitSIdRef, the reserved unit identifiers that are defined by SBML Level 3 are not permitted as values of unitRef. Reserved unit identifiers may not be replaced or deleted.
unitRef - the value of unitRefpublic boolean unsetUnitRef()
true, if unitRef was set before,
otherwise falsepublic java.lang.String getMetaIdRef()
public boolean isSetMetaIdRef()
public void setMetaIdRef(java.lang.String metaIdRef)
This attribute is used to refer to a metaid attribute value on some
other object, in the case when the reference being constructed with
the SBaseRef is intended to refer to an object that does not
have a port identifier. The namespace of the metaIdRef value is the
entire document in which the referenced model resides, but must refer
to a sub-element of the referenced model. Since meta identifiers are
optional attributes of SBase, all SBML objects have the potential to
have a meta identifier value.
metaIdRef - the value of metaIdRefpublic boolean unsetMetaIdRef()
true, if metaIdRef was set before,
otherwise falsepublic SBaseRef createSBaseRef()
public SBaseRef getSBaseRef()
public boolean isSetSBaseRef()
public void setSBaseRef(SBaseRef sBaseRef)
An SBaseRef object may have up to one subcomponent named
sBaseRef, of type SBaseRef. This permits recursive structures
to be constructed so that objects inside submodels can be referenced.
sBaseRef - the value of sBaseRefpublic boolean unsetSBaseRef()
true, if sBaseRef was set before,
otherwise falsepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodegetAllowsChildren in class AbstractSBasepublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodegetChildCount in class AbstractSBasepublic javax.swing.tree.TreeNode getChildAt(int index)
getChildAt in interface javax.swing.tree.TreeNodegetChildAt in class AbstractSBasepublic java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSBasepublic boolean readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
readAttribute in interface SBasereadAttribute in class AbstractSBasepublic int hashCode()
hashCode in interface SBasehashCode in class AbstractSBasepublic boolean equals(java.lang.Object obj)
equals in interface SBaseequals in class AbstractSBaseCopyright © 2009–2022. All rights reserved.