public class DocumentNavigator extends DefaultNavigator
This class is not intended for direct usage, but is used by the Jaxen engine during evaluation.
| コンストラクタと説明 |
|---|
DocumentNavigator() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Iterator |
getAttributeAxisIterator(Object o)
Throws
UnsupportedAxisException. |
String |
getAttributeName(Object o)
Retrieve the local name of the given attribute node.
|
String |
getAttributeNamespaceUri(Object o)
Retrieve the namespace URI of the given attribute node.
|
String |
getAttributeQName(Object o)
Retrieve the qualified name of the given attribute node.
|
String |
getAttributeStringValue(Object o)
Retrieve the string-value of an attribute node.
|
Iterator |
getChildAxisIterator(Object o)
Throws
UnsupportedAxisException |
String |
getCommentStringValue(Object o)
Retrieve the string-value of a comment node.
|
Object |
getDocument(String s)
Default implementation that always returns null.
|
Object |
getDocumentNode(Object o)
Returns the document node that contains the given context node.
|
String |
getElementName(Object o)
Retrieve the local name of the given element node.
|
String |
getElementNamespaceUri(Object o)
Retrieve the namespace URI of the given element node.
|
String |
getElementQName(Object o)
Retrieve the qualified name of the given element node.
|
String |
getElementStringValue(Object o)
Retrieve the string-value of an element node.
|
Iterator |
getNamespaceAxisIterator(Object o)
Throws
UnsupportedAxisException. |
String |
getNamespacePrefix(Object o)
Retrieve the namespace prefix of a namespace node.
|
String |
getNamespaceStringValue(Object o)
Retrieve the string-value of a namespace node.
|
Iterator |
getParentAxisIterator(Object o)
Throws
UnsupportedAxisException |
Object |
getParentNode(Object o)
Default inefficient implementation.
|
Iterator |
getPrecedingAxisIterator(Object o)
Retrieve an
Iterator matching the preceding XPath axis. |
Iterator |
getPrecedingSiblingAxisIterator(Object o)
Retrieve an
Iterator matching the
preceding-sibling XPath axis. |
String |
getProcessingInstructionData(Object o)
Retrieve the data of a processing-instruction.
|
String |
getProcessingInstructionTarget(Object o)
Retrieve the target of a processing-instruction.
|
String |
getTextStringValue(Object o)
Retrieve the string-value of a text node.
|
boolean |
isAttribute(Object o)
Returns whether the given object is an attribute node.
|
boolean |
isComment(Object o)
Returns whether the given object is a comment node.
|
boolean |
isDocument(Object o)
Returns whether the given object is a document node.
|
boolean |
isElement(Object o)
Returns whether the given object is an element node.
|
boolean |
isNamespace(Object o)
Returns whether the given object is a namespace node.
|
boolean |
isProcessingInstruction(Object o)
Returns whether the given object is a processing-instruction node.
|
boolean |
isText(Object o)
Returns whether the given object is a text node.
|
XPath |
parseXPath(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.
|
String |
translateNamespacePrefixToUri(String s,
Object o)
Translate a namespace prefix to a namespace URI, possibly
considering a particular element node.
|
public boolean isAttribute(Object o)
Navigatoro - the object to testtrue if the object is an attribute node,
else falsepublic boolean isComment(Object o)
Navigatoro - the object to testtrue if the object is a comment node,
else falsepublic boolean isDocument(Object o)
Navigator/.o - the object to testtrue if the object is a document node,
else falsepublic boolean isElement(Object o)
Navigatoro - the object to testtrue if the object is an element node,
else falsepublic boolean isNamespace(Object o)
Navigatoro - the object to testtrue if the object is a namespace node,
else falsepublic boolean isProcessingInstruction(Object o)
Navigatoro - the object to testtrue if the object is a processing-instruction node,
else falsepublic boolean isText(Object o)
Navigatoro - the object to testtrue if the object is a text node,
else falsepublic String getAttributeName(Object o)
Navigatoro - the context attribute nodepublic String getAttributeNamespaceUri(Object o)
Navigatoro - the context attribute nodepublic String getAttributeQName(Object o)
Navigatoro - the context attribute nodepublic String getAttributeStringValue(Object o)
Navigatoro - the attribute nodepublic String getCommentStringValue(Object o)
Navigatoro - the comment nodepublic String getElementName(Object o)
Navigatoro - the context element nodepublic String getElementNamespaceUri(Object o)
Navigatoro - the context element nodepublic String getElementQName(Object o)
Navigatoro - the context element nodepublic String getElementStringValue(Object o)
Navigatoro - the comment node.public String getNamespacePrefix(Object o)
Navigatoro - the namespace nodepublic String getNamespaceStringValue(Object o)
Navigatoro - the namespace nodepublic String getTextStringValue(Object o)
Navigatoro - the text nodepublic Object getDocument(String s) throws FunctionCallException
DefaultNavigatorgetDocument インタフェース内 NavigatorgetDocument クラス内 DefaultNavigators - the URL of the document to loadFunctionCallException - if an error occurs while loading the
URL; e.g. an I/O error or the document is malformedpublic Object getDocumentNode(Object o)
NavigatorgetDocumentNode インタフェース内 NavigatorgetDocumentNode クラス内 DefaultNavigatoro - the context nodeNavigator.isDocument(Object)public Iterator getAttributeAxisIterator(Object o)
DefaultNavigatorUnsupportedAxisException. Subclasses that
support the attribute axis must override this method.getAttributeAxisIterator インタフェース内 NavigatorgetAttributeAxisIterator クラス内 DefaultNavigatoro - the original context nodepublic Iterator getChildAxisIterator(Object o)
DefaultNavigatorUnsupportedAxisExceptiongetChildAxisIterator インタフェース内 NavigatorgetChildAxisIterator クラス内 DefaultNavigatoro - the original context nodepublic Iterator getParentAxisIterator(Object o)
DefaultNavigatorUnsupportedAxisExceptiongetParentAxisIterator インタフェース内 NavigatorgetParentAxisIterator クラス内 DefaultNavigatoro - the original context nodepublic Object getParentNode(Object o)
DefaultNavigatorgetParentNode インタフェース内 NavigatorgetParentNode クラス内 DefaultNavigatoro - the node whose parent to returnNavigator.isDocument(java.lang.Object),
Navigator.isElement(java.lang.Object)public Iterator getPrecedingAxisIterator(Object o) throws UnsupportedAxisException
NavigatorIterator matching the preceding XPath axis.getPrecedingAxisIterator インタフェース内 NavigatorgetPrecedingAxisIterator クラス内 DefaultNavigatoro - the original context nodeUnsupportedAxisException - if the semantics of the preceding axis are
not supported by this object modelpublic Iterator getPrecedingSiblingAxisIterator(Object o) throws UnsupportedAxisException
NavigatorIterator matching the
preceding-sibling XPath axis.getPrecedingSiblingAxisIterator インタフェース内 NavigatorgetPrecedingSiblingAxisIterator クラス内 DefaultNavigatoro - the original context nodeUnsupportedAxisException - if the semantics of the preceding-sibling axis are
not supported by this object modelpublic String getProcessingInstructionData(Object o)
NavigatorgetProcessingInstructionData インタフェース内 NavigatorgetProcessingInstructionData クラス内 DefaultNavigatoro - the context processing-instruction nodepublic String getProcessingInstructionTarget(Object o)
NavigatorgetProcessingInstructionTarget インタフェース内 NavigatorgetProcessingInstructionTarget クラス内 DefaultNavigatoro - the context processing-instruction nodepublic String translateNamespacePrefixToUri(String s, Object o)
NavigatorStrictly 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 インタフェース内 NavigatortranslateNamespacePrefixToUri クラス内 DefaultNavigators - the prefix to translateo - the element to consider during translationNamespaceContextpublic XPath parseXPath(String s) throws SAXPathException
Navigators - the XPath expressionSAXPathException - if the string is not a syntactically
correct XPath expressionXPathpublic Iterator getNamespaceAxisIterator(Object o)
DefaultNavigatorUnsupportedAxisException. Subclasses that
support the namespace axis must override this method.getNamespaceAxisIterator インタフェース内 NavigatorgetNamespaceAxisIterator クラス内 DefaultNavigatoro - the original context nodeCopyright © 2001-2013 Codehaus. All Rights Reserved.