org.apache.commons.jxpath

Class MapDynamicPropertyHandler

Implemented Interfaces:
DynamicPropertyHandler

public class MapDynamicPropertyHandler
extends java.lang.Object
implements DynamicPropertyHandler

Implements the DynamicPropertyHandler interface for java.util.Map.
Version:
$Revision: 1.7 $ $Date: 2004/03/02 01:03:14 $
Author:
Dmitri Plotnikov

Method Summary

Object
getProperty(Object object, String propertyName)
Returns the value for the specified key.
String[]
getPropertyNames(Object object)
Returns string representations of all keys in the map.
void
setProperty(Object object, String propertyName, Object value)
Sets the specified key value.

Method Details

getProperty

public Object getProperty(Object object,
                          String propertyName)
Returns the value for the specified key.
Specified by:
getProperty in interface DynamicPropertyHandler

getPropertyNames

public String[] getPropertyNames(Object object)
Returns string representations of all keys in the map.
Specified by:
getPropertyNames in interface DynamicPropertyHandler

setProperty

public void setProperty(Object object,
                        String propertyName,
                        Object value)
Sets the specified key value.
Specified by:
setProperty in interface DynamicPropertyHandler