libSBML C# API
5.18.0
|
This class of objects is defined by libSBML only and has no direct equivalent in terms of SBML components. This class is not prescribed by the SBML specifications, although it is used to implement features defined in SBML.
Public Member Functions | |
new void | addL2Namespaces (XMLNamespaces xmlns) |
adds all L2 Extension namespaces to the namespace list. More... | |
new LayoutExtension | clone () |
Creates and returns a deep copy of this LayoutExtension object. More... | |
override void | Dispose () |
override SBase | DowncastSBase (IntPtr cPtr, bool owner) |
override SBasePlugin | DowncastSBasePlugin (IntPtr cPtr, bool owner) |
new void | enableL2NamespaceForDocument (SBMLDocument doc) |
Adds the L2 Namespace to the document and enables the extension. More... | |
long | getCategory (long index) |
new long | getLevel (string uri) |
Returns the SBML Level for the given URI of this package. More... | |
string | getMessage (long index, long pkgVersion, string details) |
new string | getName () |
Returns the name of this package ('layout') More... | |
int | getNumOfSBasePlugins () |
Returns the number of SBasePluginCreatorBase objects stored in this object. More... | |
long | getNumOfSupportedPackageURI () |
Returns the number of supported package namespace URIs. More... | |
new long | getPackageVersion (string uri) |
Returns the SBML Level 3 package version for the given URI of this package. More... | |
new SBMLNamespaces | getSBMLExtensionNamespaces (string uri) |
Returns a LayoutPkgNamespaces object. More... | |
long | getSeverity (long index, long pkgVersion) |
string | getShortMessage (long index) |
new string | getStringFromTypeCode (int typeCode) |
Takes a type code of the “layout” package and returns a string describing the code. More... | |
string | getSupportedPackageURI (long n) |
Returns the nth XML namespace URI. More... | |
new string | getURI (long sbmlLevel, long sbmlVersion, long pkgVersion) |
Returns a string representing the SBML XML namespace of this SBML Level 3 package. More... | |
new long | getVersion (string uri) |
Returns the Version within the SBML Level for the given URI of this package. More... | |
bool | isEnabled () |
Returns true if this package is enabled. More... | |
new bool | isInUse (SBMLDocument doc) |
Determines whether this extension is being used by the given SBMLDocument. More... | |
bool | isSupported (string uri) |
Returns true if the given XML namespace URI is supported by this package extension. More... | |
LayoutExtension () | |
Creates a new LayoutExtension instance. More... | |
LayoutExtension (LayoutExtension orig) | |
Copy constructor. More... | |
new void | removeL2Namespaces (XMLNamespaces xmlns) |
Removes the L2 Namespace from a document. More... | |
bool | setEnabled (bool isEnabled) |
Enable or disable this package. More... | |
Static Public Member Functions | |
static long | getDefaultLevel () |
Returns the default SBML Level used by this libSBML package extension. More... | |
static long | getDefaultPackageVersion () |
Returns the default version of the SBML Level 3 package implemented by this libSBML extension. More... | |
static long | getDefaultVersion () |
Returns the default SBML Version used by this libSBML package extension. More... | |
static string | getPackageName () |
Returns the nickname of the SBML Level 3 package implemented by this libSBML extension. More... | |
static string | getXmlnsL2 () |
Returns the XML namespace URI of the SBML Level 2 version of the package implemented by this libSBML Extension. More... | |
static string | getXmlnsL3V1V1 () |
Returns the XML namespace URI of the SBML Level 3 package implemented by this libSBML extension. More... | |
static string | getXmlnsXSI () |
Returns the XML namespace URI of any additional XML namespaces needed or used by this SBML Level 3 package. More... | |
static void | init () |
Protected Attributes | |
bool | swigCMemOwn |
libsbmlcs.LayoutExtension.LayoutExtension | ( | ) |
Creates a new LayoutExtension instance.
libsbmlcs.LayoutExtension.LayoutExtension | ( | LayoutExtension | orig | ) |
Copy constructor.
orig | the instance to copy. |
new void libsbmlcs.LayoutExtension.addL2Namespaces | ( | XMLNamespaces | xmlns | ) |
adds all L2 Extension namespaces to the namespace list.
This method is overridden here since Layout does serialize to an L2 annotation.
new LayoutExtension libsbmlcs.LayoutExtension.clone | ( | ) |
Creates and returns a deep copy of this LayoutExtension object.
|
virtual |
Reimplemented from libsbmlcs.SBMLExtension.
|
virtual |
Reimplemented from libsbmlcs.SBMLExtension.
|
virtual |
Reimplemented from libsbmlcs.SBMLExtension.
new void libsbmlcs.LayoutExtension.enableL2NamespaceForDocument | ( | SBMLDocument | doc | ) |
Adds the L2 Namespace to the document and enables the extension.
This method is overridden here since Layout does serialize to an L2 annotation.
|
inherited |
|
static |
Returns the default SBML Level used by this libSBML package extension.
|
static |
Returns the default version of the SBML Level 3 package implemented by this libSBML extension.
|
static |
Returns the default SBML Version used by this libSBML package extension.
new long libsbmlcs.LayoutExtension.getLevel | ( | string | uri | ) |
Returns the SBML Level for the given URI of this package.
uri | a URI that represents a version of this package. |
0
if the given URI is invalid, or for a different package.
|
inherited |
new string libsbmlcs.LayoutExtension.getName | ( | ) |
Returns the name of this package ('layout')
|
inherited |
Returns the number of SBasePluginCreatorBase objects stored in this object.
|
inherited |
Returns the number of supported package namespace URIs.
|
static |
Returns the nickname of the SBML Level 3 package implemented by this libSBML extension.
new long libsbmlcs.LayoutExtension.getPackageVersion | ( | string | uri | ) |
Returns the SBML Level 3 package version for the given URI of this package.
uri | a URI that represents one of the valid versions of this package. |
0
if the given URI is invalid, or for a different package. new SBMLNamespaces libsbmlcs.LayoutExtension.getSBMLExtensionNamespaces | ( | string | uri | ) |
Returns a LayoutPkgNamespaces object.
uri | a URI that represents one of the valid versions of the “layout” package. |
uri
, or null
if the URI is not defined in the Layout package.
|
inherited |
|
inherited |
new string libsbmlcs.LayoutExtension.getStringFromTypeCode | ( | int | typeCode | ) |
Takes a type code of the “layout” package and returns a string describing the code.
typeCode | a libSBML type code defined by the libSBML extension. implementing support for the SBML Level 3 “layout” package. |
typeCode
. If the type code is unrecognized for this implementation of the libSBML “layout” package, the string returned will be '(Unknown SBML Layout Type)'
.
|
inherited |
Returns the nth XML namespace URI.
n | the index number of the namespace URI being sought. |
new string libsbmlcs.LayoutExtension.getURI | ( | long | sbmlLevel, |
long | sbmlVersion, | ||
long | pkgVersion | ||
) |
Returns a string representing the SBML XML namespace of this SBML Level 3 package.
The namespace URI constructed by this method corresponds to the combination of the Level and Version of SBML, and the Version of the SBML Level 3 package. (At the time of this writing, the only SBML Level that supports packages is Level 3, so the value of sbmlLevel
must necessarily always be 3
.)
sbmlLevel | the level of SBML. |
sbmlVersion | the version of SBML. |
pkgVersion | the version of the package. |
new long libsbmlcs.LayoutExtension.getVersion | ( | string | uri | ) |
Returns the Version within the SBML Level for the given URI of this package.
uri | a URI that represents a version of this package. |
0
if the given URI is invalid, or for a different package.
|
static |
Returns the XML namespace URI of the SBML Level 2 version of the package implemented by this libSBML Extension.
Unique among the SBML Level 3 packages, the Layout package existed and was in widespread use prior to the introduction of SBML Level 3. The Layout package was used as model annotations in SBML Level 2. This method returns the SBML annotation XML namespace used for Level 2.
|
static |
Returns the XML namespace URI of the SBML Level 3 package implemented by this libSBML extension.
|
static |
Returns the XML namespace URI of any additional XML namespaces needed or used by this SBML Level 3 package.
|
static |
|
inherited |
Returns true
if this package is enabled.
true
if this package is enabled, false
otherwise. new bool libsbmlcs.LayoutExtension.isInUse | ( | SBMLDocument | doc | ) |
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. |
|
inherited |
Returns true
if the given XML namespace URI is supported by this package extension.
true
if the given XML namespace URI (equivalent to a package version) is supported by this package extension, false
otherwise. new void libsbmlcs.LayoutExtension.removeL2Namespaces | ( | XMLNamespaces | xmlns | ) |
Removes the L2 Namespace from a document.
This method is overridden here since Layout does serialize to an L2 annotation.
|
inherited |
Enable or disable this package.
isEnabled | flag indicating whether to enable (if true ) or disable (false ) this package extension. |
true
if this call succeeded; false
otherwise.
|
protectedinherited |