|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
java.lang.Object |
getProperty(java.lang.Object object,
java.lang.String propertyName)
Returns the value of the specified dynamic property. |
java.lang.String[] |
getPropertyNames(java.lang.Object object)
Returns a list of dynamic property names for the supplied object. |
void |
setProperty(java.lang.Object object,
java.lang.String propertyName,
java.lang.Object value)
Modifies the value of the specified dynamic property. |
Method Detail |
public java.lang.String[] getPropertyNames(java.lang.Object object)
public java.lang.Object getProperty(java.lang.Object object, java.lang.String propertyName)
public void setProperty(java.lang.Object object, java.lang.String propertyName, java.lang.Object value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |