com.japisoft.xpath
Interface Navigator
- All Known Implementing Classes:
- DOMNavigator, FastParserNavigator
- public interface Navigator
Interface for navigating through an XML document. An implementation is made for
each XML structure type such as DOM, FastParser light node...
- Author:
- (c) 2003 JAPISOFT
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)
|
getNodes
public NodeSet getNodes(java.lang.Object refNode,
java.lang.String axis,
java.lang.String nodeType,
java.lang.String name,
java.lang.String namespaceURI)
- Parameters:
refNode
- XML nodeaxis
- '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 testnamespaceURI
- null or the namespace URI computed by a prefix and a context namespace declaration
getRoot
public java.lang.Object getRoot(java.lang.Object refNode)
- Returns:
- the root node
getDocumentRoot
public java.lang.Object getDocumentRoot(java.lang.Object refNode)
- A special node containing the root as the unique child