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

Detailed Description

Representation of a token in an XML stream.

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.

Public Member Functions

int addAttr (string name, string value, string namespaceURI, string prefix)
 Adds an attribute to the attribute set in this XMLToken optionally with a prefix and URI defining a namespace. More...
 
int addAttr (string name, string value, string namespaceURI)
 Adds an attribute to the attribute set in this XMLToken optionally with a prefix and URI defining a namespace. More...
 
int addAttr (string name, string value)
 Adds an attribute to the attribute set in this XMLToken optionally with a prefix and URI defining a namespace. More...
 
int addAttr (XMLTriple triple, string value)
 Adds an attribute with the given XMLTriple/value pair to the attribute set in this XMLToken. More...
 
int addNamespace (string uri, string prefix)
 Appends an XML namespace prefix and URI pair to this XMLToken. More...
 
int addNamespace (string uri)
 Appends an XML namespace prefix and URI pair to this XMLToken. More...
 
int append (string chars)
 Appends characters to this XML text content. More...
 
int clearAttributes ()
 Clears (deletes) all attributes in this XMLToken. More...
 
int clearNamespaces ()
 Clears (deletes) all XML namespace declarations in the XMLNamespaces of this XMLToken. More...
 
XMLToken clone ()
 Creates and returns a deep copy of this XMLToken. More...
 
virtual void Dispose ()
 
override bool Equals (Object sb)
 
XMLAttributes getAttributes ()
 Returns the attributes of this element. More...
 
int getAttributesLength ()
 Return the number of attributes in the attributes set. More...
 
int getAttrIndex (string name, string uri)
 Return the index of an attribute with the given local name and namespace URI. More...
 
int getAttrIndex (string name)
 Return the index of an attribute with the given local name and namespace URI. More...
 
int getAttrIndex (XMLTriple triple)
 Return the index of an attribute with the given XMLTriple. More...
 
string getAttrName (int index)
 Return the local name of an attribute in the attributes set in this XMLToken (by position). More...
 
string getAttrPrefix (int index)
 Return the prefix of an attribute in the attribute set in this XMLToken (by position). More...
 
string getAttrPrefixedName (int index)
 Return the prefixed name of an attribute in the attribute set in this XMLToken (by position). More...
 
string getAttrURI (int index)
 Return the namespace URI of an attribute in the attribute set in this XMLToken (by position). More...
 
string getAttrValue (int index)
 Return the value of an attribute in the attribute set in this XMLToken (by position). More...
 
string getAttrValue (string name, string uri)
 Return a value of an attribute with the given local name and namespace URI. More...
 
string getAttrValue (string name)
 Return a value of an attribute with the given local name and namespace URI. More...
 
string getAttrValue (XMLTriple triple)
 Return a value of an attribute with the given XMLTriple. More...
 
string getCharacters ()
 Returns the text of this element. More...
 
long getColumn ()
 Returns the column at which this XMLToken occurred in the input document or data stream. More...
 
override int GetHashCode ()
 
long getLine ()
 Returns the line at which this XMLToken occurred in the input document or data stream. More...
 
string getName ()
 Returns the (unqualified) name of this XML element. More...
 
int getNamespaceIndex (string uri)
 Look up the index of an XML namespace declaration by URI. More...
 
int getNamespaceIndexByPrefix (string prefix)
 Look up the index of an XML namespace declaration by prefix. More...
 
string getNamespacePrefix (int index)
 Look up the prefix of an XML namespace declaration by position. More...
 
string getNamespacePrefix (string uri)
 Look up the prefix of an XML namespace declaration by its URI. More...
 
XMLNamespaces getNamespaces ()
 Returns the XML namespace declarations for this XML element. More...
 
int getNamespacesLength ()
 Returns the number of XML namespaces stored in the XMLNamespaces of this XMLToken. More...
 
string getNamespaceURI (int index)
 Look up the URI of an XML namespace declaration by its position. More...
 
string getNamespaceURI (string prefix)
 Look up the URI of an XML namespace declaration by its prefix. More...
 
string getNamespaceURI ()
 Look up the URI of an XML namespace declaration by its prefix. More...
 
string getPrefix ()
 Returns the namespace prefix of this XML element. More...
 
string getURI ()
 Returns the namespace URI of this XML element. More...
 
bool hasAttr (int index)
 Predicate returning true or false depending on whether an attribute with the given index exists in the attribute set in this XMLToken. More...
 
bool hasAttr (string name, string uri)
 Predicate returning true or false depending on whether an attribute with the given local name and namespace URI exists in the attribute set in this XMLToken. More...
 
bool hasAttr (string name)
 Predicate returning true or false depending on whether an attribute with the given local name and namespace URI exists in the attribute set in this XMLToken. More...
 
bool hasAttr (XMLTriple triple)
 Predicate returning true or false depending on whether an attribute with the given XML triple exists in the attribute set in this XMLToken. More...
 
bool hasNamespaceNS (string uri, string prefix)
 Predicate returning true or false depending on whether an XML Namespace with the given uri/prefix pair is contained in the XMLNamespaces ofthis XMLToken. More...
 
bool hasNamespacePrefix (string prefix)
 Predicate returning true or false depending on whether an XML Namespace with the given prefix is contained in the XMLNamespaces of this XMLToken. More...
 
bool hasNamespaceURI (string uri)
 Predicate returning true or false depending on whether an XML Namespace with the given URI is contained in the XMLNamespaces of this XMLToken. More...
 
bool isAttributesEmpty ()
 Predicate returning true or false depending on whether the attribute set in this XMLToken set is empty. More...
 
bool isElement ()
 Predicate returning true or false depending on whether this XMLToken is an XML element. More...
 
bool isEnd ()
 Predicate returning true or false depending on whether this XMLToken is an XML end element. More...
 
bool isEndFor (XMLToken element)
 Predicate returning true or false depending on whether this XMLToken is an XML end element for the given start element. More...
 
bool isEOF ()
 Predicate returning true or false depending on whether this XMLToken is an end of file marker. More...
 
bool isNamespacesEmpty ()
 Predicate returning true or false depending on whether the XMLNamespaces of this XMLToken is empty. More...
 
bool isStart ()
 Predicate returning true or false depending on whether this XMLToken is an XML start element. More...
 
bool isText ()
 Predicate returning true or false depending on whether this XMLToken is an XML text element. More...
 
int removeAttr (int n)
 Removes an attribute with the given index from the attribute set in this XMLToken. More...
 
int removeAttr (string name, string uri)
 Removes an attribute with the given local name and namespace URI from the attribute set in this XMLToken. More...
 
int removeAttr (string name)
 Removes an attribute with the given local name and namespace URI from the attribute set in this XMLToken. More...
 
int removeAttr (XMLTriple triple)
 Removes an attribute with the given XMLTriple from the attribute set in this XMLToken. More...
 
int removeNamespace (int index)
 Removes an XML Namespace stored in the given position of the XMLNamespaces of this XMLToken. More...
 
int removeNamespace (string prefix)
 Removes an XML Namespace with the given prefix. More...
 
int setAttributes (XMLAttributes attributes)
 Sets an XMLAttributes to this XMLToken. More...
 
int setEnd ()
 Declares this XML start element is also an end element. More...
 
int setEOF ()
 Declares this XMLToken is an end-of-file (input) marker. More...
 
int setNamespaces (XMLNamespaces namespaces)
 Sets an XMLnamespaces to this XML element. More...
 
int setTriple (XMLTriple triple)
 Sets the XMLTripe (name, uri and prefix) of this XML element. More...
 
string toString ()
 Prints a string representation of the underlying token stream, for debugging purposes. More...
 
int unsetEnd ()
 Declares this XML start/end element is no longer an end element. More...
 
 XMLToken ()
 Creates a new empty XMLToken. More...
 
 XMLToken (XMLTriple triple, XMLAttributes attributes, XMLNamespaces namespaces, long line, long column)
 Creates a start element XMLToken with the given set of attributes and namespace declarations. More...
 
 XMLToken (XMLTriple triple, XMLAttributes attributes, XMLNamespaces namespaces, long line)
 Creates a start element XMLToken with the given set of attributes and namespace declarations. More...
 
 XMLToken (XMLTriple triple, XMLAttributes attributes, XMLNamespaces namespaces)
 Creates a start element XMLToken with the given set of attributes and namespace declarations. More...
 
 XMLToken (XMLTriple triple, XMLAttributes attributes, long line, long column)
 Creates a start element XMLToken with the given set of attributes. More...
 
 XMLToken (XMLTriple triple, XMLAttributes attributes, long line)
 Creates a start element XMLToken with the given set of attributes. More...
 
 XMLToken (XMLTriple triple, XMLAttributes attributes)
 Creates a start element XMLToken with the given set of attributes. More...
 
 XMLToken (XMLTriple triple, long line, long column)
 Creates an end element XMLToken. More...
 
 XMLToken (XMLTriple triple, long line)
 Creates an end element XMLToken. More...
 
 XMLToken (XMLTriple triple)
 Creates an end element XMLToken. More...
 
 XMLToken (string chars, long line, long column)
 Creates a text XMLToken. More...
 
 XMLToken (string chars, long line)
 Creates a text XMLToken. More...
 
 XMLToken (string chars)
 Creates a text XMLToken. More...
 
 XMLToken (XMLToken orig)
 Copy constructor; creates a copy of this XMLToken. More...
 

Static Public Member Functions

static bool operator!= (XMLToken lhs, XMLToken rhs)
 
static bool operator== (XMLToken lhs, XMLToken rhs)
 

Protected Attributes

bool swigCMemOwn
 

Constructor & Destructor Documentation

libsbmlcs.XMLToken.XMLToken ( )

Creates a new empty XMLToken.

libsbmlcs.XMLToken.XMLToken ( XMLTriple  triple,
XMLAttributes  attributes,
XMLNamespaces  namespaces,
long  line,
long  column 
)

Creates a start element XMLToken with the given set of attributes and namespace declarations.

Parameters
tripleXMLTriple.
attributesXMLAttributes, the attributes to set.
namespacesXMLNamespaces, the namespaces to set.
linea long integer, the line number (default = 0).
columna long integer, the column number (default = 0).
libsbmlcs.XMLToken.XMLToken ( XMLTriple  triple,
XMLAttributes  attributes,
XMLNamespaces  namespaces,
long  line 
)

Creates a start element XMLToken with the given set of attributes and namespace declarations.

Parameters
tripleXMLTriple.
attributesXMLAttributes, the attributes to set.
namespacesXMLNamespaces, the namespaces to set.
linea long integer, the line number (default = 0).
columna long integer, the column number (default = 0).
libsbmlcs.XMLToken.XMLToken ( XMLTriple  triple,
XMLAttributes  attributes,
XMLNamespaces  namespaces 
)

Creates a start element XMLToken with the given set of attributes and namespace declarations.

Parameters
tripleXMLTriple.
attributesXMLAttributes, the attributes to set.
namespacesXMLNamespaces, the namespaces to set.
linea long integer, the line number (default = 0).
columna long integer, the column number (default = 0).
libsbmlcs.XMLToken.XMLToken ( XMLTriple  triple,
XMLAttributes  attributes,
long  line,
long  column 
)

Creates a start element XMLToken with the given set of attributes.

Parameters
tripleXMLTriple.
attributesXMLAttributes, the attributes to set.
linea long integer, the line number (default = 0).
columna long integer, the column number (default = 0).
libsbmlcs.XMLToken.XMLToken ( XMLTriple  triple,
XMLAttributes  attributes,
long  line 
)

Creates a start element XMLToken with the given set of attributes.

Parameters
tripleXMLTriple.
attributesXMLAttributes, the attributes to set.
linea long integer, the line number (default = 0).
columna long integer, the column number (default = 0).
libsbmlcs.XMLToken.XMLToken ( XMLTriple  triple,
XMLAttributes  attributes 
)

Creates a start element XMLToken with the given set of attributes.

Parameters
tripleXMLTriple.
attributesXMLAttributes, the attributes to set.
linea long integer, the line number (default = 0).
columna long integer, the column number (default = 0).
libsbmlcs.XMLToken.XMLToken ( XMLTriple  triple,
long  line,
long  column 
)

Creates an end element XMLToken.

Parameters
tripleXMLTriple.
linea long integer, the line number (default = 0).
columna long integer, the column number (default = 0).
libsbmlcs.XMLToken.XMLToken ( XMLTriple  triple,
long  line 
)

Creates an end element XMLToken.

Parameters
tripleXMLTriple.
linea long integer, the line number (default = 0).
columna long integer, the column number (default = 0).
libsbmlcs.XMLToken.XMLToken ( XMLTriple  triple)

Creates an end element XMLToken.

Parameters
tripleXMLTriple.
linea long integer, the line number (default = 0).
columna long integer, the column number (default = 0).
libsbmlcs.XMLToken.XMLToken ( string  chars,
long  line,
long  column 
)

Creates a text XMLToken.

Parameters
charsa string, the text to be added to the XMLToken
linea long integer, the line number (default = 0).
columna long integer, the column number (default = 0).
Exceptions
XMLConstructorExceptionThrown if the argument orig is null.
libsbmlcs.XMLToken.XMLToken ( string  chars,
long  line 
)

Creates a text XMLToken.

Parameters
charsa string, the text to be added to the XMLToken
linea long integer, the line number (default = 0).
columna long integer, the column number (default = 0).
Exceptions
XMLConstructorExceptionThrown if the argument orig is null.
libsbmlcs.XMLToken.XMLToken ( string  chars)

Creates a text XMLToken.

Parameters
charsa string, the text to be added to the XMLToken
linea long integer, the line number (default = 0).
columna long integer, the column number (default = 0).
Exceptions
XMLConstructorExceptionThrown if the argument orig is null.
libsbmlcs.XMLToken.XMLToken ( XMLToken  orig)

Copy constructor; creates a copy of this XMLToken.

Parameters
origthe XMLToken object to copy.
Exceptions
XMLConstructorExceptionThrown if the argument orig is null.

Member Function Documentation

int libsbmlcs.XMLToken.addAttr ( string  name,
string  value,
string  namespaceURI,
string  prefix 
)

Adds an attribute to the attribute set in this XMLToken optionally with a prefix and URI defining a namespace.

Nothing will be done if this XMLToken is not a start element.

Parameters
namea string, the local name of the attribute.
valuea string, the value of the attribute.
namespaceURIa string, the namespace URI of the attribute.
prefixa string, the prefix of the namespace
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
Note
if local name with the same namespace URI already exists in the attribute set, its value and prefix will be replaced.
int libsbmlcs.XMLToken.addAttr ( string  name,
string  value,
string  namespaceURI 
)

Adds an attribute to the attribute set in this XMLToken optionally with a prefix and URI defining a namespace.

Nothing will be done if this XMLToken is not a start element.

Parameters
namea string, the local name of the attribute.
valuea string, the value of the attribute.
namespaceURIa string, the namespace URI of the attribute.
prefixa string, the prefix of the namespace
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
Note
if local name with the same namespace URI already exists in the attribute set, its value and prefix will be replaced.
int libsbmlcs.XMLToken.addAttr ( string  name,
string  value 
)

Adds an attribute to the attribute set in this XMLToken optionally with a prefix and URI defining a namespace.

Nothing will be done if this XMLToken is not a start element.

Parameters
namea string, the local name of the attribute.
valuea string, the value of the attribute.
namespaceURIa string, the namespace URI of the attribute.
prefixa string, the prefix of the namespace
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
Note
if local name with the same namespace URI already exists in the attribute set, its value and prefix will be replaced.
int libsbmlcs.XMLToken.addAttr ( XMLTriple  triple,
string  value 
)

Adds an attribute with the given XMLTriple/value pair to the attribute set in this XMLToken.

Nothing will be done if this XMLToken is not a start element.

Note
if local name with the same namespace URI already exists in the attribute set, its value and prefix will be replaced.
Parameters
triplean XMLTriple, the XML triple of the attribute.
valuea string, the value of the attribute.
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
int libsbmlcs.XMLToken.addNamespace ( string  uri,
string  prefix 
)

Appends an XML namespace prefix and URI pair to this XMLToken.

If there is an XML namespace with the given prefix in this XMLToken, then the existing XML namespace will be overwritten by the new one.

Nothing will be done if this XMLToken is not a start element.

Parameters
uria string, the uri for the namespace
prefixa string, the prefix for the namespace
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
int libsbmlcs.XMLToken.addNamespace ( string  uri)

Appends an XML namespace prefix and URI pair to this XMLToken.

If there is an XML namespace with the given prefix in this XMLToken, then the existing XML namespace will be overwritten by the new one.

Nothing will be done if this XMLToken is not a start element.

Parameters
uria string, the uri for the namespace
prefixa string, the prefix for the namespace
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
int libsbmlcs.XMLToken.append ( string  chars)

Appends characters to this XML text content.

Parameters
charsstring, characters to append
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
int libsbmlcs.XMLToken.clearAttributes ( )

Clears (deletes) all attributes in this XMLToken.

Nothing will be done if this XMLToken is not a start element.

Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
int libsbmlcs.XMLToken.clearNamespaces ( )

Clears (deletes) all XML namespace declarations in the XMLNamespaces of this XMLToken.

Nothing will be done if this XMLToken is not a start element.

Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
XMLToken libsbmlcs.XMLToken.clone ( )

Creates and returns a deep copy of this XMLToken.

Returns
a (deep) copy of this XMLToken set.
virtual void libsbmlcs.XMLToken.Dispose ( )
virtual

Reimplemented in libsbmlcs.XMLNode.

override bool libsbmlcs.XMLToken.Equals ( Object  sb)
XMLAttributes libsbmlcs.XMLToken.getAttributes ( )

Returns the attributes of this element.

Returns
the XMLAttributes of this XML element.
int libsbmlcs.XMLToken.getAttributesLength ( )

Return the number of attributes in the attributes set.

Returns
the number of attributes in the attributes set in this XMLToken.
int libsbmlcs.XMLToken.getAttrIndex ( string  name,
string  uri 
)

Return the index of an attribute with the given local name and namespace URI.

Parameters
namea string, the local name of the attribute.
uria string, the namespace URI of the attribute.
Returns
the index of an attribute with the given local name and namespace URI, or -1 if not present.
int libsbmlcs.XMLToken.getAttrIndex ( string  name)

Return the index of an attribute with the given local name and namespace URI.

Parameters
namea string, the local name of the attribute.
uria string, the namespace URI of the attribute.
Returns
the index of an attribute with the given local name and namespace URI, or -1 if not present.
int libsbmlcs.XMLToken.getAttrIndex ( XMLTriple  triple)

Return the index of an attribute with the given XMLTriple.

Parameters
triplean XMLTriple, the XML triple of the attribute for which the index is required.
Returns
the index of an attribute with the given XMLTriple, or -1 if not present.
string libsbmlcs.XMLToken.getAttrName ( int  index)

Return the local name of an attribute in the attributes set in this XMLToken (by position).

Parameters
indexan integer, the position of the attribute whose local name is required.
Returns
the local name of an attribute in this list (by position).
Note
If index is out of range, an empty string will be returned. Use XMLToken::hasAttr() to test for the attribute existence.
string libsbmlcs.XMLToken.getAttrPrefix ( int  index)

Return the prefix of an attribute in the attribute set in this XMLToken (by position).

Parameters
indexan integer, the position of the attribute whose prefix is required.
Returns
the namespace prefix of an attribute in the attribute set (by position).
Note
If index is out of range, an empty string will be returned. Use XMLToken::hasAttr() to test for the attribute existence.
string libsbmlcs.XMLToken.getAttrPrefixedName ( int  index)

Return the prefixed name of an attribute in the attribute set in this XMLToken (by position).

Parameters
indexan integer, the position of the attribute whose prefixed name is required.
Returns
the prefixed name of an attribute in the attribute set (by position).
Note
If index is out of range, an empty string will be returned. Use XMLToken::hasAttr() to test for attribute existence.
string libsbmlcs.XMLToken.getAttrURI ( int  index)

Return the namespace URI of an attribute in the attribute set in this XMLToken (by position).

Parameters
indexan integer, the position of the attribute whose namespace URI is required.
Returns
the namespace URI of an attribute in the attribute set (by position).
Note
If index is out of range, an empty string will be returned. Use XMLToken::hasAttr() to test for attribute existence.
string libsbmlcs.XMLToken.getAttrValue ( int  index)

Return the value of an attribute in the attribute set in this XMLToken (by position).

Parameters
indexan integer, the position of the attribute whose value is required.
Returns
the value of an attribute in the attribute set (by position).
Note
If index is out of range, an empty string will be returned. Use XMLToken::hasAttr() to test for attribute existence.
string libsbmlcs.XMLToken.getAttrValue ( string  name,
string  uri 
)

Return a value of an attribute with the given local name and namespace URI.

Parameters
namea string, the local name of the attribute whose value is required.
uria string, the namespace URI of the attribute.
Returns
The attribute value as a string.
Note
If an attribute with the given local name and namespace URI does not exist, an empty string will be returned. Use XMLToken::hasAttr() to test for attribute existence.
string libsbmlcs.XMLToken.getAttrValue ( string  name)

Return a value of an attribute with the given local name and namespace URI.

Parameters
namea string, the local name of the attribute whose value is required.
uria string, the namespace URI of the attribute.
Returns
The attribute value as a string.
Note
If an attribute with the given local name and namespace URI does not exist, an empty string will be returned. Use XMLToken::hasAttr() to test for attribute existence.
string libsbmlcs.XMLToken.getAttrValue ( XMLTriple  triple)

Return a value of an attribute with the given XMLTriple.

Parameters
triplean XMLTriple, the XML triple of the attribute whose value is required.
Returns
The attribute value as a string.
Note
If an attribute with the given XMLTriple does not exist, an empty string will be returned. Use XMLToken::hasAttr() to test for attribute existence.
string libsbmlcs.XMLToken.getCharacters ( )

Returns the text of this element.

Returns
the characters of this XML text.
long libsbmlcs.XMLToken.getColumn ( )

Returns the column at which this XMLToken occurred in the input document or data stream.

Returns
the column at which this XMLToken occurred.
override int libsbmlcs.XMLToken.GetHashCode ( )
long libsbmlcs.XMLToken.getLine ( )

Returns the line at which this XMLToken occurred in the input document or data stream.

Returns
the line at which this XMLToken occurred.
string libsbmlcs.XMLToken.getName ( )

Returns the (unqualified) name of this XML element.

Returns
the (unqualified) name of this XML element.
int libsbmlcs.XMLToken.getNamespaceIndex ( string  uri)

Look up the index of an XML namespace declaration by URI.

Parameters
uria string, uri of the required namespace.
Returns
the index of the given declaration, or -1 if not present.
int libsbmlcs.XMLToken.getNamespaceIndexByPrefix ( string  prefix)

Look up the index of an XML namespace declaration by prefix.

Parameters
prefixa string, prefix of the required namespace.
Returns
the index of the given declaration, or -1 if not present.
string libsbmlcs.XMLToken.getNamespacePrefix ( int  index)

Look up the prefix of an XML namespace declaration by position.

Callers should use getNamespacesLength() to find out how many namespaces are stored in the XMLNamespaces.

Parameters
indexan integer, position of the required prefix.
Returns
the prefix of an XML namespace declaration in the XMLNamespaces (by position).
Note
If index is out of range, an empty string will be returned.
See Also
getNamespacesLength()
string libsbmlcs.XMLToken.getNamespacePrefix ( string  uri)

Look up the prefix of an XML namespace declaration by its URI.

Parameters
uria string, the URI of the prefix being sought
Returns
the prefix of an XML namespace declaration given its URI.
Note
If uri does not exist, an empty string will be returned.
XMLNamespaces libsbmlcs.XMLToken.getNamespaces ( )

Returns the XML namespace declarations for this XML element.

Returns
the XML namespace declarations for this XML element.
int libsbmlcs.XMLToken.getNamespacesLength ( )

Returns the number of XML namespaces stored in the XMLNamespaces of this XMLToken.

Returns
the number of namespaces in this list.
string libsbmlcs.XMLToken.getNamespaceURI ( int  index)

Look up the URI of an XML namespace declaration by its position.

Parameters
indexan integer, position of the required URI.
Returns
the URI of an XML namespace declaration in the XMLNamespaces (by position).
Note
If index is out of range, an empty string will be returned.
See Also
getNamespacesLength()
string libsbmlcs.XMLToken.getNamespaceURI ( string  prefix)

Look up the URI of an XML namespace declaration by its prefix.

Parameters
prefixa string, the prefix of the required URI
Returns
the URI of an XML namespace declaration given its prefix.
Note
If prefix does not exist, an empty string will be returned.
string libsbmlcs.XMLToken.getNamespaceURI ( )

Look up the URI of an XML namespace declaration by its prefix.

Parameters
prefixa string, the prefix of the required URI
Returns
the URI of an XML namespace declaration given its prefix.
Note
If prefix does not exist, an empty string will be returned.
string libsbmlcs.XMLToken.getPrefix ( )

Returns the namespace prefix of this XML element.

Returns
the namespace prefix of this XML element.
Note
If no prefix exists, an empty string will be return.
string libsbmlcs.XMLToken.getURI ( )

Returns the namespace URI of this XML element.

Returns
the namespace URI of this XML element.
bool libsbmlcs.XMLToken.hasAttr ( int  index)

Predicate returning true or false depending on whether an attribute with the given index exists in the attribute set in this XMLToken.

Parameters
indexan integer, the position of the attribute.
Returns
true if an attribute with the given index exists in the attribute set in this XMLToken, false otherwise.
bool libsbmlcs.XMLToken.hasAttr ( string  name,
string  uri 
)

Predicate returning true or false depending on whether an attribute with the given local name and namespace URI exists in the attribute set in this XMLToken.

Parameters
namea string, the local name of the attribute.
uria string, the namespace URI of the attribute.
Returns
true if an attribute with the given local name and namespace URI exists in the attribute set in this XMLToken, false otherwise.
bool libsbmlcs.XMLToken.hasAttr ( string  name)

Predicate returning true or false depending on whether an attribute with the given local name and namespace URI exists in the attribute set in this XMLToken.

Parameters
namea string, the local name of the attribute.
uria string, the namespace URI of the attribute.
Returns
true if an attribute with the given local name and namespace URI exists in the attribute set in this XMLToken, false otherwise.
bool libsbmlcs.XMLToken.hasAttr ( XMLTriple  triple)

Predicate returning true or false depending on whether an attribute with the given XML triple exists in the attribute set in this XMLToken.

Parameters
triplean XMLTriple, the XML triple of the attribute
Returns
true if an attribute with the given XML triple exists in the attribute set in this XMLToken, false otherwise.
bool libsbmlcs.XMLToken.hasNamespaceNS ( string  uri,
string  prefix 
)

Predicate returning true or false depending on whether an XML Namespace with the given uri/prefix pair is contained in the XMLNamespaces ofthis XMLToken.

Parameters
uria string, the uri for the namespace
prefixa string, the prefix for the namespace
Returns
true if an XML Namespace with the given uri/prefix pair is contained in the XMLNamespaces of this XMLToken, false otherwise.
bool libsbmlcs.XMLToken.hasNamespacePrefix ( string  prefix)

Predicate returning true or false depending on whether an XML Namespace with the given prefix is contained in the XMLNamespaces of this XMLToken.

Parameters
prefixa string, the prefix for the namespace
Returns
true if an XML Namespace with the given URI is contained in the XMLNamespaces of this XMLToken, false otherwise.
bool libsbmlcs.XMLToken.hasNamespaceURI ( string  uri)

Predicate returning true or false depending on whether an XML Namespace with the given URI is contained in the XMLNamespaces of this XMLToken.

Parameters
uria string, the uri for the namespace
Returns
true if an XML Namespace with the given URI is contained in the XMLNamespaces of this XMLToken, false otherwise.
bool libsbmlcs.XMLToken.isAttributesEmpty ( )

Predicate returning true or false depending on whether the attribute set in this XMLToken set is empty.

Returns
true if the attribute set in this XMLToken is empty, false otherwise.
bool libsbmlcs.XMLToken.isElement ( )

Predicate returning true or false depending on whether this XMLToken is an XML element.

Returns
true if this XMLToken is an XML element, false otherwise.
bool libsbmlcs.XMLToken.isEnd ( )

Predicate returning true or false depending on whether this XMLToken is an XML end element.

Returns
true if this XMLToken is an XML end element, false otherwise.
bool libsbmlcs.XMLToken.isEndFor ( XMLToken  element)

Predicate returning true or false depending on whether this XMLToken is an XML end element for the given start element.

Parameters
elementXMLToken, element for which query is made.
Returns
true if this XMLToken is an XML end element for the given XMLToken start element, false otherwise.
bool libsbmlcs.XMLToken.isEOF ( )

Predicate returning true or false depending on whether this XMLToken is an end of file marker.

Returns
true if this XMLToken is an end of file (input) marker, false otherwise.
bool libsbmlcs.XMLToken.isNamespacesEmpty ( )

Predicate returning true or false depending on whether the XMLNamespaces of this XMLToken is empty.

Returns
true if the XMLNamespaces of this XMLToken is empty, false otherwise.
bool libsbmlcs.XMLToken.isStart ( )

Predicate returning true or false depending on whether this XMLToken is an XML start element.

Returns
true if this XMLToken is an XML start element, false otherwise.
bool libsbmlcs.XMLToken.isText ( )

Predicate returning true or false depending on whether this XMLToken is an XML text element.

Returns
true if this XMLToken is an XML text element, false otherwise.
static bool libsbmlcs.XMLToken.operator!= ( XMLToken  lhs,
XMLToken  rhs 
)
static
static bool libsbmlcs.XMLToken.operator== ( XMLToken  lhs,
XMLToken  rhs 
)
static
int libsbmlcs.XMLToken.removeAttr ( int  n)

Removes an attribute with the given index from the attribute set in this XMLToken.

Nothing will be done if this XMLToken is not a start element.

Parameters
nan integer the index of the resource to be deleted
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
int libsbmlcs.XMLToken.removeAttr ( string  name,
string  uri 
)

Removes an attribute with the given local name and namespace URI from the attribute set in this XMLToken.

Nothing will be done if this XMLToken is not a start element.

Parameters
namea string, the local name of the attribute.
uria string, the namespace URI of the attribute.
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
int libsbmlcs.XMLToken.removeAttr ( string  name)

Removes an attribute with the given local name and namespace URI from the attribute set in this XMLToken.

Nothing will be done if this XMLToken is not a start element.

Parameters
namea string, the local name of the attribute.
uria string, the namespace URI of the attribute.
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
int libsbmlcs.XMLToken.removeAttr ( XMLTriple  triple)

Removes an attribute with the given XMLTriple from the attribute set in this XMLToken.

Nothing will be done if this XMLToken is not a start element.

Parameters
triplean XMLTriple, the XML triple of the attribute.
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
int libsbmlcs.XMLToken.removeNamespace ( int  index)

Removes an XML Namespace stored in the given position of the XMLNamespaces of this XMLToken.

Nothing will be done if this XMLToken is not a start element.

Parameters
indexan integer, position of the removed namespace.
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
int libsbmlcs.XMLToken.removeNamespace ( string  prefix)

Removes an XML Namespace with the given prefix.

Nothing will be done if this XMLToken is not a start element.

Parameters
prefixa string, prefix of the required namespace.
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
int libsbmlcs.XMLToken.setAttributes ( XMLAttributes  attributes)

Sets an XMLAttributes to this XMLToken.

Nothing will be done if this XMLToken is not a start element.

Parameters
attributesXMLAttributes to be set to this XMLToken.
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
Note
This function replaces the existing XMLAttributes with the new one.
int libsbmlcs.XMLToken.setEnd ( )

Declares this XML start element is also an end element.

Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
int libsbmlcs.XMLToken.setEOF ( )

Declares this XMLToken is an end-of-file (input) marker.

Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
int libsbmlcs.XMLToken.setNamespaces ( XMLNamespaces  namespaces)

Sets an XMLnamespaces to this XML element.

Nothing will be done if this XMLToken is not a start element.

Parameters
namespacesXMLNamespaces to be set to this XMLToken.
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
Note
This function replaces the existing XMLNamespaces with the new one.
int libsbmlcs.XMLToken.setTriple ( XMLTriple  triple)

Sets the XMLTripe (name, uri and prefix) of this XML element.

Nothing will be done if this XML element is a text node.

Parameters
tripleXMLTriple to be added to this XML element.
Returns
integer value indicating success/failure of the function. The possible values returned by this function are:
string libsbmlcs.XMLToken.toString ( )

Prints a string representation of the underlying token stream, for debugging purposes.

int libsbmlcs.XMLToken.unsetEnd ( )

Declares this XML start/end element is no longer an end element.

Returns
integer value indicating success/failure of the function. The possible values returned by this function are:

Member Data Documentation

bool libsbmlcs.XMLToken.swigCMemOwn
protected