Uses of Interface
org.kordamp.ezmorph.Morpher
-
Packages that use Morpher Package Description org.kordamp.ezmorph org.kordamp.ezmorph.array Morphers for arrays.org.kordamp.ezmorph.bean Morphers for JavaBeans and DynaBeans.org.kordamp.ezmorph.object Morphers for Object types.org.kordamp.ezmorph.primitive Morphers for primitive types. -
-
Uses of Morpher in org.kordamp.ezmorph
Subinterfaces of Morpher in org.kordamp.ezmorph Modifier and Type Interface Description interfaceObjectMorpherMarker interface for morphers that return an Object.Fields in org.kordamp.ezmorph with type parameters of type Morpher Modifier and Type Field Description private java.util.Map<java.lang.Class<?>,java.util.List<Morpher>>MorpherRegistry. morphersMethods in org.kordamp.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 org.kordamp.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 org.kordamp.ezmorph.array
Classes in org.kordamp.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 org.kordamp.ezmorph.array declared as Morpher Modifier and Type Field Description private MorpherObjectArrayMorpher. morpherMethods in org.kordamp.ezmorph.array with parameters of type Morpher Modifier and Type Method Description private voidObjectArrayMorpher. setMorpher(Morpher morpher)Constructors in org.kordamp.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 org.kordamp.ezmorph.bean
Classes in org.kordamp.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 org.kordamp.ezmorph.object
Classes in org.kordamp.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 org.kordamp.ezmorph.object declared as Morpher Modifier and Type Field Description private MorpherObjectListMorpher. morpherMethods in org.kordamp.ezmorph.object with parameters of type Morpher Modifier and Type Method Description private voidObjectListMorpher. setMorpher(Morpher morpher)Constructors in org.kordamp.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 org.kordamp.ezmorph.primitive
Classes in org.kordamp.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.
-