libSBML Perl API
libSBML 5.10.0 Perl API
|
{layout} The core module of the 'layout' package extension.
Public Member Functions | |
virtual void | addL2Namespaces (XMLNamespaces *xmlns) const |
adds all L2 Extension namespaces to the namespace list. More... | |
virtual LayoutExtension * | clone () const |
Creates and returns a deep copy of this LayoutExtension object. More... | |
virtual void | enableL2NamespaceForDocument (SBMLDocument *doc) const |
Adds the L2 Namespace to the document and enables the extension. More... | |
virtual unsigned int | getLevel (const std::string &uri) const |
Returns the SBML Level for the given URI of this package. More... | |
virtual const std::string & | getName () const |
Returns the name of this package ("layout") More... | |
int | getNumOfSBasePlugins () const |
Returns the number of SBasePlugin objects stored in this object. More... | |
unsigned int | getNumOfSupportedPackageURI () const |
Returns the number of supported package Namespace (package versions) of this package extension. More... | |
virtual unsigned int | getPackageVersion (const std::string &uri) const |
Returns the package version for the given URI of this package. More... | |
virtual SBMLNamespaces * | getSBMLExtensionNamespaces (const std::string &uri) const |
Returns an LayoutPkgNamespaces object. More... | |
virtual const char * | getStringFromTypeCode (int typeCode) const |
Takes a type code of the “layout” package and returns a string describing the code. More... | |
const std::string & | getSupportedPackageURI (unsigned int i) const |
Returns the ith URI (the supported package version) More... | |
virtual const std::string & | getURI (unsigned int sbmlLevel, unsigned int sbmlVersion, unsigned int pkgVersion) const |
Returns the namespace URI corresponding to the combination of the given SBML Level, Version, and package version. More... | |
virtual unsigned int | getVersion (const std::string &uri) const |
Returns the SBML Version for the given URI of this package. More... | |
bool | isEnabled () const |
Check if this package is enabled (true) or disabled (false). More... | |
virtual bool | isInUse (SBMLDocument *doc) const |
Determines whether this extension is being used by the given SBMLDocument. More... | |
bool | isSupported (const std::string &uri) const |
Returns a flag indicating, whether the given URI (package version) is supported by this package extension. More... | |
LayoutExtension () | |
Constructor. More... | |
LayoutExtension (const LayoutExtension &) | |
Copy constructor. More... | |
LayoutExtension & | operator= (const LayoutExtension &) |
Assignment operator for LayoutExtension. More... | |
virtual void | removeL2Namespaces (XMLNamespaces *xmlns) const |
Removes the L2 Namespace from a document. More... | |
bool | setEnabled (bool isEnabled) |
enable/disable this package. More... | |
virtual | ~LayoutExtension () |
Destroy this object. More... | |
Static Public Member Functions | |
static unsigned int | getDefaultLevel () |
Returns the default SBML Level this extension. More... | |
static unsigned int | getDefaultPackageVersion () |
Returns the default SBML version this extension. More... | |
static unsigned int | getDefaultVersion () |
Returns the default SBML Version this extension. More... | |
static const std::string & | getPackageName () |
Returns the package name of this extension. More... | |
static const std::string & | getXmlnsL2 () |
static const std::string & | getXmlnsL3V1V1 () |
Returns URI of supported versions of this package. More... | |
static const std::string & | getXmlnsXSI () |
LayoutExtension::LayoutExtension | ( | ) |
Constructor.
LayoutExtension::LayoutExtension | ( | const LayoutExtension & | orig | ) |
Copy constructor.
|
virtual |
Destroy this object.
|
virtual |
adds all L2 Extension namespaces to the namespace list.
This method should be overridden by all extensions that want to serialize to an L2 annotation.
Reimplemented from SBMLExtension.
|
virtual |
Creates and returns a deep copy of this LayoutExtension object.
Implements SBMLExtension.
|
virtual |
Adds the L2 Namespace to the document and enables the extension.
If the extension supports serialization to SBML L2 Annotations, this method should be overrridden, so it will be activated.
Reimplemented from SBMLExtension.
|
static |
Returns the default SBML Level this extension.
|
static |
Returns the default SBML version this extension.
|
static |
Returns the default SBML Version this extension.
|
virtual |
Returns the SBML Level for the given URI of this package.
uri | the string of URI that represents one of versions of the “layout” package |
0
if the given URI is invalid. Implements SBMLExtension.
|
virtual |
Returns the name of this package ("layout")
Implements SBMLExtension.
|
inherited |
Returns the number of SBasePlugin objects stored in this object.
|
inherited |
Returns the number of supported package Namespace (package versions) of this package extension.
|
static |
Returns the package name of this extension.
|
virtual |
Returns the package version for the given URI of this package.
uri | the string of URI that represents one of versions of the “layout” package |
0
if the given URI is invalid. Implements SBMLExtension.
|
virtual |
Returns an LayoutPkgNamespaces object.
uri | the string of URI that represents one of versions of the “layout” package |
uri
, or NULL
if the URI is not defined in the Layout package. Implements SBMLExtension.
|
virtual |
Takes a type code of the “layout” package and returns a string describing the code.
Implements SBMLExtension.
|
inherited |
Returns the ith URI (the supported package version)
i | the index of the list of URI (the list of supporeted package versions) |
|
virtual |
Returns the namespace URI corresponding to the combination of the given SBML Level, Version, and package version.
sbmlLevel | the level of SBML |
sbmlVersion | the version of SBML |
pkgVersion | the version of package |
Implements SBMLExtension.
|
virtual |
Returns the SBML Version for the given URI of this package.
uri | the string of URI that represents one of versions of the “layout” package |
0
if the given URI is invalid. Implements SBMLExtension.
|
static |
|
static |
Returns URI of supported versions of this package.
|
static |
|
inherited |
Check if this package is enabled (true) or disabled (false).
|
virtual |
Determines whether this extension is being used by the given SBMLDocument.
The implementation returns true if the model object contains one or more layouts.
doc | the sbml document to test. |
Reimplemented from SBMLExtension.
|
inherited |
Returns a flag indicating, whether the given URI (package version) is supported by this package extension.
LayoutExtension & LayoutExtension::operator= | ( | const LayoutExtension & | orig | ) |
Assignment operator for LayoutExtension.
|
virtual |
Removes the L2 Namespace from a document.
This method should be overridden by all extensions that want to serialize to an L2 annotation.
Reimplemented from SBMLExtension.
|
inherited |
enable/disable this package.
Returned value is the result of this function.
isEnabled | the bool value: true (enabled) or false (disabled) |