public 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 and 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 and Description |
|---|---|
SBaseRef |
clone() |
SBaseRef |
createSBaseRef()
|
boolean |
equals(Object obj) |
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
String |
getIdRef()
Returns the value of idRef
|
String |
getMetaIdRef()
Returns the value of metaIdRef
|
String |
getPortRef()
Returns the value of portRef
|
SBaseRef |
getSBaseRef()
Returns the value of sBaseRef
|
String |
getUnitRef()
Returns the value of unitRef
|
int |
hashCode() |
void |
initDefaults()
Initializes the default values using the namespace.
|
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(String attributeName,
String prefix,
String value) |
void |
setIdRef(String idRef)
Sets the value of the optional idRef attribute.
|
void |
setMetaIdRef(String metaIdRef)
Sets the value of the optional metaIdRef attribute.
|
void |
setPortRef(String portRef)
Sets the value of the optional portRef attribute.
|
void |
setSBaseRef(SBaseRef sBaseRef)
Sets the value of the optional sBaseRef element.
|
void |
setUnitRef(String unitRef)
Sets the value of the optional unitRef attribute
This attribute is used to refer to the identifier of a
UnitDefinition object. |
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
|
Map<String,String> |
writeXMLAttributes() |
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, 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, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, 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, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, 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 - version - public SBaseRef(SBaseRef obj)
obj - public SBaseRef clone()
clone in interface SBaseclone in class AbstractSBasepublic void initDefaults()
public String getPortRef()
public boolean isSetPortRef()
public void setPortRef(String portRef)
SBaseRef is
intended to refer to a port on a submodel.portRef - public boolean unsetPortRef()
true, if portRef was set before,
otherwise falsepublic String getIdRef()
public boolean isSetIdRef()
public void setIdRef(String idRef)
SBaseRef is intended to refer to an object
that does not have a port identifier.idRef - public boolean unsetIdRef()
true, if idRef was set before,
otherwise falsepublic String getUnitRef()
public boolean isSetUnitRef()
public void setUnitRef(String unitRef)
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 - public boolean unsetUnitRef()
true, if unitRef was set before,
otherwise falsepublic String getMetaIdRef()
public boolean isSetMetaIdRef()
public void setMetaIdRef(String metaIdRef)
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 subelement 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 - public boolean unsetMetaIdRef()
true, if metaIdRef was set before,
otherwise falsepublic SBaseRef createSBaseRef()
public SBaseRef getSBaseRef()
public boolean isSetSBaseRef()
public void setSBaseRef(SBaseRef sBaseRef)
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 - public boolean unsetSBaseRef()
true, if sBaseRef was set before,
otherwise falsepublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodegetAllowsChildren in class AbstractSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class AbstractSBasepublic TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class AbstractSBasepublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSBasepublic boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class AbstractSBasepublic int hashCode()
hashCode in interface SBasehashCode in class AbstractSBasepublic boolean equals(Object obj)
equals in interface SBaseequals in class AbstractSBaseCopyright © 2009–2016. All rights reserved.