Detailed Description
SBMLNamespaces class to store level/version and namespace.
- Author:
- Sarah Keating
Functions |
| void | SBMLNamespaces_addNamespaces (SBMLNamespaces_t *sbmlns, const XMLNamespaces_t *xmlns) |
| | Add the XML namespaces list to the set of namespaces within this SBMLNamespaces_t structure.
|
| SBMLNamespaces_t * | SBMLNamespaces_create (unsigned int level, unsigned int version) |
| | Creates a new SBMLNamespaces_t structure corresponding to the given SBML level and version.
|
| unsigned int | SBMLNamespaces_getLevel (SBMLNamespaces_t *sbmlns) |
| | Get the SBML Level of this SBMLNamespaces_t structure.
|
| XMLNamespaces_t * | SBMLNamespaces_getNamespaces (SBMLNamespaces_t *sbmlns) |
| | Get the SBML Version of this SBMLNamespaces_t structure.
|
| char * | SBMLNamespaces_getSBMLNamespaceURI (unsigned int level, unsigned int version) |
| | Returns a string representing the SBML XML namespace for the given level and version of SBML.
|
| SBMLNamespaces_t ** | SBMLNamespaces_getSupportedNamespaces (int *length) |
| | Returns an array of SBML Namespaces supported by this version of LibSBML.
|
| unsigned int | SBMLNamespaces_getVersion (SBMLNamespaces_t *sbmlns) |
| | Get the SBML Version of this SBMLNamespaces_t structure.
|
Variables |
| static const unsigned int | SBML_DEFAULT_LEVEL = 3 |
| static const unsigned int | SBML_DEFAULT_VERSION = 1 |
| static const char *const | SBML_XMLNS_L1 = "http://www.sbml.org/sbml/level1" |
| static const char *const | SBML_XMLNS_L2V1 = "http://www.sbml.org/sbml/level2" |
| static const char *const | SBML_XMLNS_L2V2 = "http://www.sbml.org/sbml/level2/version2" |
| static const char *const | SBML_XMLNS_L2V3 = "http://www.sbml.org/sbml/level2/version3" |
| static const char *const | SBML_XMLNS_L2V4 = "http://www.sbml.org/sbml/level2/version4" |
| static const char *const | SBML_XMLNS_L3V1 = "http://www.sbml.org/sbml/level3/version1/core" |
Function Documentation
Add the XML namespaces list to the set of namespaces within this SBMLNamespaces_t structure.
- Parameters:
-
| sbmlns | the SBMLNamespaces_t structure to add to |
| xmlns | the XML namespaces to be added. |
Creates a new SBMLNamespaces_t structure corresponding to the given SBML level and version.
SBMLNamespaces objects are used in libSBML to communicate SBML Level and Version data between constructors and other methods. The SBMLNamespaces object class tracks 3-tuples (triples) consisting of SBML Level, Version, and the corresponding SBML XML namespace. Most constructors for SBML objects in libSBML take a SBMLNamespaces object as an argument, thereby allowing the constructor to produce the proper combination of attributes and other internal data structures for the given SBML Level and Version.
The plural name "SBMLNamespaces" is not a mistake, because in SBML Level 3, objects may have extensions added by Level 3 packages used by a given model; however, until the introduction of SBML Level 3, the SBMLNamespaces object only records one SBML Level/Version/namespace combination at a time.
- Parameters:
-
| level | the SBML level |
| version | the SBML version |
- Returns:
- SBMLNamespaces_t structure created
- Documentation note:
- The native C++ implementation of this method defines a default argument value. In the documentation generated for different libSBML language bindings, you may or may not see corresponding arguments in the method declarations. For example, in Java, a default argument is handled by declaring two separate methods, with one of them having the argument and the other one lacking the argument. However, the libSBML documentation will be identical for both methods. Consequently, if you are reading this and do not see an argument even though one is described, please look for descriptions of other variants of this method near where this one appears in the documentation.
Get the SBML Level of this SBMLNamespaces_t structure.
- Parameters:
-
| sbmlns | the SBMLNamespaces_t structure to query |
- Returns:
- the SBML Level of this SBMLNamespaces_t structure.
Get the SBML Version of this SBMLNamespaces_t structure.
- Parameters:
-
| sbmlns | the SBMLNamespaces_t structure to query |
- Returns:
- the XMLNamespaces_t structure of this SBMLNamespaces_t structure.
Returns a string representing the SBML XML namespace for the given level and version of SBML.
- Parameters:
-
| level | the SBML level |
| version | the SBML version |
- Returns:
- a string representing the SBML namespace that reflects the SBML Level and Version specified.
Returns an array of SBML Namespaces supported by this version of LibSBML.
- Parameters:
-
| length | an integer holding the length of the array |
- Returns:
- an array of SBML namespaces, or NULL if length is NULL. The array has to be freed by the caller.
Get the SBML Version of this SBMLNamespaces_t structure.
- Parameters:
-
| sbmlns | the SBMLNamespaces_t structure to query |
- Returns:
- the SBML Version of this SBMLNamespaces_t structure.
Variable Documentation
const char* const SBML_XMLNS_L1 = "http://www.sbml.org/sbml/level1" [static] |
const char* const SBML_XMLNS_L2V1 = "http://www.sbml.org/sbml/level2" [static] |
const char* const SBML_XMLNS_L2V2 = "http://www.sbml.org/sbml/level2/version2" [static] |
const char* const SBML_XMLNS_L2V3 = "http://www.sbml.org/sbml/level2/version3" [static] |
const char* const SBML_XMLNS_L2V4 = "http://www.sbml.org/sbml/level2/version4" [static] |
const char* const SBML_XMLNS_L3V1 = "http://www.sbml.org/sbml/level3/version1/core" [static] |