Uses of Interface
net.sf.ezmorph.Morpher
-
Packages that use Morpher Package Description net.sf.ezmorph net.sf.ezmorph.array Morphers for arrays.net.sf.ezmorph.bean Morphers for JavaBeans and DynaBeans.net.sf.ezmorph.object Morphers for Object types.net.sf.ezmorph.primitive Morphers for primitive types. -
-
Uses of Morpher in net.sf.ezmorph
Subinterfaces of Morpher in net.sf.ezmorph Modifier and Type Interface Description interfaceObjectMorpherMarker interface for morphers that return an Object.Methods in net.sf.ezmorph that return Morpher Modifier and Type Method Description MorpherMorpherRegistry. getMorpherFor(java.lang.Class clazz)Returns a morpher forclazz.
If several morphers are found for that class, it returns the first.Morpher[]MorpherRegistry. getMorphersFor(java.lang.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 Morpher Modifier and Type Method Description voidMorpherRegistry. 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 Morpher Modifier and Type Class Description classAbstractArrayMorpherBase class for array Morphers.classBooleanArrayMorpherMorphs an array to a boolean[].classBooleanObjectArrayMorpherMorphs an array to a Boolean[].classByteArrayMorpherMorphs an array to a byte[].classCharacterObjectArrayMorpherMorphs an array to a Character[].classCharArrayMorpherMorphs an array to a char[].classDoubleArrayMorpherMorphs an array to a double[].classFloatArrayMorpherMorphs an array to a float[].classIntArrayMorpherMorphs an array to a int[].classLongArrayMorpherMorphs an array to a long[].classObjectArrayMorpherMorphs an array to another array using a Morpher.classShortArrayMorpherMorphs an array to a short[].Fields in net.sf.ezmorph.array declared as Morpher Modifier and Type Field Description private MorpherObjectArrayMorpher. morpherMethods in net.sf.ezmorph.array with parameters of type Morpher Modifier and Type Method Description private voidObjectArrayMorpher. setMorpher(Morpher morpher)Constructors in net.sf.ezmorph.array with parameters of type Morpher Constructor Description ObjectArrayMorpher(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 Morpher Modifier and Type Class Description classBeanMorpherConverts 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 Morpher Modifier and Type Class Description classAbstractObjectMorpherBase class for ObjectMorpher implementations.classBigDecimalMorpherMorphs to a BigDecimal.classBigIntegerMorpherMorphs to a BigInteger.classBooleanObjectMorpherMorphs to a Boolean.classCharacterObjectMorpherMorphs to a Character.classClassMorpherMorphs to a Class.
This morpher is a singleton.classDateMorpherMorphs a String to a Date.classIdentityObjectMorpherMorpher that performs no conversion.
This morpher is a singleton.classMapToDateMorpherMorphs 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.classNumberMorpherMorphs to a subclass of Number.
Supported types are - Byte, Short, Integer, Long, Float, BigInteger, BigtDecimal.classObjectListMorpherMorphs a List to another List using a Morpher.classStringMorpherMorphs to a String.
This morpher is a singleton.classSwitchingMorpherAn 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 Morpher Modifier and Type Field Description private MorpherObjectListMorpher. morpherMethods in net.sf.ezmorph.object with parameters of type Morpher Modifier and Type Method Description private voidObjectListMorpher. setMorpher(Morpher morpher)Constructors in net.sf.ezmorph.object with parameters of type Morpher Constructor Description ObjectListMorpher(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, java.lang.Object defaultValue) -
Uses of Morpher in net.sf.ezmorph.primitive
Classes in net.sf.ezmorph.primitive that implement Morpher Modifier and Type Class Description classAbstractDecimalMorpherBase class for primitive decimal conversion.classAbstractIntegerMorpherBase class por primitive integer conversion.classAbstractPrimitiveMorpherBase class for primitive value conversion.classBooleanMorpherMorphs to a boolean.classByteMorpherMorphs to a byte.classCharMorpherMorphs to a char.classDoubleMorpherMorphs to a double.classFloatMorpherMoprhs to a float.classIntMorpherMorphs to an int.classLongMorpherMorphs to a long.classShortMorpherMorphs to a short.
-