| org.apache.commons.jxpath.DynamicPropertyHandler
All known Subclasses: org.apache.commons.jxpath.MapDynamicPropertyHandler, org.apache.commons.jxpath.servlet.PageScopeContextHandler, org.apache.commons.jxpath.servlet.PageContextHandler, org.apache.commons.jxpath.servlet.ServletContextHandler,
DynamicPropertyHandler | public interface DynamicPropertyHandler (Code) | | 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
JXPathIntrospector.registerDynamicClassJXPathIntrospector.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.5 $ $Date: 2004/02/29 14:17:42 $ |
getProperty | Object getProperty(Object object, String propertyName)(Code) | | Returns the value of the specified dynamic property.
|
getPropertyNames | String[] getPropertyNames(Object object)(Code) | | Returns a list of dynamic property names for the supplied object.
|
setProperty | void setProperty(Object object, String propertyName, Object value)(Code) | | Modifies the value of the specified dynamic property.
|
|
|