blob: 8125c927d07b22111186977f7a9fac9fe28a6298 [file] [log] [blame]
<HTML><HEAD><TITLE>Xalan-C++ API Documentation</TITLE></HEAD>
<BODY>
<h2 align="center">Xalan-C++ API Documentation</h2>
<h3 align="center">The Xalan C++ XSLT Processor Version 1.10</h3>
</BODY>
<!-- Generated by Doxygen 1.2.8.1 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>XalanQName Class Reference</h1>Class to represent a qualified name: "The name of an internal XSLT object, specifically a named template (see [7 Named Templates]), a mode (see [6.7 Modes]), an attribute set (see [8.1.4 Named Attribute Sets]), a key (see [14.2 Keys]), a locale (see [14.3 Number Formatting]), a variable or a parameter (see [12 Variables and Parameters]) is specified as a QName.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="XalanQName_8hpp-source.html">XalanQName.hpp</a>&gt;</code>
<p>
Inheritance diagram for XalanQName:<p><center><img src="classXalanQName__inherit__graph.gif" border="0" usemap="#XalanQName_inherit_map" alt="Inheritance graph"></center>
<map name="XalanQName_inherit_map">
<area href="classXalanQNameByReference.html" shape="rect" coords="6,117,180,93">
<area href="classXalanQNameByValue.html" shape="rect" coords="204,117,348,93">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for XalanQName:<p><center><img src="classXalanQName__coll__graph.gif" border="0" usemap="#XalanQName_coll_map" alt="Collaboration graph"></center>
<map name="XalanQName_coll_map">
<area href="classXalanDOMString.html" shape="rect" coords="7,42,124,18">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classXalanQName-members.html">List of all members.</a><h2>Public Types</h2>
<ul>
<li>typedef <a class="el" href="classXalanDeque.html">XalanDeque</a>&lt;<a class="el" href="classNameSpace.html">NameSpace</a>,<br>
<a class="el" href="structConstructWithMemoryManagerTraits.html">ConstructWithMemoryManagerTraits</a>&lt;<br>
<a class="el" href="classNameSpace.html">NameSpace</a>&gt; &gt; <a class="el" href="classXalanQName.html#s0">NamespaceVectorType</a>
<li>typedef <a class="el" href="classXalanDeque.html">XalanDeque</a>&lt;<a class="el" href="classXalanQName.html#s0">NamespaceVectorType</a>,<br>
<a class="el" href="structConstructWithMemoryManagerTraits.html">ConstructWithMemoryManagerTraits</a>&lt;<br>
<a class="el" href="classXalanQName.html#s0">NamespaceVectorType</a>&gt; &gt; <a class="el" href="classXalanQName.html#s1">NamespacesStackType</a>
</ul>
<h2>Public Methods</h2>
<ul>
<li><a class="el" href="classXalanQName.html#a0">XalanQName</a> ()
<dl class="el"><dd><font size=-1><em>Construct an empty XalanQName.</em> <a href="#a0">More...</a><em><br><br></em></font></dl><li>virtual <a class="el" href="classXalanQName.html#a1">~XalanQName</a> ()
<li>virtual const <a class="el" href="classXalanDOMString.html">XalanDOMString</a>&amp; <a class="el" href="classXalanQName.html#a2">getLocalPart</a> () const=0
<dl class="el"><dd><font size=-1><em>Retrieve the local part of qualified name.</em> <a href="#a2">More...</a><em><br><br></em></font></dl><li>virtual const <a class="el" href="classXalanDOMString.html">XalanDOMString</a>&amp; <a class="el" href="classXalanQName.html#a3">getNamespace</a> () const=0
<dl class="el"><dd><font size=-1><em>Retrieve the namespace of qualified name.</em> <a href="#a3">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classXalanQName.html#a4">isValid</a> () const
<dl class="el"><dd><font size=-1><em>Determine if the qualified name is valid.</em> <a href="#a4">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classXalanQName.html#a5">isEmpty</a> () const
<dl class="el"><dd><font size=-1><em>Whether the qualified name is empty.</em> <a href="#a5">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classXalanQName.html#a6">equals</a> (const XalanQName &amp;theRHS) const
<dl class="el"><dd><font size=-1><em>Override equals and agree that we're equal if the passed object is a string and it matches the name of the arg.</em> <a href="#a6">More...</a><em><br><br></em></font></dl><li><a class="el" href="classXalanDOMString.html#s6">XalanDOMString::size_type</a> <a class="el" href="classXalanQName.html#a7">hash</a> () const
</ul>
<h2>Static Public Methods</h2>
<ul>
<li>const <a class="el" href="classXalanDOMString.html">XalanDOMString</a>* <a class="el" href="classXalanQName.html#d0">getNamespaceForPrefix</a> (const <a class="el" href="classXalanQName.html#s0">NamespaceVectorType</a> &amp;namespaces, const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;prefix)
<dl class="el"><dd><font size=-1><em>Get the namespace for a prefix by searching a vector of namespaces.</em> <a href="#d0">More...</a><em><br><br></em></font></dl><li>const <a class="el" href="classXalanDOMString.html">XalanDOMString</a>* <a class="el" href="classXalanQName.html#d1">getNamespaceForPrefix</a> (const <a class="el" href="classXalanQName.html#s1">NamespacesStackType</a> &amp;nsStack, const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;prefix)
<dl class="el"><dd><font size=-1><em>Get the namespace for a prefix by searching a stack of namespace vectors.</em> <a href="#d1">More...</a><em><br><br></em></font></dl><li>const <a class="el" href="classXalanDOMString.html">XalanDOMString</a>* <a class="el" href="classXalanQName.html#d2">getNamespaceForPrefix</a> (const <a class="el" href="classXalanQName.html#s1">NamespacesStackType</a> &amp;nsStack, const XalanDOMChar *prefix)
<li>const <a class="el" href="classXalanDOMString.html">XalanDOMString</a>* <a class="el" href="classXalanQName.html#d3">getNamespaceForPrefix</a> (<a class="el" href="classXalanDeque.html#s8">NamespacesStackType::const_iterator</a> theBegin, <a class="el" href="classXalanDeque.html#s8">NamespacesStackType::const_iterator</a> theEnd, const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;prefix)
<dl class="el"><dd><font size=-1><em>Get the namespace for a prefix by searching a range of iterators.</em> <a href="#d3">More...</a><em><br><br></em></font></dl><li>const <a class="el" href="classXalanDOMString.html">XalanDOMString</a>* <a class="el" href="classXalanQName.html#d4">getPrefixForNamespace</a> (const <a class="el" href="classXalanQName.html#s0">NamespaceVectorType</a> &amp;namespaces, const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;uri)
<dl class="el"><dd><font size=-1><em>Get the prefix for a namespace by searching a vector of namespaces.</em> <a href="#d4">More...</a><em><br><br></em></font></dl><li>const <a class="el" href="classXalanDOMString.html">XalanDOMString</a>* <a class="el" href="classXalanQName.html#d5">getNamespaceForPrefix</a> (const <a class="el" href="classXalanQName.html#s0">NamespaceVectorType</a> &amp;namespaces, const XalanDOMChar *prefix)
<li>const <a class="el" href="classXalanDOMString.html">XalanDOMString</a>* <a class="el" href="classXalanQName.html#d6">getPrefixForNamespace</a> (const <a class="el" href="classXalanQName.html#s1">NamespacesStackType</a> &amp;nsStack, const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;uri)
<dl class="el"><dd><font size=-1><em>Get the prefix for a namespace by searching a stack of namespace vectors.</em> <a href="#d6">More...</a><em><br><br></em></font></dl><li>const <a class="el" href="classXalanDOMString.html">XalanDOMString</a>* <a class="el" href="classXalanQName.html#d7">getPrefixForNamespace</a> (<a class="el" href="classXalanDeque.html#s8">NamespacesStackType::const_iterator</a> theBegin, <a class="el" href="classXalanDeque.html#s8">NamespacesStackType::const_iterator</a> theEnd, const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;uri)
<dl class="el"><dd><font size=-1><em>Get the prefix for a namespace by searching a range of iterators.</em> <a href="#d7">More...</a><em><br><br></em></font></dl><li>const <a class="el" href="classXalanDOMString.html">XalanDOMString</a>* <a class="el" href="classXalanQName.html#d8">getNamespaceForPrefix</a> (<a class="el" href="classXalanDeque.html#s8">NamespacesStackType::const_iterator</a> theBegin, <a class="el" href="classXalanDeque.html#s8">NamespacesStackType::const_iterator</a> theEnd, const XalanDOMChar *prefix)
<li>bool <a class="el" href="classXalanQName.html#d9">isValidNCName</a> (const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;theNCName)
<dl class="el"><dd><font size=-1><em>Determine if the string supplied satisfies the grammar for an XML NCName.</em> <a href="#d9">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classXalanQName.html#d10">isValidNCName</a> (const XalanDOMChar *theNCName, <a class="el" href="classXalanDOMString.html#s6">XalanDOMString::size_type</a> theLength=XalanDOMString::npos)
<dl class="el"><dd><font size=-1><em>Determine if the string supplied satisfies the grammar for an XML NCName.</em> <a href="#d10">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classXalanQName.html#d11">isValidQName</a> (const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp;theQName)
<dl class="el"><dd><font size=-1><em>Determine if the string supplied satisfies the grammar for an XML QName.</em> <a href="#d11">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classXalanQName.html#d12">isValidQName</a> (const XalanDOMChar *theQName, <a class="el" href="classXalanDOMString.html#s6">XalanDOMString::size_type</a> theLength=XalanDOMString::npos)
<dl class="el"><dd><font size=-1><em>Determine if the string supplied satisfies the grammar for an XML QName.</em> <a href="#d12">More...</a><em><br><br></em></font></dl></ul>
<h2>Static Protected Attributes</h2>
<ul>
<li>const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> <a class="el" href="classXalanQName.html#q0">s_emptyString</a>
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Class to represent a qualified name: "The name of an internal XSLT object, specifically a named template (see [7 Named Templates]), a mode (see [6.7 Modes]), an attribute set (see [8.1.4 Named Attribute Sets]), a key (see [14.2 Keys]), a locale (see [14.3 Number Formatting]), a variable or a parameter (see [12 Variables and Parameters]) is specified as a QName.
<p>
If it has a prefix, then the prefix is expanded into a URI reference using the namespace declarations in effect on the attribute in which the name occurs. The expanded name consisting of the local part of the name and the possibly null URI reference is used as the name of the object. The default namespace is not used for unprefixed names."
<p>
<hr><h2>Member Typedef Documentation</h2>
<a name="s0" doxytag="XalanQName::NamespaceVectorType"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
typedef <a class="el" href="classXalanDeque.html">XalanDeque</a>&lt; <a class="el" href="classNameSpace.html">NameSpace</a>, <a class="el" href="structConstructWithMemoryManagerTraits.html">ConstructWithMemoryManagerTraits</a>&lt; <a class="el" href="classNameSpace.html">NameSpace</a> &gt; &gt; XalanQName::NamespaceVectorType&lt;<a class="el" href="classNameSpace.html">NameSpace</a>, <a class="el" href="structConstructWithMemoryManagerTraits.html">ConstructWithMemoryManagerTraits</a>&lt;<a class="el" href="classNameSpace.html">NameSpace</a>&gt; &gt;
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="s1" doxytag="XalanQName::NamespacesStackType"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
typedef <a class="el" href="classXalanDeque.html">XalanDeque</a>&lt; <a class="el" href="classXalanQName.html#s0">NamespaceVectorType</a>, <a class="el" href="structConstructWithMemoryManagerTraits.html">ConstructWithMemoryManagerTraits</a>&lt; <a class="el" href="classXalanQName.html#s0">NamespaceVectorType</a> &gt; &gt; XalanQName::NamespacesStackType&lt;<a class="el" href="classXalanQName.html#s0">NamespaceVectorType</a>, <a class="el" href="structConstructWithMemoryManagerTraits.html">ConstructWithMemoryManagerTraits</a>&lt;<a class="el" href="classXalanQName.html#s0">NamespaceVectorType</a>&gt; &gt;
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="XalanQName::XalanQName"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
XalanQName::XalanQName (
</b></td>
<td valign="bottom"><b>
)<code> [explicit]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Construct an empty XalanQName.
<p>
</td>
</tr>
</table>
<a name="a1" doxytag="XalanQName::~XalanQName"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
XalanQName::~XalanQName (
</b></td>
<td valign="bottom"><b>
)<code> [virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a6" doxytag="XalanQName::equals"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
bool XalanQName::equals (
</b></td>
<td valign="bottom"><b>
const XalanQName &amp; <em>theRHS</em>&nbsp;) const
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Override equals and agree that we're equal if the passed object is a string and it matches the name of the arg.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>theRHS</em>
&nbsp;</td><td>
namespace to compare </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
true if namespace and local part are both empty </dl> </td>
</tr>
</table>
<a name="a2" doxytag="XalanQName::getLocalPart"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; XalanQName::getLocalPart (
</b></td>
<td valign="bottom"><b>
) const<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Retrieve the local part of qualified name.
<p>
<dl compact><dt>
<b>Returns: </b><dd>
local part string </dl>
<p>
Reimplemented in <a class="el" href="classXalanQNameByReference.html#a5">XalanQNameByReference</a>, and <a class="el" href="classXalanQNameByValue.html#a10">XalanQNameByValue</a>. </td>
</tr>
</table>
<a name="a3" doxytag="XalanQName::getNamespace"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; XalanQName::getNamespace (
</b></td>
<td valign="bottom"><b>
) const<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Retrieve the namespace of qualified name.
<p>
<dl compact><dt>
<b>Returns: </b><dd>
namespace string </dl>
<p>
Reimplemented in <a class="el" href="classXalanQNameByReference.html#a7">XalanQNameByReference</a>, and <a class="el" href="classXalanQNameByValue.html#a12">XalanQNameByValue</a>. </td>
</tr>
</table>
<a name="d8" doxytag="XalanQName::getNamespaceForPrefix"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> * XalanQName::getNamespaceForPrefix (
</b></td>
<td valign="bottom"><b>
<a class="el" href="classXalanDeque.html#s8">NamespacesStackType::const_iterator</a> <em>theBegin</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
<a class="el" href="classXalanDeque.html#s8">NamespacesStackType::const_iterator</a> <em>theEnd</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const XalanDOMChar * <em>prefix</em>&nbsp;)<code> [static]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="d5" doxytag="XalanQName::getNamespaceForPrefix"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> * XalanQName::getNamespaceForPrefix (
</b></td>
<td valign="bottom"><b>
const <a class="el" href="classXalanQName.html#s0">NamespaceVectorType</a> &amp; <em>namespaces</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const XalanDOMChar * <em>prefix</em>&nbsp;)<code> [static]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="d3" doxytag="XalanQName::getNamespaceForPrefix"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> * XalanQName::getNamespaceForPrefix (
</b></td>
<td valign="bottom"><b>
<a class="el" href="classXalanDeque.html#s8">NamespacesStackType::const_iterator</a> <em>theBegin</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
<a class="el" href="classXalanDeque.html#s8">NamespacesStackType::const_iterator</a> <em>theEnd</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>prefix</em>&nbsp;)<code> [static]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the namespace for a prefix by searching a range of iterators.
<p>
The search is done in reverse, from the end of the range to the beginning.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>theBegin</em>
&nbsp;</td><td>
The beginning iterator for the range </td></tr>
<tr><td valign=top><em>theBegin</em>
&nbsp;</td><td>
The ending iterator for the range </td></tr>
<tr><td valign=top><em>prefix</em>
&nbsp;</td><td>
namespace prefix to find </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
pointer to the string value if found, otherwise null. </dl> </td>
</tr>
</table>
<a name="d2" doxytag="XalanQName::getNamespaceForPrefix"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> * XalanQName::getNamespaceForPrefix (
</b></td>
<td valign="bottom"><b>
const <a class="el" href="classXalanQName.html#s1">NamespacesStackType</a> &amp; <em>nsStack</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const XalanDOMChar * <em>prefix</em>&nbsp;)<code> [static]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="d1" doxytag="XalanQName::getNamespaceForPrefix"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> * XalanQName::getNamespaceForPrefix (
</b></td>
<td valign="bottom"><b>
const <a class="el" href="classXalanQName.html#s1">NamespacesStackType</a> &amp; <em>nsStack</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>prefix</em>&nbsp;)<code> [static]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the namespace for a prefix by searching a stack of namespace vectors.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>nsStack</em>
&nbsp;</td><td>
stack of namespace vectors to search </td></tr>
<tr><td valign=top><em>prefix</em>
&nbsp;</td><td>
namespace prefix to find </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
pointer to the string value if found, otherwise null. </dl> </td>
</tr>
</table>
<a name="d0" doxytag="XalanQName::getNamespaceForPrefix"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> * XalanQName::getNamespaceForPrefix (
</b></td>
<td valign="bottom"><b>
const <a class="el" href="classXalanQName.html#s0">NamespaceVectorType</a> &amp; <em>namespaces</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>prefix</em>&nbsp;)<code> [static]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the namespace for a prefix by searching a vector of namespaces.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>namespaces</em>
&nbsp;</td><td>
vector of namespaces to search </td></tr>
<tr><td valign=top><em>prefix</em>
&nbsp;</td><td>
namespace prefix to find </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
pointer to the string value if found, otherwise null. </dl> </td>
</tr>
</table>
<a name="d7" doxytag="XalanQName::getPrefixForNamespace"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> * XalanQName::getPrefixForNamespace (
</b></td>
<td valign="bottom"><b>
<a class="el" href="classXalanDeque.html#s8">NamespacesStackType::const_iterator</a> <em>theBegin</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
<a class="el" href="classXalanDeque.html#s8">NamespacesStackType::const_iterator</a> <em>theEnd</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>uri</em>&nbsp;)<code> [static]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the prefix for a namespace by searching a range of iterators.
<p>
The search is done in reverse, from the end of the range to the beginning.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>theBegin</em>
&nbsp;</td><td>
The beginning iterator for the range to search </td></tr>
<tr><td valign=top><em>theBegin</em>
&nbsp;</td><td>
The ending iterator for the range to search </td></tr>
<tr><td valign=top><em>uri</em>
&nbsp;</td><td>
URI string for namespace to find </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
pointer to the string value if found, otherwise null. </dl> </td>
</tr>
</table>
<a name="d6" doxytag="XalanQName::getPrefixForNamespace"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> * XalanQName::getPrefixForNamespace (
</b></td>
<td valign="bottom"><b>
const <a class="el" href="classXalanQName.html#s1">NamespacesStackType</a> &amp; <em>nsStack</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>uri</em>&nbsp;)<code> [static]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the prefix for a namespace by searching a stack of namespace vectors.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>nsStack</em>
&nbsp;</td><td>
stack of namespace vectors to search </td></tr>
<tr><td valign=top><em>uri</em>
&nbsp;</td><td>
URI string for namespace to find </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
pointer to the string value if found, otherwise null. </dl> </td>
</tr>
</table>
<a name="d4" doxytag="XalanQName::getPrefixForNamespace"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> * XalanQName::getPrefixForNamespace (
</b></td>
<td valign="bottom"><b>
const <a class="el" href="classXalanQName.html#s0">NamespaceVectorType</a> &amp; <em>namespaces</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>uri</em>&nbsp;)<code> [static]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the prefix for a namespace by searching a vector of namespaces.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>namespaces</em>
&nbsp;</td><td>
vector of namespaces to search </td></tr>
<tr><td valign=top><em>uri</em>
&nbsp;</td><td>
URI string for namespace to find </td></tr>
<tr><td valign=top><em>reverse</em>
&nbsp;</td><td>
true to search vector from last to first, default true </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
pointer to the string value if found, otherwise null. </dl> </td>
</tr>
</table>
<a name="a7" doxytag="XalanQName::hash"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
<a class="el" href="classXalanDOMString.html#s6">XalanDOMString::size_type</a> XalanQName::hash (
</b></td>
<td valign="bottom"><b>
) const
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="a5" doxytag="XalanQName::isEmpty"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
bool XalanQName::isEmpty (
</b></td>
<td valign="bottom"><b>
) const
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Whether the qualified name is empty.
<p>
<dl compact><dt>
<b>Returns: </b><dd>
true if namespace and local part are both empty </dl> </td>
</tr>
</table>
<a name="a4" doxytag="XalanQName::isValid"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
bool XalanQName::isValid (
</b></td>
<td valign="bottom"><b>
) const
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Determine if the qualified name is valid.
<p>
<dl compact><dt>
<b>Returns: </b><dd>
true if the instance is a valid QName, false if not. </dl> </td>
</tr>
</table>
<a name="d10" doxytag="XalanQName::isValidNCName"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
bool XalanQName::isValidNCName (
</b></td>
<td valign="bottom"><b>
const XalanDOMChar * <em>theNCName</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
<a class="el" href="classXalanDOMString.html#s6">XalanDOMString::size_type</a> <em>theLength</em> = XalanDOMString::npos&nbsp;)<code> [static]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Determine if the string supplied satisfies the grammar for an XML NCName.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>theNCName</em>
&nbsp;</td><td>
The string to check </td></tr>
<tr><td valign=top><em>theLength</em>
&nbsp;</td><td>
The length of the string </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
bool true if the string is a valid NCName, false if not </dl> </td>
</tr>
</table>
<a name="d9" doxytag="XalanQName::isValidNCName"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
bool XalanQName::isValidNCName (
</b></td>
<td valign="bottom"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>theNCName</em>&nbsp;)<code> [static]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Determine if the string supplied satisfies the grammar for an XML NCName.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>theNCName</em>
&nbsp;</td><td>
The string to check </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
bool true if the string is a valid NCName, false if not. </dl> </td>
</tr>
</table>
<a name="d12" doxytag="XalanQName::isValidQName"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
bool XalanQName::isValidQName (
</b></td>
<td valign="bottom"><b>
const XalanDOMChar * <em>theQName</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
<a class="el" href="classXalanDOMString.html#s6">XalanDOMString::size_type</a> <em>theLength</em> = XalanDOMString::npos&nbsp;)<code> [static]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Determine if the string supplied satisfies the grammar for an XML QName.
<p>
Note that this function does not determine if any supplied prefix is bound to a namespace URI<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>theQName</em>
&nbsp;</td><td>
The string to check </td></tr>
<tr><td valign=top><em>theLength</em>
&nbsp;</td><td>
The length of the string </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
bool true if the string is a valid QName, false if not </dl> </td>
</tr>
</table>
<a name="d11" doxytag="XalanQName::isValidQName"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
bool XalanQName::isValidQName (
</b></td>
<td valign="bottom"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> &amp; <em>theQName</em>&nbsp;)<code> [static]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Determine if the string supplied satisfies the grammar for an XML QName.
<p>
Note that this function does not determine if any supplied prefix is bound to a namespace URI<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>theQName</em>
&nbsp;</td><td>
The string to check </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
bool true if the string is a valid QName, false if not </dl> </td>
</tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="q0" doxytag="XalanQName::s_emptyString"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
const <a class="el" href="classXalanDOMString.html">XalanDOMString</a> XalanQName::s_emptyString<code> [static, protected]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="XalanQName_8hpp-source.html">XalanQName.hpp</a></ul>
<p align="center"><a href="diagramnotes.html">Interpreting class diagrams</a></p>
<p><FONT color="#000000" face="arial,helvetica,sanserif" size="-1">
<i><A href="http://www.stack.nl/~dimitri/doxygen/">Doxygen</A> and
<A href="http://www.research.att.com/sw/tools/graphviz/">GraphViz</A> are used to generate this API documentation from the Xalan-C header files.</I></FONT></p>
<TABLE border="0" cellpadding="0" cellspacing="0" width="820"><TR><TD bgcolor="#0086b2"><IMG height="1" src="../resources/dot.gif" width="1" alt="dot"></TD></TR></TABLE>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="80%">
<TR>
<TD WIDTH="80%" VALIGN="TOP">
<P ALIGN="CENTER"><B>Xalan-C++ XSLT Processor Version 1.10</B><BR>
Copyright &copy; 1999-2004 The Apache Software Foundation. All Rights Reserved.</i></p>
</TD>
</TR>
<TR>
<TD WIDTH="100%">
<P ALIGN="CENTER"><IMG SRC="ApacheLogo.jpg" WIDTH="387" HEIGHT="100" ALIGN="BOTTOM" BORDER="0" ALT="Apache Logo">
</TD>
</TR>
</TABLE>