|
libSBML C# API
libSBML 5.10.0 C# API
|
{core}
Registry class in which extension packages are registered.Public Member Functions | |
| int | addExtension (SBMLExtension ext) |
| Add the given SBMLExtension to this SBMLExtensionRegistry. More... | |
| void | addL2Namespaces (XMLNamespaces xmlns) |
| adds all L2 Extension namespaces to the namespace list. More... | |
| void | disableUnusedPackages (SBMLDocument doc) |
| Goes through all extensions in the list of plugins of the given document and disables all plugins that are not being used. More... | |
| virtual void | Dispose () |
| void | enableL2NamespaceForDocument (SBMLDocument doc) |
| Enables all extensions that support serialization / deserialization with SBML Annotations. More... | |
| SBMLExtension | getExtension (string package) |
| Returns an SBMLExtension object with the given package URI or package name (string). More... | |
| long | getNumExtension (SBaseExtensionPoint extPoint) |
| Returns the number of SBMLExtension with the given extension point. More... | |
| bool | isEnabled (string uri) |
| Checks if the extension with the given URI is enabled (true) or disabled (false) More... | |
| bool | isRegistered (string uri) |
| Checks if the extension with the given URI is registered (true) or not (false) More... | |
| void | removeL2Namespaces (XMLNamespaces xmlns) |
| Remove all L2 Extension namespaces from the namespace list. More... | |
| bool | setEnabled (string uri, bool isEnabled) |
| Enable/disable the package with the given uri. More... | |
Static Public Member Functions | |
| static void | disablePackage (string package) |
| Disables the package with the given URI / name. More... | |
| static void | enablePackage (string package) |
| Enables the package with the given URI / name. More... | |
| static SBMLExtensionRegistry | getInstance () |
| Returns an instance (singleton) of the SBMLExtensionRegistry class. More... | |
| static long | getNumRegisteredPackages () |
| Returns the number of registered packages. More... | |
| static string | getRegisteredPackageName (long index) |
| Returns the registered package name at the given index. More... | |
| static bool | isPackageEnabled (string package) |
If the given package is enabled, returns true; otherwise, returns false. More... | |
Protected Attributes | |
| bool | swigCMemOwn |
| int libsbmlcs.SBMLExtensionRegistry.addExtension | ( | SBMLExtension | ext | ) |
Add the given SBMLExtension to this SBMLExtensionRegistry.
| ext | the SBMLExtension object to be added. |
| void libsbmlcs.SBMLExtensionRegistry.addL2Namespaces | ( | XMLNamespaces | xmlns | ) |
adds all L2 Extension namespaces to the namespace list.
This will call all overriden SBMLExtension::addL2Namespaces methods.
|
static |
Disables the package with the given URI / name.
| void libsbmlcs.SBMLExtensionRegistry.disableUnusedPackages | ( | SBMLDocument | doc | ) |
Goes through all extensions in the list of plugins of the given document and disables all plugins that are not being used.
|
virtual |
| void libsbmlcs.SBMLExtensionRegistry.enableL2NamespaceForDocument | ( | SBMLDocument | doc | ) |
Enables all extensions that support serialization / deserialization with SBML Annotations.
|
static |
Enables the package with the given URI / name.
| SBMLExtension libsbmlcs.SBMLExtensionRegistry.getExtension | ( | string | package | ) |
Returns an SBMLExtension object with the given package URI or package name (string).
| package | the URI or name of the package extension |
|
static |
Returns an instance (singleton) of the SBMLExtensionRegistry class.
This function needs to be invoked when manipulating the SBMLExtensionRegistry class.
| long libsbmlcs.SBMLExtensionRegistry.getNumExtension | ( | SBaseExtensionPoint | extPoint | ) |
Returns the number of SBMLExtension with the given extension point.
| extPoint | the SBaseExtensionPoint |
|
static |
Returns the number of registered packages.
|
static |
Returns the registered package name at the given index.
| index | zero based index of the package name to return |
| bool libsbmlcs.SBMLExtensionRegistry.isEnabled | ( | string | uri | ) |
Checks if the extension with the given URI is enabled (true) or disabled (false)
| uri | the URI of the target package. |
|
static |
If the given package is enabled, returns true; otherwise, returns false.
| bool libsbmlcs.SBMLExtensionRegistry.isRegistered | ( | string | uri | ) |
Checks if the extension with the given URI is registered (true) or not (false)
| uri | the URI of the target package. |
| void libsbmlcs.SBMLExtensionRegistry.removeL2Namespaces | ( | XMLNamespaces | xmlns | ) |
Remove all L2 Extension namespaces from the namespace list.
This will call all overriden SBMLExtension::removeL2Namespaces methods.
| bool libsbmlcs.SBMLExtensionRegistry.setEnabled | ( | string | uri, |
| bool | isEnabled | ||
| ) |
Enable/disable the package with the given uri.
| uri | the URI of the target package. |
| isEnabled | the bool value corresponding to enabled (true) or disabled (false) |
|
protected |