|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaxen.DefaultNavigator
org.jaxen.xom.DocumentNavigator
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.
XPath
,
Serialized FormConstructor Summary | |
DocumentNavigator()
|
Method Summary | |
java.util.Iterator |
getAttributeAxisIterator(java.lang.Object o)
Throws UnsupportedAxisException |
java.lang.String |
getAttributeName(java.lang.Object o)
Retrieve the name of the given attribute node. |
java.lang.String |
getAttributeNamespaceUri(java.lang.Object o)
Retrieve the namespace URI of the given attribute node. |
java.lang.String |
getAttributeQName(java.lang.Object o)
Retrieve the QName of the given attribute node. |
java.lang.String |
getAttributeStringValue(java.lang.Object o)
Retrieve the string-value of an attribute node. |
java.util.Iterator |
getChildAxisIterator(java.lang.Object o)
Throws UnsupportedAxisException |
java.lang.String |
getCommentStringValue(java.lang.Object o)
Retrieve the string-value of a comment node. |
java.lang.Object |
getDocument(java.lang.String s)
Loads a document from the given URI |
java.lang.Object |
getDocumentNode(java.lang.Object o)
Returns the document node that contains the given context node. |
java.lang.String |
getElementName(java.lang.Object o)
Retrieve the name of the given element node. |
java.lang.String |
getElementNamespaceUri(java.lang.Object o)
Retrieve the namespace URI of the given element node. |
java.lang.String |
getElementQName(java.lang.Object o)
Retrieve the QName of the given element node. |
java.lang.String |
getElementStringValue(java.lang.Object o)
Retrieve the string-value of an element node. |
java.util.Iterator |
getNamespaceAxisIterator(java.lang.Object o)
Throws UnsupportedAxisException |
java.lang.String |
getNamespacePrefix(java.lang.Object o)
Retrieve the namespace prefix of a namespace node. |
java.lang.String |
getNamespaceStringValue(java.lang.Object o)
Retrieve the string-value of a namespace node. |
java.util.Iterator |
getParentAxisIterator(java.lang.Object o)
Throws UnsupportedAxisException |
java.lang.Object |
getParentNode(java.lang.Object o)
Returns the parent of the given context node. |
java.util.Iterator |
getPrecedingAxisIterator(java.lang.Object o)
Throws UnsupportedAxisException |
java.util.Iterator |
getPrecedingSiblingAxisIterator(java.lang.Object o)
Throws UnsupportedAxisException |
java.lang.String |
getProcessingInstructionData(java.lang.Object o)
Retrieve the data of a processing-instruction. |
java.lang.String |
getProcessingInstructionTarget(java.lang.Object o)
Retrieve the target of a processing-instruction. |
java.lang.String |
getTextStringValue(java.lang.Object o)
Retrieve the string-value of a text node. |
boolean |
isAttribute(java.lang.Object o)
Returns whether the given object is an attribute node. |
boolean |
isComment(java.lang.Object o)
Returns whether the given object is a comment node. |
boolean |
isDocument(java.lang.Object o)
Returns whether the given object is a document node. |
boolean |
isElement(java.lang.Object o)
Returns whether the given object is an element node. |
boolean |
isNamespace(java.lang.Object o)
Returns whether the given object is a namespace node. |
boolean |
isProcessingInstruction(java.lang.Object o)
Returns whether the given object is a processing-instruction node. |
boolean |
isText(java.lang.Object o)
Returns whether the given object is a text node. |
XPath |
parseXPath(java.lang.String s)
Returns a parsed form of the given xpath string, which will be suitable for queries on documents that use the same navigator as this one. |
java.lang.String |
translateNamespacePrefixToUri(java.lang.String s,
java.lang.Object o)
Translate a namespace prefix to a namespace URI, possibly considering a particular element node. |
Methods inherited from class org.jaxen.DefaultNavigator |
getAncestorAxisIterator, getAncestorOrSelfAxisIterator, getDescendantAxisIterator, getDescendantOrSelfAxisIterator, getElementById, getFollowingAxisIterator, getFollowingSiblingAxisIterator, getNodeType, getSelfAxisIterator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DocumentNavigator()
Method Detail |
public boolean isAttribute(java.lang.Object o)
Navigator
o
- the object to test.
true
if the object is an attribute node,
else false
public boolean isComment(java.lang.Object o)
Navigator
o
- the object to test.
true
if the object is a comment node,
else false
public boolean isDocument(java.lang.Object o)
Navigator
/
.
o
- the object to test.
true
if the object is a document node,
else false
public boolean isElement(java.lang.Object o)
Navigator
o
- the object to test.
true
if the object is an element node,
else false
public boolean isNamespace(java.lang.Object o)
Navigator
o
- the object to test.
true
if the object is a namespace node,
else false
public boolean isProcessingInstruction(java.lang.Object o)
Navigator
o
- the object to test.
true
if the object is a processing-instruction node,
else false
public boolean isText(java.lang.Object o)
Navigator
o
- the object to test.
true
if the object is a text node,
else false
public java.lang.String getAttributeName(java.lang.Object o)
Navigator
o
- The context attribute node
public java.lang.String getAttributeNamespaceUri(java.lang.Object o)
Navigator
o
- The context attribute node
public java.lang.String getAttributeQName(java.lang.Object o)
Navigator
o
- The context attribute node.
public java.lang.String getAttributeStringValue(java.lang.Object o)
Navigator
o
- the attribute node
public java.lang.String getCommentStringValue(java.lang.Object o)
Navigator
o
- the comment node
public java.lang.String getElementName(java.lang.Object o)
Navigator
o
- the context element node
public java.lang.String getElementNamespaceUri(java.lang.Object o)
Navigator
o
- the context element node
public java.lang.String getElementQName(java.lang.Object o)
Navigator
o
- the context element node
public java.lang.String getElementStringValue(java.lang.Object o)
Navigator
o
- The comment node.
public java.lang.String getNamespacePrefix(java.lang.Object o)
Navigator
o
- the namespace node
public java.lang.String getNamespaceStringValue(java.lang.Object o)
Navigator
o
- The namespace node
public java.lang.String getTextStringValue(java.lang.Object o)
Navigator
o
- the text node
public java.lang.Object getDocument(java.lang.String s) throws FunctionCallException
Navigator
getDocument
in interface Navigator
getDocument
in class DefaultNavigator
FunctionCallException
public java.lang.Object getDocumentNode(java.lang.Object o)
Navigator
getDocumentNode
in interface Navigator
getDocumentNode
in class DefaultNavigator
public java.util.Iterator getAttributeAxisIterator(java.lang.Object o) throws UnsupportedAxisException
DefaultNavigator
UnsupportedAxisException
getAttributeAxisIterator
in interface Navigator
getAttributeAxisIterator
in class DefaultNavigator
UnsupportedAxisException
public java.util.Iterator getChildAxisIterator(java.lang.Object o) throws UnsupportedAxisException
DefaultNavigator
UnsupportedAxisException
getChildAxisIterator
in interface Navigator
getChildAxisIterator
in class DefaultNavigator
UnsupportedAxisException
public java.util.Iterator getParentAxisIterator(java.lang.Object o) throws UnsupportedAxisException
DefaultNavigator
UnsupportedAxisException
getParentAxisIterator
in interface Navigator
getParentAxisIterator
in class DefaultNavigator
UnsupportedAxisException
public java.lang.Object getParentNode(java.lang.Object o) throws UnsupportedAxisException
Navigator
The parent of any node must either be a document node or an element node.
getParentNode
in interface Navigator
getParentNode
in class DefaultNavigator
UnsupportedAxisException
public java.util.Iterator getPrecedingAxisIterator(java.lang.Object o) throws UnsupportedAxisException
DefaultNavigator
UnsupportedAxisException
getPrecedingAxisIterator
in interface Navigator
getPrecedingAxisIterator
in class DefaultNavigator
UnsupportedAxisException
public java.util.Iterator getPrecedingSiblingAxisIterator(java.lang.Object o) throws UnsupportedAxisException
DefaultNavigator
UnsupportedAxisException
getPrecedingSiblingAxisIterator
in interface Navigator
getPrecedingSiblingAxisIterator
in class DefaultNavigator
UnsupportedAxisException
public java.lang.String getProcessingInstructionData(java.lang.Object o)
Navigator
getProcessingInstructionData
in interface Navigator
getProcessingInstructionData
in class DefaultNavigator
public java.lang.String getProcessingInstructionTarget(java.lang.Object o)
Navigator
getProcessingInstructionTarget
in interface Navigator
getProcessingInstructionTarget
in class DefaultNavigator
public java.lang.String translateNamespacePrefixToUri(java.lang.String s, java.lang.Object o)
Navigator
Strictly speaking, prefix-to-URI translation should occur irrespective of any element in the document. This method is provided to allow a non-conforming ease-of-use enhancement.
translateNamespacePrefixToUri
in interface Navigator
translateNamespacePrefixToUri
in class DefaultNavigator
public XPath parseXPath(java.lang.String s) throws SAXPathException
Navigator
s
- the XPath expression
SAXPathException
- if an error occurs while parsing the
XPath expressionXPath
public java.util.Iterator getNamespaceAxisIterator(java.lang.Object o)
DefaultNavigator
UnsupportedAxisException
getNamespaceAxisIterator
in interface Navigator
getNamespaceAxisIterator
in class DefaultNavigator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |