Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
org::xml::sax::helpers::Context Class Reference#include <NamespaceSupport.h>
Inheritance diagram for org::xml::sax::helpers::Context:
List of all members.
Detailed Description
Internal class for a single Namespace context.
This module caches and reuses Namespace contexts, so the number allocated will be equal to the element depth of the document, not to the total number of elements (i.e. 5-10 rather than tens of thousands).
Constructor & Destructor Documentation
org::xml::sax::helpers::Context::Context |
( |
|
) |
[inline] |
|
|
Create the root-level Namespace context.
|
Member Function Documentation
void org::xml::sax::helpers::Context::copyTables |
( |
|
) |
|
|
|
Copy on write for the internal tables in this context.
This class is optimized for the normal case where most elements do not contain Namespace declarations. |
void org::xml::sax::helpers::Context::declarePrefix |
( |
IN(RString) |
prefix, |
|
|
IN(RString) |
uri |
|
) |
|
|
RString org::xml::sax::helpers::Context::getPrefix |
( |
IN(RString) |
uri |
) |
[inline] |
|
|
Look up one of the prefixes associated with a URI in this context.
Since many prefixes may be mapped to the same URI, the return value may be unreliable.
- Parameters:
-
- Returns:
- The associated prefix, or null if none is declared.
- See also:
- org::xml::sax::helpers::NamespaceSupport::getPrefix
|
RString org::xml::sax::helpers::Context::getURI |
( |
IN(RString) |
prefix |
) |
|
|
RStringArray org::xml::sax::helpers::Context::processName |
( |
IN(RString) |
qName, |
|
|
bool |
isAttribute |
|
) |
|
|
|
Process a raw XML 1.0 name in this context.
- Parameters:
-
qName | The raw XML 1.0 name. |
isAttribute | true if this is an attribute name. |
- Returns:
- An array of three strings containing the URI part (or empty string), the local part, and the raw name, all internalized, or null if there is an undeclared prefix.
- See also:
- org::xml::sax::helpers::NamespaceSupport::processName
|
void org::xml::sax::helpers::Context::setParent |
( |
IN(RContext) |
parent |
) |
|
|
|
(Re)set the parent of this Namespace context.
- Parameters:
-
context | The parent Namespace context object. |
|
Member Data Documentation
|