org.jaxen.jdom
public class DocumentNavigator extends DefaultNavigator implements NamedAccessNavigator
This class is not intended for direct usage, but is used by the Jaxen engine during evaluation.
Nested Class Summary | |
---|---|
static class | DocumentNavigator.Singleton Singleton implementation. |
Field Summary | |
---|---|
static long | serialVersionUID |
Method Summary | |
---|---|
Iterator | getAttributeAxisIterator(Object contextNode) |
Iterator | getAttributeAxisIterator(Object contextNode, String localName, String namespacePrefix, String namespaceURI)
Retrieves an Iterator over the attribute elements that
match the supplied name.
|
String | getAttributeName(Object obj) |
String | getAttributeNamespaceUri(Object obj) |
String | getAttributeQName(Object obj) |
String | getAttributeStringValue(Object obj) |
Iterator | getChildAxisIterator(Object contextNode) |
Iterator | getChildAxisIterator(Object contextNode, String localName, String namespacePrefix, String namespaceURI)
Retrieves an Iterator over the child elements that
match the supplied local name and namespace URI.
|
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 Navigator | 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 JDOM documents. |
String | translateNamespacePrefixToUri(String prefix, Object context) |
Iterator
over the attribute elements that
match the supplied name.
Parameters: contextNode the origin context node localName the local name of the attributes to return, always present namespacePrefix the prefix of the namespace of the attributes to return namespaceURI the URI of the namespace of the attributes to return
Returns: an Iterator that traverses the named attributes, not null
Iterator
over the child elements that
match the supplied local name and namespace URI.
Parameters: contextNode the origin context node localName the local name of the children to return, always present namespacePrefix ignored; prefixes are not used when matching in XPath namespaceURI the URI of the namespace of the children to return
Returns: an Iterator that traverses the named children, or null if none