org.jaxen.xom

Class DocumentNavigator

Implemented Interfaces:
Navigator, Serializable

public class DocumentNavigator
extends DefaultNavigator

Interface for navigating around the XOM object model.

This class is not intended for direct usage, but is used by the Jaxen engine during evaluation.

See Also:
XPath

Nested Class Summary

private static class
DocumentNavigator.IndexIterator
private static class
DocumentNavigator.XPathNamespace
Wrapper for XOM namespace nodes to give them a parent, as required by the XPath data model.

Field Summary

private static long
serialVersionUID

Method Summary

private boolean
addNamespaceForElement(Element elt, String uri, String prefix, Map map)
Iterator
getAttributeAxisIterator(Object o)
String
getAttributeName(Object o)
String
getAttributeNamespaceUri(Object o)
String
getAttributeQName(Object o)
String
getAttributeStringValue(Object o)
Iterator
getChildAxisIterator(Object o)
String
getCommentStringValue(Object o)
Object
getDocument(String s)
Object
getDocumentNode(Object o)
String
getElementName(Object o)
String
getElementNamespaceUri(Object o)
String
getElementQName(Object o)
String
getElementStringValue(Object o)
Iterator
getNamespaceAxisIterator(Object o)
String
getNamespacePrefix(Object o)
String
getNamespaceStringValue(Object o)
Iterator
getParentAxisIterator(Object o)
Object
getParentNode(Object o)
Iterator
getPrecedingAxisIterator(Object o)
Iterator
getPrecedingSiblingAxisIterator(Object o)
String
getProcessingInstructionData(Object o)
String
getProcessingInstructionTarget(Object o)
String
getTextStringValue(Object o)
boolean
isAttribute(Object o)
boolean
isComment(Object o)
boolean
isDocument(Object o)
boolean
isElement(Object o)
boolean
isNamespace(Object o)
boolean
isProcessingInstruction(Object o)
boolean
isText(Object o)
XPath
parseXPath(String s)
String
translateNamespacePrefixToUri(String s, Object o)

Methods inherited from class org.jaxen.DefaultNavigator

getAncestorAxisIterator, getAncestorOrSelfAxisIterator, getAttributeAxisIterator, getChildAxisIterator, getDescendantAxisIterator, getDescendantOrSelfAxisIterator, getDocument, getDocumentNode, getElementById, getFollowingAxisIterator, getFollowingSiblingAxisIterator, getNamespaceAxisIterator, getNodeType, getParentAxisIterator, getParentNode, getPrecedingAxisIterator, getPrecedingSiblingAxisIterator, getProcessingInstructionData, getProcessingInstructionTarget, getSelfAxisIterator, translateNamespacePrefixToUri

Field Details

serialVersionUID

private static final long serialVersionUID
Field Value:
3159311338575942877L

Method Details

addNamespaceForElement

private boolean addNamespaceForElement(Element elt,
                                       String uri,
                                       String prefix,
                                       Map map)

getAttributeAxisIterator

public Iterator getAttributeAxisIterator(Object o)
Specified by:
getAttributeAxisIterator in interface Navigator
Overrides:
getAttributeAxisIterator in interface DefaultNavigator

getAttributeName

public String getAttributeName(Object o)
Specified by:
getAttributeName in interface Navigator

getAttributeNamespaceUri

public String getAttributeNamespaceUri(Object o)
Specified by:
getAttributeNamespaceUri in interface Navigator

getAttributeQName

public String getAttributeQName(Object o)
Specified by:
getAttributeQName in interface Navigator

getAttributeStringValue

public String getAttributeStringValue(Object o)
Specified by:
getAttributeStringValue in interface Navigator

getChildAxisIterator

public Iterator getChildAxisIterator(Object o)
Specified by:
getChildAxisIterator in interface Navigator
Overrides:
getChildAxisIterator in interface DefaultNavigator

getCommentStringValue

public String getCommentStringValue(Object o)
Specified by:
getCommentStringValue in interface Navigator

getDocument

public Object getDocument(String s)
            throws FunctionCallException
Specified by:
getDocument in interface Navigator
Overrides:
getDocument in interface DefaultNavigator

getDocumentNode

public Object getDocumentNode(Object o)
Specified by:
getDocumentNode in interface Navigator
Overrides:
getDocumentNode in interface DefaultNavigator

getElementName

public String getElementName(Object o)
Specified by:
getElementName in interface Navigator

getElementNamespaceUri

public String getElementNamespaceUri(Object o)
Specified by:
getElementNamespaceUri in interface Navigator

getElementQName

public String getElementQName(Object o)
Specified by:
getElementQName in interface Navigator

getElementStringValue

public String getElementStringValue(Object o)
Specified by:
getElementStringValue in interface Navigator

getNamespaceAxisIterator

public Iterator getNamespaceAxisIterator(Object o)
Specified by:
getNamespaceAxisIterator in interface Navigator
Overrides:
getNamespaceAxisIterator in interface DefaultNavigator

getNamespacePrefix

public String getNamespacePrefix(Object o)
Specified by:
getNamespacePrefix in interface Navigator

getNamespaceStringValue

public String getNamespaceStringValue(Object o)
Specified by:
getNamespaceStringValue in interface Navigator

getParentAxisIterator

public Iterator getParentAxisIterator(Object o)
Specified by:
getParentAxisIterator in interface Navigator
Overrides:
getParentAxisIterator in interface DefaultNavigator

getParentNode

public Object getParentNode(Object o)
Specified by:
getParentNode in interface Navigator
Overrides:
getParentNode in interface DefaultNavigator

getPrecedingAxisIterator

public Iterator getPrecedingAxisIterator(Object o)
            throws UnsupportedAxisException
Specified by:
getPrecedingAxisIterator in interface Navigator
Overrides:
getPrecedingAxisIterator in interface DefaultNavigator

getPrecedingSiblingAxisIterator

public Iterator getPrecedingSiblingAxisIterator(Object o)
            throws UnsupportedAxisException
Specified by:
getPrecedingSiblingAxisIterator in interface Navigator
Overrides:
getPrecedingSiblingAxisIterator in interface DefaultNavigator

getProcessingInstructionData

public String getProcessingInstructionData(Object o)
Specified by:
getProcessingInstructionData in interface Navigator
Overrides:
getProcessingInstructionData in interface DefaultNavigator

getProcessingInstructionTarget

public String getProcessingInstructionTarget(Object o)
Specified by:
getProcessingInstructionTarget in interface Navigator
Overrides:
getProcessingInstructionTarget in interface DefaultNavigator

getTextStringValue

public String getTextStringValue(Object o)
Specified by:
getTextStringValue in interface Navigator

isAttribute

public boolean isAttribute(Object o)
Specified by:
isAttribute in interface Navigator

isComment

public boolean isComment(Object o)
Specified by:
isComment in interface Navigator

isDocument

public boolean isDocument(Object o)
Specified by:
isDocument in interface Navigator

isElement

public boolean isElement(Object o)
Specified by:
isElement in interface Navigator

isNamespace

public boolean isNamespace(Object o)
Specified by:
isNamespace in interface Navigator

isProcessingInstruction

public boolean isProcessingInstruction(Object o)
Specified by:
isProcessingInstruction in interface Navigator

isText

public boolean isText(Object o)
Specified by:
isText in interface Navigator

parseXPath

public XPath parseXPath(String s)
            throws SAXPathException
Specified by:
parseXPath in interface Navigator

translateNamespacePrefixToUri

public String translateNamespacePrefixToUri(String s,
                                            Object o)
Specified by:
translateNamespacePrefixToUri in interface Navigator
Overrides:
translateNamespacePrefixToUri in interface DefaultNavigator