Common classes that can be used across different XPath API implementations.
Package Specification
Package provides set of common classes that can be shared and reused across different XPath
implementations.
It implements several interfaces from XPath API definition ({@link org.xdv.xpath}).
Specific XPath implementations may use them directly or simply extend them.
Example
A good example of how to use those classes is implementation built on the top of
Jaxen (see {@link org.xdv.xpath.jaxen}).
Jaxen maps XPath types to simple Java types, so the implementation uses directly classes listed
bellow to wrap XPath values.
- {@link org.xdv.xpath.common.BaseXPathValueBoolean}
- {@link org.xdv.xpath.common.BaseXPathValueNumber}
- {@link org.xdv.xpath.common.BaseXPathValueString}
- {@link org.xdv.xpath.common.DOMXPathValueNode}
Similar approach has been applied to implementation of {@link org.xdv.xpath.XPathVariableMap}.
To made an implemenation for Jaxen, implementer simply extended
{@link org.xdv.xpath.common.BaseXPathVariableMap} by one specific methods required for Jaxen
(see {@link org.xdv.xpath.jaxen.JaxenXPathVariableMap}).
Related Documentation
For overviews please see:
- {@link org.xdv.xpath.jaxen} - a model XPath API implementation that uses those common classes
- General info - general information about
this documentation, global assumptions, etc.