Inheritance diagram for IDOM_TreeWalker:
Public Methods | |
Get functions. | |
virtual IDOM_Node * | getRoot ()=0 |
virtual unsigned long | getWhatToShow ()=0 |
virtual IDOM_NodeFilter * | getFilter ()=0 |
virtual bool | getExpandEntityReferences ()=0 |
virtual IDOM_Node * | getCurrentNode ()=0 |
virtual IDOM_Node * | parentNode ()=0 |
virtual IDOM_Node * | firstChild ()=0 |
virtual IDOM_Node * | lastChild ()=0 |
virtual IDOM_Node * | previousSibling ()=0 |
virtual IDOM_Node * | nextSibling ()=0 |
virtual IDOM_Node * | previousNode ()=0 |
virtual IDOM_Node * | nextNode ()=0 |
Set functions. | |
virtual void | setCurrentNode (IDOM_Node *currentNode)=0 |
Protected Methods | |
IDOM_TreeWalker (const IDOM_TreeWalker &other) | |
IDOM_TreeWalker & | operator= (const IDOM_TreeWalker &other) |
IDOM_TreeWalker
objects are used to navigate a document tree or subtree using the view of the document defined by its whatToShow
flags and any filters that are defined for the IDOM_TreeWalker
. Any function which performs navigation using a IDOM_TreeWalker
will automatically support any view defined by a IDOM_TreeWalker
.
Omitting nodes from the logical view of a subtree can result in a structure that is substantially different from the same subtree in the complete, unfiltered document. Nodes that are siblings in the IDOM_TreeWalker view may be children of different, widely separated nodes in the original view. For instance, consider a Filter that skips all nodes except for Text nodes and the root node of a document. In the logical view that results, all text nodes will be siblings and appear as direct children of the root node, no matter how deeply nested the structure of the original document.
|
Moves the |
|
Return the node at which the IDOM_TreeWalker is currently positioned. |
|
Return the expandEntityReferences flag. The value of this flag determines whether the children of entity reference nodes are visible to the IDOM_TreeWalker. If false, they will be skipped over. |
|
Return The filter used to screen nodes. |
|
The |
|
Return which node types are presented via the IDOM_TreeWalker. These constants are defined in the IDOM_NodeFilter interface. |
|
Moves the |
|
Moves the |
|
Moves the |
|
Moves to and returns the closest visible ancestor node of the current node. If the search for parentNode attempts to step upward from the IDOM_TreeWalker's root node, or if it fails to find a visible ancestor node, this method retains the current position and returns null. |
|
Moves the |
|
Moves the |
|
Set the node at which the IDOM_TreeWalker is currently positioned. |