public class FbcPkgNamespaces extends SBMLNamespaces
Constructor and Description |
---|
FbcPkgNamespaces()
Creates a new
SBMLExtensionNamespaces object corresponding to the given SBML
level , version and package version. |
FbcPkgNamespaces(FbcPkgNamespaces orig)
Copy constructor creates a copy of a
SBMLExtensionNamespaces . |
FbcPkgNamespaces(long level)
Creates a new
SBMLExtensionNamespaces object corresponding to the given SBML
level , version and package version. |
FbcPkgNamespaces(long level,
long version)
Creates a new
SBMLExtensionNamespaces object corresponding to the given SBML
level , version and package version. |
FbcPkgNamespaces(long level,
long version,
long pkgVersion)
Creates a new
SBMLExtensionNamespaces object corresponding to the given SBML
level , version and package version. |
FbcPkgNamespaces(long level,
long version,
long pkgVersion,
java.lang.String prefix)
Creates a new
SBMLExtensionNamespaces object corresponding to the given SBML
level , version and package version. |
Modifier and Type | Method and Description |
---|---|
SBMLNamespaces |
cloneObject()
Creates and returns a deep copy of this
SBMLNamespaces . |
void |
delete()
Explicitly deletes the underlying native object.
|
java.lang.String |
getPackageName()
Returns the name of the main package for this namespace.
|
long |
getPackageVersion()   |
java.lang.String |
getURI()
Returns a string representing the SBML XML namespace of this
object.
|
addNamespace, addNamespaces, addPackageNamespace, addPackageNamespace, addPackageNamespaces, equals, freeSBMLNamespaces, getLevel, getNamespaces, getSBMLNamespaceURI, getSupportedNamespaces, getVersion, hashCode, isSBMLNamespace, isValidCombination, removeNamespace, removePackageNamespace
public FbcPkgNamespaces() throws SBMLConstructorException
SBMLExtensionNamespaces
object corresponding to the given SBML
level
, version
and package
version.
level
- the SBML levelversion
- the SBML versionpkgVersion
- the package versionprefix
- the prefix of the package namespace (e.g. 'layout', 'multi')
to be added. The package's name will be used if the given string is empty
(default).SBMLConstructorException
SBMLExtensionException
will be thrown if the extension module
that supports the combination of the given sbml level, sbml version,
package name, and package version has not been registered.
public FbcPkgNamespaces(FbcPkgNamespaces orig) throws SBMLConstructorException
SBMLExtensionNamespaces
.
orig
- the SBMLExtensionNamespaces
instance to copy.SBMLConstructorException
public FbcPkgNamespaces(long level) throws SBMLConstructorException
SBMLExtensionNamespaces
object corresponding to the given SBML
level
, version
and package
version.
level
- the SBML levelversion
- the SBML versionpkgVersion
- the package versionprefix
- the prefix of the package namespace (e.g. 'layout', 'multi')
to be added. The package's name will be used if the given string is empty
(default).SBMLConstructorException
SBMLExtensionException
will be thrown if the extension module
that supports the combination of the given sbml level, sbml version,
package name, and package version has not been registered.
public FbcPkgNamespaces(long level, long version) throws SBMLConstructorException
SBMLExtensionNamespaces
object corresponding to the given SBML
level
, version
and package
version.
level
- the SBML levelversion
- the SBML versionpkgVersion
- the package versionprefix
- the prefix of the package namespace (e.g. 'layout', 'multi')
to be added. The package's name will be used if the given string is empty
(default).SBMLConstructorException
SBMLExtensionException
will be thrown if the extension module
that supports the combination of the given sbml level, sbml version,
package name, and package version has not been registered.
public FbcPkgNamespaces(long level, long version, long pkgVersion) throws SBMLConstructorException
SBMLExtensionNamespaces
object corresponding to the given SBML
level
, version
and package
version.
level
- the SBML levelversion
- the SBML versionpkgVersion
- the package versionprefix
- the prefix of the package namespace (e.g. 'layout', 'multi')
to be added. The package's name will be used if the given string is empty
(default).SBMLConstructorException
SBMLExtensionException
will be thrown if the extension module
that supports the combination of the given sbml level, sbml version,
package name, and package version has not been registered.
public FbcPkgNamespaces(long level, long version, long pkgVersion, java.lang.String prefix) throws SBMLConstructorException
SBMLExtensionNamespaces
object corresponding to the given SBML
level
, version
and package
version.
level
- the SBML levelversion
- the SBML versionpkgVersion
- the package versionprefix
- the prefix of the package namespace (e.g. 'layout', 'multi')
to be added. The package's name will be used if the given string is empty
(default).SBMLConstructorException
SBMLExtensionException
will be thrown if the extension module
that supports the combination of the given sbml level, sbml version,
package name, and package version has not been registered.
public SBMLNamespaces cloneObject()
SBMLNamespaces
.
cloneObject
 in class SBMLNamespaces
SBMLNamespaces
.public void delete()
In general, application software will not need to call this method directly. The Java language binding for libSBML is implemented as a language wrapper that provides a Java interface to libSBML's underlying C++/C code. Some of the Java methods return objects that are linked to objects created not by Java code, but by C++ code. The Java objects wrapped around them will be deleted when the garbage collector invokes the corresponding C++ finalize()
methods for the objects. The finalize()
methods in turn call the FbcPkgNamespaces.delete()
method on the libSBML object.
This method is exposed in case calling programs want to ensure that the underlying object is freed immediately, and not at some arbitrary time determined by the Java garbage collector. In normal usage, callers do not need to invoke FbcPkgNamespaces.delete()
themselves.
delete
 in class SBMLNamespaces
public java.lang.String getPackageName()
getPackageName
 in class SBMLNamespaces
public long getPackageVersion()
public java.lang.String getURI()
getURI
 in class SBMLNamespaces