public class ReplacedElement extends Replacing
Constructor and Description |
---|
ReplacedElement()   |
ReplacedElement(CompPkgNamespaces compns)   |
ReplacedElement(long level)   |
ReplacedElement(long level,
long version)   |
ReplacedElement(long level,
long version,
long pkgVersion)   |
ReplacedElement(ReplacedElement source)   |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptComp(SWIGTYPE_p_CompVisitor v)   |
SBase |
cloneObject()
Creates and returns a deep copy of this
SBase object. |
void |
delete()
Explicitly deletes the underlying native object.
|
String |
getConversionFactor()   |
String |
getDeletion()   |
String |
getElementName()
Returns the XML element name of this object.
|
int |
getNumReferents()   |
SBase |
getReferencedElementFrom(Model model)   |
int |
getTypeCode()
Returns the libSBML type code for this object.
|
boolean |
isSetConversionFactor()   |
boolean |
isSetDeletion()   |
int |
performReplacement()   |
void |
renameSIdRefs(String oldid,
String newid)
Renames all the
SIdRef attributes on this element, including any
found in MathML content (if such exists). |
int |
setConversionFactor(String id)   |
int |
setDeletion(String id)   |
int |
unsetConversionFactor()   |
int |
unsetDeletion()   |
getSubmodelRef, isSetSubmodelRef, replaceWithAndMaybeDelete, saveReferencedElement, setSubmodelRef, unsetSubmodelRef
clearReferencedElement, createSBaseRef, getElementByMetaId, getElementBySId, getIdRef, getMetaIdRef, getPortRef, getReferencedElement, getSBaseRef, getUnitRef, isSetIdRef, isSetMetaIdRef, isSetPortRef, isSetSBaseRef, isSetUnitRef, performDeletion, removeFromParentAndDelete, setIdRef, setMetaIdRef, setPortRef, setSBaseRef, setUnitRef, unsetIdRef, unsetMetaIdRef, unsetPortRef, unsetSBaseRef, unsetUnitRef
getPackageName, getPackageURI, getPackageVersion, getParentModel
addCVTerm, addCVTerm, appendAnnotation, appendAnnotation, appendNotes, appendNotes, disablePackage, enablePackage, equals, getAncestorOfType, getAncestorOfType, getAnnotation, getAnnotationString, getColumn, getCVTerm, getCVTerms, getLevel, getLine, getListOfAllElements, getListOfAllElementsFromPlugins, getMetaId, getModel, getModelHistory, getNamespaces, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParentSBMLObject, getPlugin, getPlugin, getResourceBiologicalQualifier, getResourceModelQualifier, getSBMLDocument, getSBOTerm, getSBOTermAsURL, getSBOTermID, getVersion, hashCode, hasValidLevelVersionNamespaceCombination, isPackageEnabled, isPackageURIEnabled, isSetAnnotation, isSetMetaId, isSetModelHistory, isSetNotes, isSetSBOTerm, matchesRequiredSBMLNamespacesForAddition, matchesSBMLNamespaces, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, renameMetaIdRefs, renameUnitSIdRefs, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setMetaId, setModelHistory, setNamespaces, setNotes, setNotes, setNotes, setSBOTerm, setSBOTerm, toSBML, unsetAnnotation, unsetCVTerms, unsetId, unsetMetaId, unsetModelHistory, unsetName, unsetNotes, unsetSBOTerm
public ReplacedElement() throws SBMLConstructorException
SBMLConstructorException
public ReplacedElement(CompPkgNamespaces compns) throws SBMLConstructorException
SBMLConstructorException
public ReplacedElement(long level) throws SBMLConstructorException
SBMLConstructorException
public ReplacedElement(long level, long version) throws SBMLConstructorException
SBMLConstructorException
public ReplacedElement(long level, long version, long pkgVersion) throws SBMLConstructorException
SBMLConstructorException
public ReplacedElement(ReplacedElement source) throws SBMLConstructorException
SBMLConstructorException
public boolean acceptComp(SWIGTYPE_p_CompVisitor v)
public SBase cloneObject()
SBase
object.
cloneObject
 in class SBaseRef
SBase
object.public void delete()
In general, application software will not need to call this method directly. The Java language binding for libSBML is implemented as a language wrapper that provides a Java interface to libSBML's underlying C++/C code. Some of the Java methods return objects that are linked to objects created not by Java code, but by C++ code. The Java objects wrapped around them will be deleted when the garbage collector invokes the corresponding C++ finalize()
methods for the objects. The finalize()
methods in turn call the ReplacedElement.delete()
method on the libSBML object.
This method is exposed in case calling programs want to ensure that the underlying object is freed immediately, and not at some arbitrary time determined by the Java garbage collector. In normal usage, callers do not need to invoke ReplacedElement.delete()
themselves.
public String getConversionFactor()
public String getDeletion()
public String getElementName()
This is overridden by subclasses to return a string appropriate to the
SBML component. For example, Model
defines it as returning
'model'
, CompartmentType
defines it as returning 'compartmentType'
,
and so on.
getElementName
 in class SBaseRef
public int getNumReferents()
getNumReferents
 in class SBaseRef
public SBase getReferencedElementFrom(Model model)
getReferencedElementFrom
 in class SBaseRef
public int getTypeCode()
This method may return the type code of this SBML object, or it may
return SBML_UNKNOWN
. This
is because subclasses of SBase
are not required to implement this
method to return a type code. This method is meant primarily for the
LibSBML C interface, in which class and subclass information is not
readily available.
getTypeCode
 in class SBaseRef
SBML_UNKNOWN
(the default).
ReplacedElement.getElementName()
,
CompBase.getPackageName()
public boolean isSetConversionFactor()
public boolean isSetDeletion()
public int performReplacement()
performReplacement
 in class Replacing
public void renameSIdRefs(String oldid, String newid)
SIdRef
attributes on this element, including any
found in MathML content (if such exists).
This method works by looking at all attributes and (if appropriate)
mathematical formulas, comparing the identifiers to the value of
oldid
. If any matches are found, the matching identifiers are replaced
with newid
. The method does not descend into child elements.
renameSIdRefs
 in class Replacing
oldid
- the old identifiernewid
- the new identifierpublic int setConversionFactor(String id)
public int setDeletion(String id)
public int unsetConversionFactor()
public int unsetDeletion()