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.
- Build an implementation of the DynamicPropertyHandler interface
for the desired collection type.
- Invoke the static method JXPathIntrospector.registerDynamicClass(class, handlerClass)
JXPath allows access to dynamic properties using these three formats:"myMap/myKey""myMap[@name = 'myKey']""myMap[name(.) = 'myKey']"