public class CompSBasePlugin extends SBasePlugin
Constructor and Description |
---|
CompSBasePlugin(CompSBasePlugin orig)   |
CompSBasePlugin(String uri,
String prefix,
CompPkgNamespaces compns)   |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptComp(SWIGTYPE_p_CompVisitor v)   |
int |
addReplacedElement(ReplacedElement replacedElement)   |
void |
clearReplacedElements()   |
SBasePlugin |
cloneObject()
Creates and returns a deep copy of this
SBasePlugin object. |
void |
connectToChild()   |
SBase |
createObject(XMLInputStream stream)   |
ReplacedBy |
createReplacedBy()   |
ReplacedElement |
createReplacedElement()   |
void |
delete()
Explicitly deletes the underlying native object.
|
SBase |
getElementByMetaId(String metaid)
Returns the first child element it can find with the given
metaid , or null if no such object is found. |
SBase |
getElementBySId(String id)
Returns the first child element found that has the given
id in the model-wide SId namespace, or null if no such object is found. |
ListOfReplacedElements |
getListOfReplacedElements()   |
long |
getNumReplacedElements()   |
ReplacedBy |
getReplacedBy()   |
ReplacedElement |
getReplacedElement(long n)   |
boolean |
isSetReplacedBy()   |
void |
logInvalidId(String attribute,
String wrongattribute)   |
ReplacedElement |
removeReplacedElement(long index)   |
int |
setReplacedBy(ReplacedBy replacedBy)   |
int |
unsetReplacedBy()   |
getElementNamespace, getLevel, getListOfAllElements, getPackageName, getPackageVersion, getParentSBMLObject, getPrefix, getSBMLDocument, getURI, getVersion, setElementNamespace
public CompSBasePlugin(CompSBasePlugin orig)
public CompSBasePlugin(String uri, String prefix, CompPkgNamespaces compns)
public boolean acceptComp(SWIGTYPE_p_CompVisitor v)
public int addReplacedElement(ReplacedElement replacedElement)
public void clearReplacedElements()
public SBasePlugin cloneObject()
SBasePlugin
object.
cloneObject
 in class SBasePlugin
SBase
objectpublic void connectToChild()
public SBase createObject(XMLInputStream stream)
public ReplacedBy createReplacedBy()
public ReplacedElement createReplacedElement()
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 CompSBasePlugin.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 CompSBasePlugin.delete()
themselves.
delete
 in class SBasePlugin
public SBase getElementByMetaId(String metaid)
metaid
, or null
if no such object is found.
getElementByMetaId
 in class SBasePlugin
metaid
- string representing the metaid of objects to find
metaid
.public SBase getElementBySId(String id)
id
in the model-wide SId namespace, or null
if no such object is found.
getElementBySId
 in class SBasePlugin
id
- string representing the id of objects to find
id
.public ListOfReplacedElements getListOfReplacedElements()
public long getNumReplacedElements()
public ReplacedBy getReplacedBy()
public ReplacedElement getReplacedElement(long n)
public boolean isSetReplacedBy()
public void logInvalidId(String attribute, String wrongattribute)
public ReplacedElement removeReplacedElement(long index)
public int setReplacedBy(ReplacedBy replacedBy)
public int unsetReplacedBy()