org.sbml.jsbml.ext.comp
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.
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
idRef
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.
|
private 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.
|
private java.lang.String |
portRef
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.
|
private SBaseRef |
sBaseRef
An SBaseRef object may have up to one subcomponent named sBaseRef.
|
private static long |
serialVersionUID
Generated serial version identifier.
|
private java.lang.String |
unitRef
This attribute is used to refer to the identifier of a
UnitDefinition object.
|
ignoredExtensions, ignoredXMLElementslistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| 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()
Creates a deep copy of this object, i.e., a new
SBase with the same properties
like this one. |
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()
Returns a hash code value for this
SBase instance. |
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)
Sets the given attribute in this
SBase. |
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
This attribute is used to refer to the identifier of a
UnitDefinition object. |
java.lang.String |
toString() |
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()
Returns a map with all the attributes of this
SBase that
need to be written out in XML. |
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, 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, 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, userObjectKeySetprivate static final long serialVersionUID
private java.lang.String portRef
private java.lang.String idRef
private java.lang.String unitRef
private java.lang.String metaIdRef
private SBaseRef sBaseRef
public SBaseRef()
level - version - public SBaseRef(int level,
int version)
level - version - public SBaseRef(SBaseRef obj)
public SBaseRef clone()
SBaseSBase with the same properties
like this one.clone in interface SBaseclone in class AbstractSBasepublic java.lang.String getPortRef()
public boolean isSetPortRef()
public void setPortRef(java.lang.String portRef)
SBaseRef is
intended to refer to a port on a submodel.public boolean unsetPortRef()
true, if portRef was set before,
otherwise falsepublic java.lang.String getIdRef()
public boolean isSetIdRef()
public void setIdRef(java.lang.String idRef)
SBaseRef is intended to refer to an object
that does not have a port identifier.public boolean unsetIdRef()
true, if idRef was set before,
otherwise falsepublic java.lang.String getUnitRef()
public boolean isSetUnitRef()
public void setUnitRef(java.lang.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.public boolean unsetUnitRef()
true, if unitRef was set before,
otherwise falsepublic java.lang.String getMetaIdRef()
public boolean isSetMetaIdRef()
public void setMetaIdRef(java.lang.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.public boolean unsetMetaIdRef()
true, if metaIdRef was set before,
otherwise falsepublic SBaseRef createSBaseRef()
public SBaseRef getSBaseRef()
public boolean isSetSBaseRef()
public void setSBaseRef(SBaseRef sBaseRef)
public 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()
SBaseSBase that
need to be written out in XML.
The attribute name is used as a key and the attribute value as value. If a prefix is needed for the attribute name, it need to be set directly in this map.
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSBaseMap containing the XML attributes of this object.public boolean readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
SBaseSBase.
If the given attribute name is not recognized, nothing is done and
false is returned.
readAttribute in interface SBasereadAttribute in class AbstractSBaseattributeName - localName of the XML attributeprefix - prefix of the XML attributevalue - value of the XML attributetrue if the attribute has been successfully read.public java.lang.String toString()
toString in class AbstractSBasepublic int hashCode()
SBaseSBase instance.hashCode in interface SBasehashCode in class AbstractSBaseSBase instance.Object.hashCode()public boolean equals(java.lang.Object obj)
SBase