Package org.apache.commons.jxpath
Class MapDynamicPropertyHandler
java.lang.Object
org.apache.commons.jxpath.MapDynamicPropertyHandler
- All Implemented Interfaces:
DynamicPropertyHandler
Implements the DynamicPropertyHandler interface for
Map
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(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.
-
Constructor Details
-
MapDynamicPropertyHandler
public MapDynamicPropertyHandler()Constructs a new instance.
-
-
Method Details
-
getProperty
Description copied from interface:DynamicPropertyHandler
Returns the value of the specified dynamic property.- Specified by:
getProperty
in interfaceDynamicPropertyHandler
- Parameters:
object
- to searchpropertyName
- to retrieve- Returns:
- Object
-
getPropertyNames
Description copied from interface:DynamicPropertyHandler
Returns a list of dynamic property names for the supplied object.- Specified by:
getPropertyNames
in interfaceDynamicPropertyHandler
- Parameters:
object
- to inspect- Returns:
- String[]
-
setProperty
Description copied from interface:DynamicPropertyHandler
Modifies the value of the specified dynamic property.- Specified by:
setProperty
in interfaceDynamicPropertyHandler
- Parameters:
object
- to modifypropertyName
- to modifyvalue
- to set
-