org.sbml.jsbml.ext.comp
public class ReplacedElement extends SBaseRef
ReplacedElement object is essentially a pointer to a submodel
object that should be considered "replaced". The object holding the
ReplacedElement instance is the one doing the replacing; the object
pointed to by the ReplacedElement object is the object being replaced.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
conversionFactor |
private java.lang.String |
deletion |
private static long |
serialVersionUID
Generated serial version identifier.
|
private java.lang.String |
submodelRef |
ignoredExtensions, ignoredXMLElementslistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| Constructor and Description |
|---|
ReplacedElement()
Creates an ReplacedElement instance
|
ReplacedElement(int level,
int version)
Creates a ReplacedElement instance with a level and version.
|
ReplacedElement(ReplacedElement obj)
Clone constructor
|
| Modifier and Type | Method and Description |
|---|---|
ReplacedElement |
clone()
clones this class
|
java.lang.String |
getConversionFactor()
Returns the value of conversionFactor
|
java.lang.String |
getDeletion()
Returns the value of deletion
|
java.lang.String |
getSubmodelRef()
Returns the value of submodelRef
|
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isSetConversionFactor()
Returns whether conversionFactor is set
|
boolean |
isSetDeletion()
Returns whether deletion is set
|
boolean |
isSetSubmodelRef()
Returns whether submodelRef is set
|
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
Sets the given attribute in this
SBase. |
void |
setConversionFactor(java.lang.String conversionFactor)
Sets the value of the optional conversionFactor attribute.
|
void |
setDeletion(java.lang.String deletion)
Sets the value of the optional deletion attribute.
|
void |
setSubmodelRef(java.lang.String submodelRef)
The required attribute submodelRef takes a value which must be
the identifier of a
Submodel object in the containing model. |
java.lang.String |
toString() |
boolean |
unsetConversionFactor()
Unsets the variable conversionFactor
|
boolean |
unsetDeletion()
Unsets the variable deletion
|
boolean |
unsetSubmodelRef()
Unsets the variable submodelRef
|
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. |
createSBaseRef, equals, getAllowsChildren, getChildAt, getChildCount, getIdRef, getMetaIdRef, getPortRef, getSBaseRef, getUnitRef, hashCode, isSetIdRef, isSetMetaIdRef, isSetPortRef, isSetSBaseRef, isSetUnitRef, setIdRef, setMetaIdRef, setPortRef, setSBaseRef, setUnitRef, unsetIdRef, unsetMetaIdRef, unsetPortRef, unsetSBaseRef, unsetUnitRefaddCVTerm, 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 submodelRef
private java.lang.String deletion
private java.lang.String conversionFactor
public ReplacedElement()
public ReplacedElement(int level,
int version)
level - version - public ReplacedElement(ReplacedElement obj)
public ReplacedElement clone()
public void initDefaults()
public java.lang.String getSubmodelRef()
public boolean isSetSubmodelRef()
public void setSubmodelRef(java.lang.String submodelRef)
Submodel object in the containing model.
This attribute is analogous to the corresponding attribute on
ReplacedElement; that is, the model referenced by the
Submodel object establishes the object namespaces for the portRef,
idRef, unitRef and metaIdRef attributes: only objects within the Model
object may be referenced by those attributes.
Sets the value of the required submodelRef attribute.public boolean unsetSubmodelRef()
true, if submodelRef was set before,
otherwise falsepublic java.lang.String getDeletion()
public boolean isSetDeletion()
public void setDeletion(java.lang.String deletion)
Deletion object in the parentModel of the ReplacedElement (i.e.,
the value of some Deletion object's id attribute). When deletion is set,
it means the ReplacedElement object is actually an annotation to indicate
that the replacement object replaces something deleted from a submodel. The use
of the deletion attribute overrides the use of the attributes inherited from
SBaseRef: instead of using portRef or idRef, the ReplacedElement
instance sets deletion to the identifier of the Deletion object. In addition,
the referenced Deletion must be a child of the Submodel referenced by
the submodelRef attribute.public boolean unsetDeletion()
true, if deletion was set before,
otherwise falsepublic java.lang.String getConversionFactor()
public boolean isSetConversionFactor()
public void setConversionFactor(java.lang.String conversionFactor)
ReplacedElement class's conversionFactor attribute,
if present, defines how to transform or rescale the replaced object's
value so that it is appropriate for the new contexts in which the
object appears. This attribute takes a value that must refer to a
Parameter object instance defined in the model. This parameter
then acts as a conversion factor.public boolean unsetConversionFactor()
true, if conversionFactor was set before,
otherwise falsepublic 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 SBaseRefMap 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 SBaseRefattributeName - localName of the XML attributeprefix - prefix of the XML attributevalue - value of the XML attributetrue if the attribute has been successfully read.