libSBML C# API  libSBML 5.10.0 C# API
 All Classes Namespaces Files Functions Variables Properties Pages
libsbmlcs.GroupsExtension Class Reference
Inheritance diagram for libsbmlcs.GroupsExtension:
[legend]

Public Member Functions

void addL2Namespaces (XMLNamespaces xmlns)
 Adds all L2 Extension namespaces to the namespace list. More...
 
GroupsExtension clone ()
 Creates and returns a deep copy of this GroupsExtension object. More...
 
override void Dispose ()
 
override SBase DowncastSBase (IntPtr cPtr, bool owner)
 
override SBasePlugin DowncastSBasePlugin (IntPtr cPtr, bool owner)
 
void enableL2NamespaceForDocument (SBMLDocument doc)
 Adds the L2 Namespace to the document and enables the extension. More...
 
long getCategory (long index)
 
long getErrorIdOffset ()
 Return the offset for the errorId range for the groups L3 package. More...
 
SWIGTYPE_p_packageErrorTableEntry getErrorTable (long index)
 Return the entry in the error table at this index. More...
 
long getErrorTableIndex (long errorId)
 Return the index in the error table with the given errorId. More...
 
long getLevel (string uri)
 Returns the SBML level with the given URI of this package. More...
 
string getMessage (long index, long pkgVersion, string details)
 
string getName ()
 Returns the name of this package ('groups') More...
 
int getNumOfSBasePlugins ()
 Returns the number of SBasePlugin objects stored in this object. More...
 
long getNumOfSupportedPackageURI ()
 Returns the number of supported package Namespace (package versions) of this package extension. More...
 
long getPackageVersion (string uri)
 Returns the package version with the given URI of this package. More...
 
SBMLNamespaces getSBMLExtensionNamespaces (string uri)
 Returns an SBMLExtensionNamespaces<GroupsExtension> object whose alias type is GroupsPkgNamespace. More...
 
long getSeverity (long index, long pkgVersion)
 
string getShortMessage (long index)
 
string getStringFromTypeCode (int typeCode)
 This method takes a type code from the Groups package and returns a string representing the code. More...
 
string getSupportedPackageURI (long i)
 Returns the ith URI (the supported package version) More...
 
string getURI (long sbmlLevel, long sbmlVersion, long pkgVersion)
 Returns the URI (namespace) of the package corresponding to the combination of the given sbml level, sbml version, and package version. More...
 
long getVersion (string uri)
 Returns the SBML version with the given URI of this package. More...
 
 GroupsExtension ()
 Constructor. More...
 
 GroupsExtension (GroupsExtension arg0)
 Copy constructor. More...
 
bool isEnabled ()
 Check if this package is enabled (true) or disabled (false). More...
 
bool isInUse (SBMLDocument doc)
 Indicates whether this extension is being used by the given SBMLDocument. More...
 
bool isSupported (string uri)
 Returns a flag indicating, whether the given URI (package version) is supported by this package extension. More...
 
void removeL2Namespaces (XMLNamespaces xmlns)
 Removes the L2 Namespaces. More...
 
bool setEnabled (bool isEnabled)
 enable/disable this package. More...
 

Static Public Member Functions

static long getDefaultLevel ()
 Returns the default SBML Level this extension. More...
 
static long getDefaultPackageVersion ()
 Returns the default SBML version this extension. More...
 
static long getDefaultVersion ()
 Returns the default SBML Version this extension. More...
 
static string getPackageName ()
 Returns the package name of this extension. More...
 
static string getXmlnsL3V1V1 ()
 Returns URI of supported versions of this package. More...
 
static void init ()
 Initializes groups extension by creating an object of this class with required SBasePlugin derived objects and registering the object to the SBMLExtensionRegistry class. More...
 

Protected Attributes

bool swigCMemOwn
 

Constructor & Destructor Documentation

libsbmlcs.GroupsExtension.GroupsExtension ( )

Constructor.

libsbmlcs.GroupsExtension.GroupsExtension ( GroupsExtension  arg0)

Copy constructor.

Member Function Documentation

void libsbmlcs.SBMLExtension.addL2Namespaces ( XMLNamespaces  xmlns)
inherited

Adds all L2 Extension namespaces to the namespace list.

This method should be overridden by all extensions that want to serialize to an L2 annotation.

GroupsExtension libsbmlcs.GroupsExtension.clone ( )

Creates and returns a deep copy of this GroupsExtension object.

Returns
a (deep) copy of this SBase object
override void libsbmlcs.GroupsExtension.Dispose ( )
virtual

Reimplemented from libsbmlcs.SBMLExtension.

override SBase libsbmlcs.GroupsExtension.DowncastSBase ( IntPtr  cPtr,
bool  owner 
)
virtual

Reimplemented from libsbmlcs.SBMLExtension.

override SBasePlugin libsbmlcs.GroupsExtension.DowncastSBasePlugin ( IntPtr  cPtr,
bool  owner 
)
virtual

Reimplemented from libsbmlcs.SBMLExtension.

void libsbmlcs.SBMLExtension.enableL2NamespaceForDocument ( SBMLDocument  doc)
inherited

Adds the L2 Namespace to the document and enables the extension.

If the extension supports serialization to SBML L2 Annotations, this method should be overrridden, so it will be activated.

long libsbmlcs.SBMLExtension.getCategory ( long  index)
inherited
static long libsbmlcs.GroupsExtension.getDefaultLevel ( )
static

Returns the default SBML Level this extension.

static long libsbmlcs.GroupsExtension.getDefaultPackageVersion ( )
static

Returns the default SBML version this extension.

static long libsbmlcs.GroupsExtension.getDefaultVersion ( )
static

Returns the default SBML Version this extension.

long libsbmlcs.GroupsExtension.getErrorIdOffset ( )
virtual

Return the offset for the errorId range for the groups L3 package.

Returns
longege representing the offset for errors GroupsSBMLErrorTable.

Reimplemented from libsbmlcs.SBMLExtension.

SWIGTYPE_p_packageErrorTableEntry libsbmlcs.GroupsExtension.getErrorTable ( long  index)

Return the entry in the error table at this index.

Parameters
indexa long integergere representing the index of the error in the GroupsSBMLErrorTable
Returns
packageErrorTableEntry object in the GroupsSBMLErrorTable corresponding to the index given.
long libsbmlcs.GroupsExtension.getErrorTableIndex ( long  errorId)

Return the index in the error table with the given errorId.

Parameters
errorIda long integergere representing the errorId of the error in the GroupsSBMLErrorTable
Returns
longeger representing the index in the GroupsSBMLErrorTable corresponding to the errorId given.
long libsbmlcs.GroupsExtension.getLevel ( string  uri)

Returns the SBML level with the given URI of this package.

Parameters
urithe string of URI that represents one of versions of groups package
Returns
the SBML level with the given URI of this package. 0 will be returned if the given URI is invalid.
string libsbmlcs.SBMLExtension.getMessage ( long  index,
long  pkgVersion,
string  details 
)
inherited
string libsbmlcs.GroupsExtension.getName ( )

Returns the name of this package ('groups')

the name of this package ('groups')

int libsbmlcs.SBMLExtension.getNumOfSBasePlugins ( )
inherited

Returns the number of SBasePlugin objects stored in this object.

Returns
the number of SBasePlugin objects stored in this object.
long libsbmlcs.SBMLExtension.getNumOfSupportedPackageURI ( )
inherited

Returns the number of supported package Namespace (package versions) of this package extension.

Returns
the number of supported package Namespace (package versions) of this package extension.
static string libsbmlcs.GroupsExtension.getPackageName ( )
static

Returns the package name of this extension.

long libsbmlcs.GroupsExtension.getPackageVersion ( string  uri)

Returns the package version with the given URI of this package.

Parameters
urithe string of URI that represents one of versions of groups package
Returns
the package version with the given URI of this package. 0 will be returned if the given URI is invalid.
SBMLNamespaces libsbmlcs.GroupsExtension.getSBMLExtensionNamespaces ( string  uri)

Returns an SBMLExtensionNamespaces<GroupsExtension> object whose alias type is GroupsPkgNamespace.

Null will be returned if the given uri is not defined in the groups package.

Parameters
urithe string of URI that represents one of versions of groups package
Returns
an GroupsPkgNamespace object corresponding to the given uri. null will be returned if the given URI is not defined in groups package.
long libsbmlcs.SBMLExtension.getSeverity ( long  index,
long  pkgVersion 
)
inherited
string libsbmlcs.SBMLExtension.getShortMessage ( long  index)
inherited
string libsbmlcs.GroupsExtension.getStringFromTypeCode ( int  typeCode)

This method takes a type code from the Groups package and returns a string representing the code.

string libsbmlcs.SBMLExtension.getSupportedPackageURI ( long  i)
inherited

Returns the ith URI (the supported package version)

Parameters
ithe index of the list of URI (the list of supporeted package versions)
Returns
the URI of supported package version with the given index.
string libsbmlcs.GroupsExtension.getURI ( long  sbmlLevel,
long  sbmlVersion,
long  pkgVersion 
)

Returns the URI (namespace) of the package corresponding to the combination of the given sbml level, sbml version, and package version.

Empty string will be returned if no corresponding URI exists.

Parameters
sbmlLevelthe level of SBML
sbmlVersionthe version of SBML
pkgVersionthe version of package
Returns
a string of the package URI
long libsbmlcs.GroupsExtension.getVersion ( string  uri)

Returns the SBML version with the given URI of this package.

Parameters
urithe string of URI that represents one of versions of groups package
Returns
the SBML version with the given URI of this package. 0 will be returned if the given URI is invalid.
static string libsbmlcs.GroupsExtension.getXmlnsL3V1V1 ( )
static

Returns URI of supported versions of this package.

static void libsbmlcs.GroupsExtension.init ( )
static

Initializes groups extension by creating an object of this class with required SBasePlugin derived objects and registering the object to the SBMLExtensionRegistry class.

(NOTE) This function is automatically invoked when creating the following global object in GroupsExtension.cpp

static SBMLExtensionRegister<GroupsExtension> groupsExtensionRegistry;

bool libsbmlcs.SBMLExtension.isEnabled ( )
inherited

Check if this package is enabled (true) or disabled (false).

Returns
true if this package is enabled, otherwise false is returned.
bool libsbmlcs.SBMLExtension.isInUse ( SBMLDocument  doc)
inherited

Indicates whether this extension is being used by the given SBMLDocument.

The default implementation returns true. This means that when a document had this extension enabled, it will not be possible to convert it to L2 as we cannot make sure that the extension can be converted.

Parameters
docthe SBML document to test.
Returns
a bool indicating whether the extension is actually being used by the document.
bool libsbmlcs.SBMLExtension.isSupported ( string  uri)
inherited

Returns a flag indicating, whether the given URI (package version) is supported by this package extension.

Returns
true if the given URI (package version) is supported by this package extension, otherwise false is returned.
void libsbmlcs.SBMLExtension.removeL2Namespaces ( XMLNamespaces  xmlns)
inherited

Removes the L2 Namespaces.

This method should be overridden by all extensions that want to serialize to an L2 annotation.

bool libsbmlcs.SBMLExtension.setEnabled ( bool  isEnabled)
inherited

enable/disable this package.

Returned value is the result of this function.

Parameters
isEnabledthe bool value: true (enabled) or false (disabled)
Returns
true if this function call succeeded, otherwise false is returned.

Member Data Documentation

bool libsbmlcs.SBMLExtension.swigCMemOwn
protectedinherited