A generic mechanism for accessing collections of name/value pairs. Examples of such collections are HashMap, Properties, ServletContext. In order to add support for a new such collection type to JXPath, perform the following two steps:
- Build an implementation of the DynamicPropertyHandler interface for the desired collection type.
- Invoke the static method {@link JXPathIntrospector#registerDynamicClass JXPathIntrospector.registerDynamicClass(class, handlerClass)}
JXPath allows access to dynamic properties using these three formats:
"myMap/myKey"
"myMap[@name = 'myKey']"
"myMap[name(.) = 'myKey']"
@author Dmitri Plotnikov
@version $Revision: 1.3 $ $Date: 2003/03/11 00:59:12 $