Firefish 0.5.10

nu.xom.xpath.jaxen
Class DocumentNavigator

java.lang.Object
  extended byorg.jaxen.DefaultNavigator
      extended bynu.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

Constructor Summary
DocumentNavigator()
           
 
Method Summary
 Iterator getAttributeAxisIterator(Object contextNode)
           
 String getAttributeName(Object obj)
           
 String getAttributeNamespaceUri(Object obj)
           
 String getAttributeQName(Object obj)
           
 String getAttributeStringValue(Object obj)
           
 Iterator getChildAxisIterator(Object contextNode)
           
 String getCommentStringValue(Object obj)
           
 Object getDocument(String url)
           
 Object getDocumentNode(Object contextNode)
           
 String getElementName(Object obj)
           
 String getElementNamespaceUri(Object obj)
           
 String getElementQName(Object obj)
           
 String getElementStringValue(Object obj)
           
static DocumentNavigator getInstance()
           
 Iterator getNamespaceAxisIterator(Object contextNode)
           
 String getNamespacePrefix(Object obj)
           
 String getNamespaceStringValue(Object obj)
           
 Iterator getParentAxisIterator(Object contextNode)
           
 String getProcessingInstructionData(Object obj)
           
 String getProcessingInstructionTarget(Object obj)
           
 String getTextStringValue(Object obj)
           
 boolean isAttribute(Object obj)
           
 boolean isComment(Object obj)
           
 boolean isDocument(Object obj)
           
 boolean isElement(Object obj)
           
 boolean isNamespace(Object obj)
           
 boolean isProcessingInstruction(Object obj)
           
 boolean isText(Object obj)
           
 XPath parseXPath(String xpath)
          Returns a parsed form of the given xpath string, which will be suitable for queries on XOM documents.
 String translateNamespacePrefixToUri(String prefix, Object context)
           
 
Methods inherited from class org.jaxen.DefaultNavigator
getAncestorAxisIterator, getAncestorOrSelfAxisIterator, getDescendantAxisIterator, getDescendantOrSelfAxisIterator, getElementById, getFollowingAxisIterator, getFollowingSiblingAxisIterator, getNodeType, getParentNode, getPrecedingAxisIterator, getPrecedingSiblingAxisIterator, getSelfAxisIterator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentNavigator

public DocumentNavigator()
Method Detail

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

Firefish 0.5.10

Jump to the Firefish Homepage