net.sf.json.util
Class DynaBeanToBeanMorpher
java.lang.Object
net.sf.json.util.DynaBeanToBeanMorpher
- All Implemented Interfaces:
- net.sf.ezmorph.Morpher, net.sf.ezmorph.ObjectMorpher
public class DynaBeanToBeanMorpher
- extends java.lang.Object
- implements net.sf.ezmorph.ObjectMorpher
Converts a DynaBean into an specific bean.
This Morpher will try to match every property from the target bean's class to
the properties of the source DynaBean. If a bean property and the dyna
property differ in type, it will try to morph it. If a Morpher is not found
for that type, the conversion will be aborted with a MorphException.
- Author:
- Andres Almiray
|
Constructor Summary |
DynaBeanToBeanMorpher(java.lang.Class beanClass,
net.sf.ezmorph.MorpherRegistry morpherRegistry)
|
|
Method Summary |
java.lang.Object |
morph(java.lang.Object value)
|
java.lang.Class |
morphsTo()
|
boolean |
supports(java.lang.Class clazz)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynaBeanToBeanMorpher
public DynaBeanToBeanMorpher(java.lang.Class beanClass,
net.sf.ezmorph.MorpherRegistry morpherRegistry)
morph
public java.lang.Object morph(java.lang.Object value)
- Specified by:
morph in interface net.sf.ezmorph.ObjectMorpher
morphsTo
public java.lang.Class morphsTo()
- Specified by:
morphsTo in interface net.sf.ezmorph.Morpher
supports
public boolean supports(java.lang.Class clazz)
- Specified by:
supports in interface net.sf.ezmorph.Morpher
Copyright © 2006 null. All Rights Reserved.