Uses of Interface
net.sf.ezmorph.Morpher
Packages that use Morpher
Package
Description
Morphers for arrays.
Morphers for JavaBeans and DynaBeans.
Morphers for Object types.
Morphers for primitive types.
-
Uses of Morpher in net.sf.ezmorph
Subinterfaces of Morpher in net.sf.ezmorphModifier and TypeInterfaceDescriptioninterfaceMarker interface for morphers that return an Object.Methods in net.sf.ezmorph that return MorpherModifier and TypeMethodDescriptionMorpherRegistry.getMorpherFor(Class clazz) Returns a morpher forclazz.
If several morphers are found for that class, it returns the first.Morpher[]MorpherRegistry.getMorphersFor(Class clazz) Returns all morphers forclazz.
If no Morphers are found it will return an array containing the IdentityObjectMorpher.Methods in net.sf.ezmorph with parameters of type MorpherModifier and TypeMethodDescriptionvoidMorpherRegistry.deregisterMorpher(Morpher morpher) Deregister the specified Morpher.
The registry will remove the targetClassfrom the morphers Map if it has no other registered morphers.voidMorpherRegistry.registerMorpher(Morpher morpher) Register a Morpher for a targetClass.
The target class is the class this Morpher morphs to.voidMorpherRegistry.registerMorpher(Morpher morpher, boolean override) Register a Morpher for a targetClass.
The target class is the class this Morpher morphs to. -
Uses of Morpher in net.sf.ezmorph.array
Classes in net.sf.ezmorph.array that implement MorpherModifier and TypeClassDescriptionclassBase class for array Morphers.final classMorphs an array to a boolean[].final classMorphs an array to a Boolean[].final classMorphs an array to a byte[].final classMorphs an array to a Character[].final classMorphs an array to a char[].final classMorphs an array to a double[].final classMorphs an array to a float[].final classMorphs an array to a int[].final classMorphs an array to a long[].final classMorphs an array to another array using a Morpher.final classMorphs an array to a short[].Fields in net.sf.ezmorph.array declared as MorpherMethods in net.sf.ezmorph.array with parameters of type MorpherConstructors in net.sf.ezmorph.array with parameters of type MorpherModifierConstructorDescriptionObjectArrayMorpher(Morpher morpher) Creates a new ArrayMorpher which will use another Morpher for its inner type.
The inner morpher can not morph to an array. -
Uses of Morpher in net.sf.ezmorph.bean
Classes in net.sf.ezmorph.bean that implement MorpherModifier and TypeClassDescriptionfinal classConverts a JavaBean into another JavaBean or DynaBean.
This Morpher will try to match every property from the target JavaBean's class to the properties of the source JavaBean. -
Uses of Morpher in net.sf.ezmorph.object
Classes in net.sf.ezmorph.object that implement MorpherModifier and TypeClassDescriptionclassBase class for ObjectMorpher implementations.final classMorphs to a BigDecimal.final classMorphs to a BigInteger.final classMorphs to a Boolean.final classMorphs to a Character.final classMorphs to a Class.
This morpher is a singleton.final classMorphs a String to a Date.final classMorpher that performs no conversion.
This morpher is a singleton.classMorphs a Map into a Date.
The Map should have at least one of the following keys [yer,month,day,hour,minutes,seconds,milliseconds] and the values should be instances of Number.final classMorphs to a subclass of Number.
Supported types are - Byte, Short, Integer, Long, Float, BigInteger, BigtDecimal.final classMorphs a List to another List using a Morpher.final classMorphs to a String.
This morpher is a singleton.classAn all-purpose Morpher that can morph to several classes.
Because this Morpher accepts any class and morphs to Object it should not be added to a MorpherRegistry as it may be too generic for some cases and may result in unwanted transformations.Fields in net.sf.ezmorph.object declared as MorpherMethods in net.sf.ezmorph.object with parameters of type MorpherConstructors in net.sf.ezmorph.object with parameters of type MorpherModifierConstructorDescriptionObjectListMorpher(Morpher morpher) Creates a new ArrayMorpher which will use another Morpher for its inner type.
The inner morpher can not morph to an array.ObjectListMorpher(Morpher morpher, Object defaultValue) -
Uses of Morpher in net.sf.ezmorph.primitive
Classes in net.sf.ezmorph.primitive that implement MorpherModifier and TypeClassDescriptionclassBase class for primitive decimal conversion.classBase class por primitive integer conversion.classBase class for primitive value conversion.final classMorphs to a boolean.final classMorphs to a byte.final classMorphs to a char.final classMorphs to a double.final classMoprhs to a float.final classMorphs to an int.final classMorphs to a long.final classMorphs to a short.