Xalan-C++ API Reference  1.12.0
Public Member Functions | Protected Member Functions | List of all members
xalanc::XalanDocumentPrefixResolver::NamespaceNodesTreeWalker Class Reference

A utility class to walk the XalanDocument instance and look for attribute nodes that declare namespaces. More...

#include <xalanc/DOMSupport/XalanDocumentPrefixResolver.hpp>

Inheritance diagram for xalanc::XalanDocumentPrefixResolver::NamespaceNodesTreeWalker:
[legend]
Collaboration diagram for xalanc::XalanDocumentPrefixResolver::NamespaceNodesTreeWalker:
[legend]

Public Member Functions

 NamespaceNodesTreeWalker (NamespacesMapType &theMap)
 
virtual ~NamespaceNodesTreeWalker ()
 
- Public Member Functions inherited from xalanc::TreeWalker
 TreeWalker ()
 Constructor. More...
 
virtual ~TreeWalker ()
 
const XalanNodetraverse (const XalanNode *pos)
 Perform a document-order traversal. More...
 
XalanNodetraverse (XalanNode *pos)
 Perform a document-order traversal. More...
 
const XalanNodetraverse (const XalanNode *pos, const XalanNode *parent)
 Perform a document-order traversal stopping at the provided parent node. More...
 
XalanNodetraverse (XalanNode *pos, XalanNode *parent)
 Perform a document-order traversal stopping at the provided parent node. More...
 
virtual void traverseSubtree (const XalanNode *pos)
 Perform a pre-order traversal. More...
 
virtual void traverseSubtree (XalanNode *pos)
 Perform a pre-order traversal. More...
 

Protected Member Functions

virtual bool startNode (const XalanNode *node)
 Called when first walking a node. More...
 
virtual bool startNode (XalanNode *node)
 Called when first walking a node. More...
 
virtual bool endNode (const XalanNode *node)
 Called when leaving a node. More...
 
virtual bool endNode (XalanNode *node)
 Called when leaving a node. More...
 

Detailed Description

A utility class to walk the XalanDocument instance and look for attribute nodes that declare namespaces.

Definition at line 92 of file XalanDocumentPrefixResolver.hpp.

Constructor & Destructor Documentation

◆ NamespaceNodesTreeWalker()

xalanc::XalanDocumentPrefixResolver::NamespaceNodesTreeWalker::NamespaceNodesTreeWalker ( NamespacesMapType theMap)

◆ ~NamespaceNodesTreeWalker()

virtual xalanc::XalanDocumentPrefixResolver::NamespaceNodesTreeWalker::~NamespaceNodesTreeWalker ( )
virtual

Member Function Documentation

◆ endNode() [1/2]

virtual bool xalanc::XalanDocumentPrefixResolver::NamespaceNodesTreeWalker::endNode ( const XalanNode node)
protectedvirtual

Called when leaving a node.

Parameters
nodeThe node
Returns
return false if the walk should continue, or true if it should not.

Implements xalanc::TreeWalker.

◆ endNode() [2/2]

virtual bool xalanc::XalanDocumentPrefixResolver::NamespaceNodesTreeWalker::endNode ( XalanNode node)
protectedvirtual

Called when leaving a node.

Parameters
nodeThe node
Returns
return false if the walk should continue, or true if it should not.

Implements xalanc::TreeWalker.

◆ startNode() [1/2]

virtual bool xalanc::XalanDocumentPrefixResolver::NamespaceNodesTreeWalker::startNode ( const XalanNode node)
protectedvirtual

Called when first walking a node.

Parameters
nodeThe node
Returns
return false if the walk should continue, or true if it should not.

Implements xalanc::TreeWalker.

◆ startNode() [2/2]

virtual bool xalanc::XalanDocumentPrefixResolver::NamespaceNodesTreeWalker::startNode ( XalanNode node)
protectedvirtual

Called when first walking a node.

Parameters
nodeThe node
Returns
return false if the walk should continue, or true if it should not.

Implements xalanc::TreeWalker.


The documentation for this class was generated from the following file: