Class DefaultElementObjectPropertyValue
java.lang.Object
org.x4o.xml.element.DefaultElementObjectPropertyValue
- All Implemented Interfaces:
Serializable
,ElementObjectPropertyValue
public class DefaultElementObjectPropertyValue
extends Object
implements ElementObjectPropertyValue, Serializable
An DefaultElementObjectPropertyValue which does does get/set operations on pojo beans.
- Version:
- 1.0 Feb 16, 2007
- Author:
- Willem Cazander
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(Object object, String parameterName) Gets the property of an bean.void
setProperty
(Object object, String parameterName, Object parameter) TODO: this function is not completed !!void
setPropertyMap
(Object object, Map<String, Object> attributes) Sets all bean properties.
-
Constructor Details
-
DefaultElementObjectPropertyValue
public DefaultElementObjectPropertyValue()
-
-
Method Details
-
setProperty
public void setProperty(Object object, String parameterName, Object parameter) throws ElementObjectPropertyValueException TODO: this function is not completed !!- Specified by:
setProperty
in interfaceElementObjectPropertyValue
- Parameters:
object
-parameterName
-parameter
-- Throws:
ElementObjectPropertyValueException
-
getProperty
public Object getProperty(Object object, String parameterName) throws ElementObjectPropertyValueException Gets the property of an bean.- Specified by:
getProperty
in interfaceElementObjectPropertyValue
- Parameters:
object
- The object to get from.parameterName
- The parameter name of the property to get.- Returns:
- Returns the value of the property.
- Throws:
ElementObjectPropertyValueException
-
setPropertyMap
public void setPropertyMap(Object object, Map<String, Object> attributes) throws ElementObjectPropertyValueExceptionDescription copied from interface:ElementObjectPropertyValue
Sets all bean properties.- Specified by:
setPropertyMap
in interfaceElementObjectPropertyValue
- Parameters:
object
- To object to set all the properties to.attributes
- A Map with the keys as properties names and the valua as value to set.- Throws:
ElementObjectPropertyValueException
- See Also:
-