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.voidsetProperty(Object object, String parameterName, Object parameter) TODO: this function is not completed !!voidsetPropertyMap(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:
setPropertyin 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:
getPropertyin 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:ElementObjectPropertyValueSets all bean properties.- Specified by:
setPropertyMapin 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:
-