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, ignoredXMLElements
listOfListeners, 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() |
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)
If the attribute is an id or name attribute, it will set the id or name
of this object with the value of the XML attribute ('value').
|
void |
setIdRef(java.lang.String idRef)
Sets the value of idRef
|
void |
setMetaIdRef(java.lang.String metaIdRef)
Sets the value of metaIdRef
|
void |
setPortRef(java.lang.String portRef)
Sets the value of portRef
|
void |
setSBaseRef(SBaseRef sBaseRef)
Sets the value of sBaseRef
|
void |
setUnitRef(java.lang.String unitRef)
Sets the value of unitRef
|
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() |
addCVTerm, addDeclaredNamespace, addExtension, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionPackages, getHistory, 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, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
removeTreeNodeChangeListener
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
private 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()
SBase
SBase
with the same properties
like this one.clone
in interface SBase
clone
in class AbstractSBase
public java.lang.String getPortRef()
public boolean isSetPortRef()
public void setPortRef(java.lang.String portRef)
public boolean unsetPortRef()
true
, if portRef was set before,
otherwise false
public java.lang.String getIdRef()
public boolean isSetIdRef()
public void setIdRef(java.lang.String idRef)
public boolean unsetIdRef()
true
, if idRef was set before,
otherwise false
public java.lang.String getUnitRef()
public boolean isSetUnitRef()
public void setUnitRef(java.lang.String unitRef)
public boolean unsetUnitRef()
true
, if unitRef was set before,
otherwise false
public java.lang.String getMetaIdRef()
public boolean isSetMetaIdRef()
public void setMetaIdRef(java.lang.String metaIdRef)
public boolean unsetMetaIdRef()
true
, if metaIdRef was set before,
otherwise false
public SBaseRef createSBaseRef()
public SBaseRef getSBaseRef()
public boolean isSetSBaseRef()
public void setSBaseRef(SBaseRef sBaseRef)
public boolean unsetSBaseRef()
true
, if sBaseRef was set before,
otherwise false
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class AbstractSBase
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class AbstractSBase
public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class AbstractSBase
public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
writeXMLAttributes
in interface SBase
writeXMLAttributes
in class AbstractSBase
Map
containing the XML attributes of this object.public boolean readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBase
readAttribute
in interface SBase
readAttribute
in class AbstractSBase
attributeName
- 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 AbstractSBase
public int hashCode()
hashCode
in interface SBase
hashCode
in class AbstractSBase
Object.hashCode()
public boolean equals(java.lang.Object obj)
SBase
true
if and only if the given SBase
has exactly the same
properties like this SBase
instance.equals
in interface SBase
equals
in class AbstractSBase
true
if and only if the given Object
is an instance of
SBase
that has exactly the same properties like this
SBase instance.