|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.common.BeanUtils
This class contains some utility methods that fills an object with values from another object.
Constructor Summary | |
BeanUtils()
|
Method Summary | |
static Object |
populate(Object source,
Object destination)
Get the values returned by the get methods of the source object and call the set method of the destination object for the same property. |
static Object |
populate(Object source,
Object destination,
Properties propertiesMapping)
Get the values returned by the get methods of the source object and call the set method of the destination object for the same property. |
static Object |
xmlToObject(Element element,
Object result)
Fills the result object with of the content of the XML element object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BeanUtils()
Method Detail |
public static Object populate(Object source, Object destination)
source
- the source object to get the values from. Cannot be null
.destination
- the destination object to put the values in. Cannot be null
.
null
.public static Object populate(Object source, Object destination, Properties propertiesMapping)
source
- the source object to get the values from. Cannot be null
.destination
- the destination object to put the values in. Cannot be null
.propertiesMapping
- the mapping between properties which does not have the same name.
null
.public static Object xmlToObject(Element element, Object result)
element
- the XML element object, cannot be null
.result
- the object to put the values in, cannot be null
.
null
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |