This is a rough rendering of a page from the old Prevayler wiki. Please see the new wiki for current documentation.
The org.apache.commons.jxpath package defines a simple interpreter of an expression language called XPath
expressions to graphs of objects of all kinds: JavaBeans
, Maps, Servlet contexts, DOM etc, including mixtures thereof.
Consider this example:
Address address = (Address)JXPathContext.newContext(vendor).
expression is equvalent to the following Java code:
Address address = null;
Collection locations = vendor.getLocations();
Iterator it = locations.iterator();
Location location = (Location)it.next();
String zipCode = location.getAddress().getZipCode();
address = location.getAddress();
was standardized by W3C and is used in both XSLT and XPointer.