com.japisoft.xpath.navigator
Class DOMNavigator

java.lang.Object
  |
  +--com.japisoft.xpath.navigator.DOMNavigator
All Implemented Interfaces:
Navigator

public final class DOMNavigator
extends java.lang.Object
implements Navigator

DOM Navigator

Author:
(c) 2003 JAPISOFT

Field Summary
static int ATTRIBUTE
           
static int COMMENT
           
static int NODE
           
static int PROCESSING_INSTRUCTION
           
static int TEXT
           
 
Constructor Summary
DOMNavigator()
           
 
Method Summary
 java.lang.Object getDocumentRoot(java.lang.Object refNode)
          A special node containing the root as the unique child
 NodeSet getNodes(java.lang.Object refNode, java.lang.String axis, java.lang.String nodeType, java.lang.String name, java.lang.String namespaceURI)
           
 java.lang.Object getRoot(java.lang.Object refNode)
           
 void setIgnoreCaseMode(boolean ignoreCaseMode)
          Ignore case when matching node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE

public static final int NODE
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

COMMENT

public static final int COMMENT
See Also:
Constant Field Values

ATTRIBUTE

public static final int ATTRIBUTE
See Also:
Constant Field Values

PROCESSING_INSTRUCTION

public static final int PROCESSING_INSTRUCTION
See Also:
Constant Field Values
Constructor Detail

DOMNavigator

public DOMNavigator()
Method Detail

setIgnoreCaseMode

public void setIgnoreCaseMode(boolean ignoreCaseMode)
Ignore case when matching node


getRoot

public java.lang.Object getRoot(java.lang.Object refNode)
Specified by:
getRoot in interface Navigator
Returns:
the root node

getDocumentRoot

public java.lang.Object getDocumentRoot(java.lang.Object refNode)
Description copied from interface: Navigator
A special node containing the root as the unique child

Specified by:
getDocumentRoot in interface Navigator

getNodes

public NodeSet getNodes(java.lang.Object refNode,
                        java.lang.String axis,
                        java.lang.String nodeType,
                        java.lang.String name,
                        java.lang.String namespaceURI)
Specified by:
getNodes in interface Navigator
Parameters:
refNode - XML node
axis - 'ancestor', 'ancestor-or-self', 'attribute', 'child', 'descendant', 'descendant-or-self', 'following', 'following-sibling', 'namespace', 'parent', 'preceding', 'preceding-sibling', 'self'.
nodeType - comment', 'text', 'processing-instruction', 'node'.
name - name test
namespaceURI - null or the namespace URI computed by a prefix and a context namespace declaration