|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DynamicPropertyHandler
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:
JXPathIntrospector.registerDynamicClass(class, handlerClass)
"myMap/myKey"
"myMap[@name = 'myKey']"
"myMap[name(.) = 'myKey']"
Method Summary | |
---|---|
Object |
getProperty(Object object,
String propertyName)
Returns the value of the specified dynamic property. |
String[] |
getPropertyNames(Object object)
Returns a list of dynamic property names for the supplied object. |
void |
setProperty(Object object,
String propertyName,
Object value)
Modifies the value of the specified dynamic property. |
Method Detail |
---|
String[] getPropertyNames(Object object)
object
- to inspect
Object getProperty(Object object, String propertyName)
object
- to searchpropertyName
- to retrieve
void setProperty(Object object, String propertyName, Object value)
object
- to modifypropertyName
- to modifyvalue
- to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |