Class to store SBML level, version and namespace information.
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.
There are differences in the definitions of components between different SBML Levels, as well as Versions within Levels. For example, the 'sboTerm' attribute was not introduced until Level 2 Version 2, and then only on certain component classes; the SBML Level 2 Version 3 specification moved the 'sboTerm' attribute to the SBase class, thereby allowing nearly all components to have SBO annotations. As a result of differences such as those, libSBML needs to track the SBML Level and Version of every object created.
The purpose of the SBMLNamespaces object class is to make it easier to communicate SBML Level and Version data between libSBML constructors and other methods. The SBMLNamespaces object class tracks 3-tuples (triples) consisting of SBML Level, Version, and the corresponding SBML XML namespace.
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 and therefore may have multiple namespaces associated with them; however, until the introduction of SBML Level 3, the SBMLNamespaces object only records one SBML Level/Version/namespace combination at a time. 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.
|
int | addNamespace (string uri, string prefix) |
| Add an XML namespace (a pair of URI and prefix) to the set of namespaces within this SBMLNamespaces object. More...
|
|
int | addNamespaces (XMLNamespaces xmlns) |
| Add the given XML namespaces list to the set of namespaces within this SBMLNamespaces object. More...
|
|
int | addPackageNamespace (string pkgName, long pkgVersion, string prefix) |
| Add an XML namespace (a pair of URI and prefix) of a package extension to the set of namespaces within this SBMLNamespaces object. More...
|
|
int | addPackageNamespace (string pkgName, long pkgVersion) |
| Add an XML namespace (a pair of URI and prefix) of a package extension to the set of namespaces within this SBMLNamespaces object. More...
|
|
int | addPackageNamespaces (XMLNamespaces xmlns) |
| Add the XML namespaces of package extensions in the given XMLNamespace object to the set of namespaces within this SBMLNamespaces object (Non-package XML namespaces are not added by this function). More...
|
|
int | addPkgNamespace (string pkgName, long pkgVersion, string prefix) |
| Add an XML namespace (a pair of URI and prefix) of a package extension to the set of namespaces within this SBMLNamespaces object. More...
|
|
int | addPkgNamespace (string pkgName, long pkgVersion) |
| Add an XML namespace (a pair of URI and prefix) of a package extension to the set of namespaces within this SBMLNamespaces object. More...
|
|
int | addPkgNamespaces (XMLNamespaces xmlns) |
| Add the XML namespaces of package extensions in the given XMLNamespace object to the set of namespaces within this SBMLNamespaces object (Non-package XML namespaces are not added by this function). More...
|
|
SBMLNamespaces | clone () |
| Creates and returns a deep copy of this SBMLNamespaces. More...
|
|
virtual void | Dispose () |
|
override bool | Equals (Object sb) |
|
override int | GetHashCode () |
|
long | getLevel () |
| Get the SBML Level of this SBMLNamespaces object. More...
|
|
XMLNamespaces | getNamespaces () |
| Get the XML namespaces list for this SBMLNamespaces object. More...
|
|
string | getPackageName () |
| Returns the name of the main package for this namespace. More...
|
|
string | getURI () |
| Returns a string representing the SBML XML namespace of this object. More...
|
|
long | getVersion () |
| Get the SBML Version of this SBMLNamespaces object. More...
|
|
bool | isValidCombination () |
| Predicate returning true if the given set of namespaces represent a valid set. More...
|
|
int | removeNamespace (string uri) |
| Removes an XML namespace from the set of namespaces within this SBMLNamespaces object. More...
|
|
int | removePackageNamespace (long level, long version, string pkgName, long pkgVersion) |
| Removes an XML namespace of a package extension from the set of namespaces within this SBMLNamespaces object. More...
|
|
int | removePkgNamespace (long level, long version, string pkgName, long pkgVersion) |
| Removes an XML namespace of a package extension from the set of namespaces within this SBMLNamespaces object. More...
|
|
| SBMLNamespaces (long level, long version) |
| Creates a new SBMLNamespaces object corresponding to the given SBML level and version . More...
|
|
| SBMLNamespaces (long level) |
| Creates a new SBMLNamespaces object corresponding to the given SBML level and version . More...
|
|
| SBMLNamespaces () |
| Creates a new SBMLNamespaces object corresponding to the given SBML level and version . More...
|
|
| SBMLNamespaces (long level, long version, string pkgName, long pkgVersion, string pkgPrefix) |
| (For Extension) More...
|
|
| SBMLNamespaces (long level, long version, string pkgName, long pkgVersion) |
| (For Extension) More...
|
|
| SBMLNamespaces (SBMLNamespaces orig) |
| Copy constructor; creates a copy of a SBMLNamespaces. More...
|
|
libsbmlcs.SBMLNamespaces.SBMLNamespaces |
( |
long |
level, |
|
|
long |
version |
|
) |
| |
Creates a new SBMLNamespaces object 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 and therefore may have multiple namespaces associated with them; however, until the introduction of SBML Level 3, the SBMLNamespaces object only records one SBML Level/Version/namespace combination at a time. 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.
- Parameters
-
level | the SBML level |
version | the SBML version |
libsbmlcs.SBMLNamespaces.SBMLNamespaces |
( |
long |
level | ) |
|
Creates a new SBMLNamespaces object 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 and therefore may have multiple namespaces associated with them; however, until the introduction of SBML Level 3, the SBMLNamespaces object only records one SBML Level/Version/namespace combination at a time. 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.
- Parameters
-
level | the SBML level |
version | the SBML version |
libsbmlcs.SBMLNamespaces.SBMLNamespaces |
( |
| ) |
|
Creates a new SBMLNamespaces object 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 and therefore may have multiple namespaces associated with them; however, until the introduction of SBML Level 3, the SBMLNamespaces object only records one SBML Level/Version/namespace combination at a time. 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.
- Parameters
-
level | the SBML level |
version | the SBML version |