libSBML C# API
5.18.0
|
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.
A 'triple' in the libSBML XML layer encapsulates the notion of qualified name, meaning an element name or an attribute name with an optional namespace qualifier. Triples by themselves are not entities in an XML stream—they are not, for example, elements or attributes; rather, XMLTriple is used in libSBML to construct these other kinds of objects.
An XMLTriple instance carries up to three data items:
mysim
and it appears on both the element someelement
and the attribute attribA
. When both the element and the attribute are stored as XMLTriple objects, their prefix is mysim
. <mysim:someelement mysim:attribA='value' />
XMLTriple objects are the lowest-level data item in the XML layer of libSBML. Other objects such as XMLToken make use of XMLTriple objects.
Public Member Functions | |
XMLTriple | clone () |
Creates and returns a deep copy of this XMLTriple object. More... | |
virtual void | Dispose () |
string | getName () |
Returns the name portion of this XMLTriple object. More... | |
string | getPrefix () |
Returns the prefix portion of this XMLTriple object. More... | |
string | getPrefixedName () |
Returns the prefixed name from this XMLTriple. More... | |
string | getURI () |
Returns the URI portion of this XMLTriple object. More... | |
bool | isEmpty () |
Returns true if this XMLTriple object is empty. More... | |
XMLTriple () | |
Creates a new, empty XMLTriple object. More... | |
XMLTriple (string name, string uri, string prefix) | |
Creates a new XMLTriple object with a given name , uri and and prefix . More... | |
XMLTriple (string triplet, char sepchar) | |
Creates an XMLTriple object by splitting a given string at a given separator character. More... | |
XMLTriple (string triplet) | |
Creates an XMLTriple object by splitting a given string at a given separator character. More... | |
XMLTriple (XMLTriple orig) | |
Copy constructor; creates a copy of this XMLTriple object. More... | |
Protected Attributes | |
bool | swigCMemOwn |
libsbmlcs.XMLTriple.XMLTriple | ( | ) |
Creates a new, empty XMLTriple object.
libsbmlcs.XMLTriple.XMLTriple | ( | string | name, |
string | uri, | ||
string | prefix | ||
) |
Creates a new XMLTriple object with a given name
, uri
and and prefix
.
name | a string, the name for the entity represented by this object. |
uri | a string, the XML namespace URI associated with the prefix. |
prefix | a string, the XML namespace prefix for this triple. |
libsbmlcs.XMLTriple.XMLTriple | ( | string | triplet, |
char | sepchar | ||
) |
Creates an XMLTriple object by splitting a given string at a given separator character.
The 'triplet' in this case is a string that may be in one of the following three possible formats:
where x represents the separator character, sepchar
.
triplet | a string representing the triplet as shown above. |
sepchar | a character, the sepchar used in the triplet. |
libsbmlcs.XMLTriple.XMLTriple | ( | string | triplet | ) |
Creates an XMLTriple object by splitting a given string at a given separator character.
The 'triplet' in this case is a string that may be in one of the following three possible formats:
where x represents the separator character, sepchar
.
triplet | a string representing the triplet as shown above. |
sepchar | a character, the sepchar used in the triplet. |
libsbmlcs.XMLTriple.XMLTriple | ( | XMLTriple | orig | ) |
XMLTriple libsbmlcs.XMLTriple.clone | ( | ) |
|
virtual |
string libsbmlcs.XMLTriple.getName | ( | ) |
string libsbmlcs.XMLTriple.getPrefix | ( | ) |
string libsbmlcs.XMLTriple.getPrefixedName | ( | ) |
string libsbmlcs.XMLTriple.getURI | ( | ) |
bool libsbmlcs.XMLTriple.isEmpty | ( | ) |
|
protected |