Top Description Interfaces Classes
[default module]

Package org.jdom2.xpath


Support for XPath from within JDOM. XPath provides a common interface with a pluggable back-end. The default back end is Jaxen.

The JDOM 1.x API uses the XPath class as the entire API interface. This has been deprecated, and replaced with XPathFactory, XPathCompiled, and XPathBuilder.

Please see the web page for the details on the JDOM2 XPath API change.

The XPathHelper class provides static methods to create XPath queries that identify specific JDOM nodes.

Interface Summary

Modifier and TypeInterface and Description
public interface
XPathDiagnostic<
The generic type of the results retruend by the expression.
T
>

Class representing the results of an XPath query allowing JDOM users to trace whether an item returned from an XPath query is subsequently filtered by the coercion filter attached to the XPathExpression;

public interface
XPathExpression<
The generic type of the results of the XPath query after being processed by the JDOM Filter<T>
T
>

XPathExpression is a representation of a compiled XPath query and any Namespace or variable references the query may require.

Class Summary

Modifier and TypeClass and Description
public abstract class
XPath

Deprecated Use XPathFactory/XPathExpression/XPathBuilder instead.
A utility class for performing XPath calls on JDOM nodes, with a factory interface for obtaining a first XPath instance.
public class
XPathBuilder<
The generic type of the returned results.
T
>

A helper class for creating XPathExpression instances without having to manage your own Namespace and Variable contexts.

public abstract class
XPathFactory

XPathFactory allows JDOM users to configure which XPath implementation to use when evaluating XPath expressions.

public class
XPathHelper

Provides a set of utility methods to generate XPath expressions to select a given node in a document.