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.ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| 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
|
boolean |
equals(Object obj) |
String |
getConversionFactor()
Returns the value of conversionFactor
|
String |
getDeletion()
Returns the value of deletion
|
String |
getSubmodelRef()
Returns the value of submodelRef
|
int |
hashCode() |
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(String attributeName,
String prefix,
String value) |
void |
setConversionFactor(String conversionFactor)
Sets the value of the optional conversionFactor attribute.
|
void |
setDeletion(String deletion)
Sets the value of the optional deletion attribute.
|
void |
setSubmodelRef(String submodelRef)
The required attribute submodelRef takes a value which must be
the identifier of a
Submodel object in the containing model. |
boolean |
unsetConversionFactor()
Unsets the variable conversionFactor
|
boolean |
unsetDeletion()
Unsets the variable deletion
|
boolean |
unsetSubmodelRef()
Unsets the variable submodelRef
|
Map<String,String> |
writeXMLAttributes() |
createSBaseRef, getAllowsChildren, getChildAt, getChildCount, getIdRef, getMetaIdRef, getPortRef, getSBaseRef, getUnitRef, isSetIdRef, isSetMetaIdRef, isSetPortRef, isSetSBaseRef, isSetUnitRef, setIdRef, setMetaIdRef, setPortRef, setSBaseRef, setUnitRef, unsetIdRef, unsetMetaIdRef, unsetPortRef, unsetSBaseRef, unsetUnitRefaddCVTerm, 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 ReplacedElement()
public ReplacedElement(int level,
int version)
level - version - public ReplacedElement(ReplacedElement obj)
obj - public ReplacedElement clone()
public void initDefaults()
initDefaults in class SBaseRefpublic int hashCode()
public boolean equals(Object obj)
public String getSubmodelRef()
public boolean isSetSubmodelRef()
public void setSubmodelRef(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.submodelRef - public boolean unsetSubmodelRef()
true, if submodelRef was set before,
otherwise falsepublic String getDeletion()
public boolean isSetDeletion()
public void setDeletion(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.deletion - public boolean unsetDeletion()
true, if deletion was set before,
otherwise falsepublic String getConversionFactor()
public boolean isSetConversionFactor()
public void setConversionFactor(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.conversionFactor - public boolean unsetConversionFactor()
true, if conversionFactor was set before,
otherwise falsepublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class SBaseRefpublic boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class SBaseRefCopyright © 2009–2016. All rights reserved.