Package org.jaxen.dom4j
Class DocumentNavigator
java.lang.Object
org.jaxen.DefaultNavigator
org.jaxen.dom4j.DocumentNavigator
- All Implemented Interfaces:
Serializable,org.jaxen.NamedAccessNavigator,org.jaxen.Navigator
public class DocumentNavigator
extends org.jaxen.DefaultNavigator
implements org.jaxen.NamedAccessNavigator
Interface for navigating around the DOM4J object model.
This class is not intended for direct usage, but is used by the Jaxen engine during evaluation.
- Author:
- bob mcwhirter, Stephen Colebourne
- See Also:
-
XPath- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeAxisIterator(Object contextNode) getAttributeAxisIterator(Object contextNode, String localName, String namespacePrefix, String namespaceURI) Retrieves anIteratorover the attribute elements that match the supplied name.getAttributeName(Object obj) getAttributeQName(Object obj) getChildAxisIterator(Object contextNode) getChildAxisIterator(Object contextNode, String localName, String namespacePrefix, String namespaceURI) Retrieves anIteratorover the child elements that match the supplied name.getDocument(String uri) getDocumentNode(Object contextNode) getElementName(Object obj) getElementQName(Object obj) static org.jaxen.NavigatorRetrieve the singleton instance of thisDocumentNavigator.getNamespaceAxisIterator(Object contextNode) getNamespacePrefix(Object obj) shortgetNodeType(Object node) getParentAxisIterator(Object contextNode) getParentNode(Object contextNode) getTextStringValue(Object obj) booleanisAttribute(Object obj) booleanbooleanisDocument(Object obj) booleanbooleanisNamespace(Object obj) booleanbooleanorg.jaxen.XPathparseXPath(String xpath) Returns a parsed form of the given XPath string, which will be suitable for queries on DOM4J documents.voidsetSAXReader(SAXReader reader) translateNamespacePrefixToUri(String prefix, Object context) Methods inherited from class org.jaxen.DefaultNavigator
getAncestorAxisIterator, getAncestorOrSelfAxisIterator, getDescendantAxisIterator, getDescendantOrSelfAxisIterator, getElementById, getFollowingAxisIterator, getFollowingSiblingAxisIterator, getPrecedingAxisIterator, getPrecedingSiblingAxisIterator, getSelfAxisIteratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jaxen.Navigator
getAncestorAxisIterator, getAncestorOrSelfAxisIterator, getDescendantAxisIterator, getDescendantOrSelfAxisIterator, getElementById, getFollowingAxisIterator, getFollowingSiblingAxisIterator, getPrecedingAxisIterator, getPrecedingSiblingAxisIterator, getSelfAxisIterator
-
Constructor Details
-
DocumentNavigator
public DocumentNavigator()
-
-
Method Details
-
getInstance
public static org.jaxen.Navigator getInstance()Retrieve the singleton instance of thisDocumentNavigator. -
isElement
- Specified by:
isElementin interfaceorg.jaxen.Navigator
-
isComment
- Specified by:
isCommentin interfaceorg.jaxen.Navigator
-
isText
- Specified by:
isTextin interfaceorg.jaxen.Navigator
-
isAttribute
- Specified by:
isAttributein interfaceorg.jaxen.Navigator
-
isProcessingInstruction
- Specified by:
isProcessingInstructionin interfaceorg.jaxen.Navigator
-
isDocument
- Specified by:
isDocumentin interfaceorg.jaxen.Navigator
-
isNamespace
- Specified by:
isNamespacein interfaceorg.jaxen.Navigator
-
getElementName
- Specified by:
getElementNamein interfaceorg.jaxen.Navigator
-
getElementNamespaceUri
- Specified by:
getElementNamespaceUriin interfaceorg.jaxen.Navigator
-
getElementQName
- Specified by:
getElementQNamein interfaceorg.jaxen.Navigator
-
getAttributeName
- Specified by:
getAttributeNamein interfaceorg.jaxen.Navigator
-
getAttributeNamespaceUri
- Specified by:
getAttributeNamespaceUriin interfaceorg.jaxen.Navigator
-
getAttributeQName
- Specified by:
getAttributeQNamein interfaceorg.jaxen.Navigator
-
getChildAxisIterator
- Specified by:
getChildAxisIteratorin interfaceorg.jaxen.Navigator- Overrides:
getChildAxisIteratorin classorg.jaxen.DefaultNavigator
-
getChildAxisIterator
public Iterator getChildAxisIterator(Object contextNode, String localName, String namespacePrefix, String namespaceURI) Retrieves anIteratorover the child elements that match the supplied name.- Specified by:
getChildAxisIteratorin interfaceorg.jaxen.NamedAccessNavigator- Parameters:
contextNode- the origin context nodelocalName- the local name of the children to return, always presentnamespacePrefix- the prefix of the namespace of the children to returnnamespaceURI- the uri of the namespace of the children to return- Returns:
- an Iterator that traverses the named children, or null if none
-
getParentAxisIterator
- Specified by:
getParentAxisIteratorin interfaceorg.jaxen.Navigator- Overrides:
getParentAxisIteratorin classorg.jaxen.DefaultNavigator
-
getAttributeAxisIterator
- Specified by:
getAttributeAxisIteratorin interfaceorg.jaxen.Navigator- Overrides:
getAttributeAxisIteratorin classorg.jaxen.DefaultNavigator
-
getAttributeAxisIterator
public Iterator getAttributeAxisIterator(Object contextNode, String localName, String namespacePrefix, String namespaceURI) Retrieves anIteratorover the attribute elements that match the supplied name.- Specified by:
getAttributeAxisIteratorin interfaceorg.jaxen.NamedAccessNavigator- Parameters:
contextNode- the origin context nodelocalName- the local name of the attributes to return, always presentnamespacePrefix- the prefix of the namespace of the attributes to returnnamespaceURI- the URI of the namespace of the attributes to return- Returns:
- an Iterator that traverses the named attributes, not null
-
getNamespaceAxisIterator
- Specified by:
getNamespaceAxisIteratorin interfaceorg.jaxen.Navigator- Overrides:
getNamespaceAxisIteratorin classorg.jaxen.DefaultNavigator
-
getDocumentNode
- Specified by:
getDocumentNodein interfaceorg.jaxen.Navigator- Overrides:
getDocumentNodein classorg.jaxen.DefaultNavigator
-
parseXPath
Returns a parsed form of the given XPath string, which will be suitable for queries on DOM4J documents.- Specified by:
parseXPathin interfaceorg.jaxen.Navigator- Throws:
org.jaxen.saxpath.SAXPathException
-
getParentNode
- Specified by:
getParentNodein interfaceorg.jaxen.Navigator- Overrides:
getParentNodein classorg.jaxen.DefaultNavigator
-
getTextStringValue
- Specified by:
getTextStringValuein interfaceorg.jaxen.Navigator
-
getElementStringValue
- Specified by:
getElementStringValuein interfaceorg.jaxen.Navigator
-
getAttributeStringValue
- Specified by:
getAttributeStringValuein interfaceorg.jaxen.Navigator
-
getNamespaceStringValue
- Specified by:
getNamespaceStringValuein interfaceorg.jaxen.Navigator
-
getNamespacePrefix
- Specified by:
getNamespacePrefixin interfaceorg.jaxen.Navigator
-
getCommentStringValue
- Specified by:
getCommentStringValuein interfaceorg.jaxen.Navigator
-
translateNamespacePrefixToUri
- Specified by:
translateNamespacePrefixToUriin interfaceorg.jaxen.Navigator- Overrides:
translateNamespacePrefixToUriin classorg.jaxen.DefaultNavigator
-
getNodeType
- Specified by:
getNodeTypein interfaceorg.jaxen.Navigator- Overrides:
getNodeTypein classorg.jaxen.DefaultNavigator
-
getDocument
- Specified by:
getDocumentin interfaceorg.jaxen.Navigator- Overrides:
getDocumentin classorg.jaxen.DefaultNavigator- Throws:
org.jaxen.FunctionCallException
-
getProcessingInstructionTarget
- Specified by:
getProcessingInstructionTargetin interfaceorg.jaxen.Navigator- Overrides:
getProcessingInstructionTargetin classorg.jaxen.DefaultNavigator
-
getProcessingInstructionData
- Specified by:
getProcessingInstructionDatain interfaceorg.jaxen.Navigator- Overrides:
getProcessingInstructionDatain classorg.jaxen.DefaultNavigator
-
getSAXReader
-
setSAXReader
-