Xalan-C++ API Reference
1.12.0
|
#include <xalanc/DOMSupport/XalanDocumentPrefixResolver.hpp>
Classes | |
class | NamespaceNodesTreeWalker |
A utility class to walk the XalanDocument instance and look for attribute nodes that declare namespaces. More... | |
Public Types | |
typedef AttributeVectorTypeDecl | AttributeVectorType |
typedef XalanMap< const XalanDOMString *, AttributeVectorType > | NamespacesMapType |
Public Member Functions | |
XalanDocumentPrefixResolver (const XalanDocument *theDocument, const XalanDOMString &theURI=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), MemoryManager &theManager XALAN_DEFAULT_MEMMGR) | |
Constructor. More... | |
virtual | ~XalanDocumentPrefixResolver () |
virtual const XalanDOMString * | getNamespaceForPrefix (const XalanDOMString &prefix) const |
Retrieve a namespace corresponding to a prefix. More... | |
virtual const XalanDOMString & | getURI () const |
Retrieve the base URI for the resolver. More... | |
Public Member Functions inherited from xalanc::PrefixResolver | |
PrefixResolver () | |
PrefixResolver (const PrefixResolver &) | |
virtual | ~PrefixResolver () |
Protected Member Functions | |
virtual const XalanDOMString * | duplicateBinding (const AttributeVectorType &theVector) const |
This function is called when more than one binding exists for a given prefix. More... | |
Definition at line 60 of file XalanDocumentPrefixResolver.hpp.
Definition at line 64 of file XalanDocumentPrefixResolver.hpp.
typedef XalanMap<const XalanDOMString*, AttributeVectorType> xalanc::XalanDocumentPrefixResolver::NamespacesMapType |
Definition at line 66 of file XalanDocumentPrefixResolver.hpp.
xalanc::XalanDocumentPrefixResolver::XalanDocumentPrefixResolver | ( | const XalanDocument * | theDocument, |
const XalanDOMString & | theURI = XalanDOMString(XalanMemMgrs::getDummyMemMgr()) , |
||
MemoryManager &theManager | XALAN_DEFAULT_MEMMGR | ||
) |
Constructor.
theDocument | The XalanDocument instance to use for namespace bindings. |
theURI | The base URI for the instance. This is rarely needed, but can be provided if the URI for the XalanDocument instance is known. |
|
virtual |
|
protectedvirtual |
This function is called when more than one binding exists for a given prefix.
The default behavior uses the first binding, but a deriving class can change that behavior by overriding.
theVector | The vector associated with the namespace prefix. |
|
virtual |
Retrieve a namespace corresponding to a prefix.
This assumes that the PrevixResolver holds its own namespace context, or is a namespace context itself.
prefix | Prefix to resolve |
Implements xalanc::PrefixResolver.
|
virtual |
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:34 for Xalan-C++ API Reference by 1.8.17