Interface ElementObjectPropertyValue
- All Known Implementing Classes:
DefaultElementObjectPropertyValue
public interface ElementObjectPropertyValue
Interface for doing refection for get/set the property values of any java object.
- Version:
- 1.0 Aug 20, 2005
- Author:
- Willem Cazander
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(Object object, String propertyName) Get the value of a properterie of a bean,void
setProperty
(Object object, String propertyName, Object value) Sets an bean property of the object.void
setPropertyMap
(Object object, Map<String, Object> propertyMap) Sets all bean properties.
-
Method Details
-
setProperty
void setProperty(Object object, String propertyName, Object value) throws ElementObjectPropertyValueException Sets an bean property of the object.- Parameters:
object
-propertyName
-value
-- Throws:
ElementObjectPropertyValueException
-
getProperty
Get the value of a properterie of a bean,- Parameters:
object
- The object to get the properties frompropertyName
- The name of the property to get.- Returns:
- Returns the value of the property.
- Throws:
ElementObjectPropertyValueException
-
setPropertyMap
void setPropertyMap(Object object, Map<String, Object> propertyMap) throws ElementObjectPropertyValueExceptionSets all bean properties.- Parameters:
object
- To object to set all the properties to.propertyMap
- A Map with the keys as properties names and the valua as value to set.- Throws:
ElementObjectPropertyValueException
-