public class RenderExtension extends SBMLExtension
Constructor and Description |
---|
RenderExtension()
Constructor
|
RenderExtension(RenderExtension arg0)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addL2Namespaces(XMLNamespaces xmlns)
adds all L2 Extension namespaces to the namespace list.
|
RenderExtension |
cloneObject()
Creates and returns a deep copy of this RenderExtension object.
|
void |
delete()
Explicitly deletes the underlying native object.
|
SBase |
DowncastSBase(long cPtr,
boolean owner)
SBMLExtension derived classes must override this method
|
SBasePlugin |
DowncastSBasePlugin(long cPtr,
boolean owner)
SBMLExtension derived classes must override this method
|
void |
enableL2NamespaceForDocument(SBMLDocument doc)
Adds the L2 Namespace to the document and enables the extension.
|
static long |
getDefaultLevel()
Returns the default SBML Level this extension.
|
static long |
getDefaultPackageVersion()
Returns the default SBML version this extension.
|
static long |
getDefaultVersion()
Returns the default SBML Version this extension.
|
long |
getLevel(java.lang.String uri)
Returns the SBML level with the given URI of this package.
|
java.lang.String |
getName()
Returns the name of this package ('fbc')
|
static java.lang.String |
getPackageName()
Returns the package name of this extension.
|
long |
getPackageVersion(java.lang.String uri)
Returns the package version with the given URI of this package.
|
SBMLNamespaces |
getSBMLExtensionNamespaces(java.lang.String uri)
Returns an
SBMLExtensionNamespaces |
java.lang.String |
getStringFromTypeCode(int typeCode)
This method takes a type code of groups package and returns a string representing
the code.
|
java.lang.String |
getURI(long sbmlLevel,
long sbmlVersion,
long pkgVersion)
Returns the URI (namespace) of the package corresponding to the combination of
the given sbml level, sbml version, and package version.
|
long |
getVersion(java.lang.String uri)
Returns the SBML version with the given URI of this package.
|
static java.lang.String |
getXmlnsL2()   |
static java.lang.String |
getXmlnsL3V1V1()
Returns URI of supported versions of this package.
|
boolean |
isInUse(SBMLDocument doc)
Determines whether this extension is being used by the given
SBMLDocument |
void |
removeL2Namespaces(XMLNamespaces xmlns)
Removes the L2 Namespace from a document.
|
getCategory, getErrorIdOffset, getMessage, getNumOfSBasePlugins, getNumOfSupportedPackageURI, getSeverity, getShortMessage, getSupportedPackageURI, isEnabled, isSupported, setEnabled
public RenderExtension()
public RenderExtension(RenderExtension arg0)
public void addL2Namespaces(XMLNamespaces xmlns)
This method should be overridden by all extensions that want to serialize to an L2 annotation.
addL2Namespaces
 in class SBMLExtension
public RenderExtension cloneObject()
cloneObject
 in class SBMLExtension
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 RenderExtension.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 RenderExtension.delete()
themselves.
delete
 in class SBMLExtension
public SBase DowncastSBase(long cPtr, boolean owner)
SBMLExtension
DowncastSBase
 in class SBMLExtension
public SBasePlugin DowncastSBasePlugin(long cPtr, boolean owner)
SBMLExtension
DowncastSBasePlugin
 in class SBMLExtension
public void enableL2NamespaceForDocument(SBMLDocument doc)
If the extension supports serialization to SBML L2 Annotations, this method should be overrridden, so it will be activated.
enableL2NamespaceForDocument
 in class SBMLExtension
public static long getDefaultLevel()
public static long getDefaultPackageVersion()
public static long getDefaultVersion()
public long getLevel(java.lang.String uri)
getLevel
 in class SBMLExtension
uri
- the string of URI that represents one of versions of layout package
public java.lang.String getName()
getName
 in class SBMLExtension
public static java.lang.String getPackageName()
public long getPackageVersion(java.lang.String uri)
getPackageVersion
 in class SBMLExtension
uri
- the string of URI that represents one of versions of layout package
public SBMLNamespaces getSBMLExtensionNamespaces(java.lang.String uri)
SBMLExtensionNamespaces
getSBMLExtensionNamespaces
 in class SBMLExtension
uri
- the string of URI that represents one of versions of layout package
public java.lang.String getStringFromTypeCode(int typeCode)
getStringFromTypeCode
 in class SBMLExtension
public java.lang.String getURI(long sbmlLevel, long sbmlVersion, long pkgVersion)
getURI
 in class SBMLExtension
sbmlLevel
- the level of SBMLsbmlVersion
- the version of SBMLpkgVersion
- the version of package
public long getVersion(java.lang.String uri)
getVersion
 in class SBMLExtension
uri
- the string of URI that represents one of versions of layout package
public static java.lang.String getXmlnsL2()
public static java.lang.String getXmlnsL3V1V1()
public boolean isInUse(SBMLDocument doc)
SBMLDocument
The implementation returns true if the list of layouts contains a global render information, or a layout object contains a local render information object.
isInUse
 in class SBMLExtension
doc
- the sbml document to test.
public void removeL2Namespaces(XMLNamespaces xmlns)
This method should be overridden by all extensions that want to serialize to an L2 annotation.
removeL2Namespaces
 in class SBMLExtension