org.apache.commons.jxpath
Class MapDynamicPropertyHandler
java.lang.Object
org.apache.commons.jxpath.MapDynamicPropertyHandler
- All 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
Field Summary |
private static java.lang.String[] |
STRING_ARRAY
|
Method Summary |
java.lang.Object |
getProperty(java.lang.Object object,
java.lang.String propertyName)
Returns the value for the specified key. |
java.lang.String[] |
getPropertyNames(java.lang.Object object)
Returns string representations of all keys in the map. |
void |
setProperty(java.lang.Object object,
java.lang.String propertyName,
java.lang.Object value)
Sets the specified key value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STRING_ARRAY
private static final java.lang.String[] STRING_ARRAY
MapDynamicPropertyHandler
public MapDynamicPropertyHandler()
getPropertyNames
public java.lang.String[] getPropertyNames(java.lang.Object object)
- Returns string representations of all keys in the map.
- Specified by:
getPropertyNames
in interface DynamicPropertyHandler
getProperty
public java.lang.Object getProperty(java.lang.Object object,
java.lang.String propertyName)
- Returns the value for the specified key.
- Specified by:
getProperty
in interface DynamicPropertyHandler
setProperty
public void setProperty(java.lang.Object object,
java.lang.String propertyName,
java.lang.Object value)
- Sets the specified key value.
- Specified by:
setProperty
in interface DynamicPropertyHandler