nu.xom.xpath.jaxen
Class DocumentNavigator
java.lang.Object
org.jaxen.DefaultNavigator
nu.xom.xpath.jaxen.DocumentNavigator
- All Implemented Interfaces:
- Navigator, Serializable
- public class DocumentNavigator
- extends DefaultNavigator
Class for navigating around the XOM object model.
This class is not intended for direct usage, but is used by the
Jaxen engine during XPath expression evaluation.
- See Also:
- Serialized Form
Methods inherited from class org.jaxen.DefaultNavigator |
getAncestorAxisIterator, getAncestorOrSelfAxisIterator, getDescendantAxisIterator, getDescendantOrSelfAxisIterator, getElementById, getFollowingAxisIterator, getFollowingSiblingAxisIterator, getNodeType, getParentNode, getPrecedingAxisIterator, getPrecedingSiblingAxisIterator, getSelfAxisIterator |
DocumentNavigator
public DocumentNavigator()
getInstance
public static DocumentNavigator getInstance()
isElement
public boolean isElement(Object obj)
isComment
public boolean isComment(Object obj)
isText
public boolean isText(Object obj)
isAttribute
public boolean isAttribute(Object obj)
isProcessingInstruction
public boolean isProcessingInstruction(Object obj)
isDocument
public boolean isDocument(Object obj)
isNamespace
public boolean isNamespace(Object obj)
getElementName
public String getElementName(Object obj)
getElementNamespaceUri
public String getElementNamespaceUri(Object obj)
getAttributeName
public String getAttributeName(Object obj)
getAttributeNamespaceUri
public String getAttributeNamespaceUri(Object obj)
getChildAxisIterator
public Iterator getChildAxisIterator(Object contextNode)
getNamespaceAxisIterator
public Iterator getNamespaceAxisIterator(Object contextNode)
getParentAxisIterator
public Iterator getParentAxisIterator(Object contextNode)
getAttributeAxisIterator
public Iterator getAttributeAxisIterator(Object contextNode)
parseXPath
public XPath parseXPath(String xpath)
throws org.saxpath.SAXPathException
- Returns a parsed form of the given xpath string, which will
be suitable for queries on XOM documents.
- Throws:
org.saxpath.SAXPathException
getDocumentNode
public Object getDocumentNode(Object contextNode)
getElementQName
public String getElementQName(Object obj)
getAttributeQName
public String getAttributeQName(Object obj)
getNamespaceStringValue
public String getNamespaceStringValue(Object obj)
getNamespacePrefix
public String getNamespacePrefix(Object obj)
getTextStringValue
public String getTextStringValue(Object obj)
getAttributeStringValue
public String getAttributeStringValue(Object obj)
getElementStringValue
public String getElementStringValue(Object obj)
getProcessingInstructionTarget
public String getProcessingInstructionTarget(Object obj)
getProcessingInstructionData
public String getProcessingInstructionData(Object obj)
getCommentStringValue
public String getCommentStringValue(Object obj)
translateNamespacePrefixToUri
public String translateNamespacePrefixToUri(String prefix,
Object context)
getDocument
public Object getDocument(String url)
throws FunctionCallException
- Throws:
FunctionCallException
Jump to the Firefish Homepage