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 TypeInterfaceDescriptioninterface
Marker 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 TypeMethodDescriptionvoid
MorpherRegistry.deregisterMorpher
(Morpher morpher) Deregister the specified Morpher.
The registry will remove the targetClass
from the morphers Map if it has no other registered morphers.void
MorpherRegistry.registerMorpher
(Morpher morpher) Register a Morpher for a targetClass
.
The target class is the class this Morpher morphs to.void
MorpherRegistry.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 TypeClassDescriptionclass
Base class for array Morphers.final class
Morphs an array to a boolean[].final class
Morphs an array to a Boolean[].final class
Morphs an array to a byte[].final class
Morphs an array to a Character[].final class
Morphs an array to a char[].final class
Morphs an array to a double[].final class
Morphs an array to a float[].final class
Morphs an array to a int[].final class
Morphs an array to a long[].final class
Morphs an array to another array using a Morpher.final class
Morphs 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 class
Converts 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 TypeClassDescriptionclass
Base class for ObjectMorpher implementations.final class
Morphs to a BigDecimal.final class
Morphs to a BigInteger.final class
Morphs to a Boolean.final class
Morphs to a Character.final class
Morphs to a Class.
This morpher is a singleton.final class
Morphs a String to a Date.final class
Morpher that performs no conversion.
This morpher is a singleton.class
Morphs 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 class
Morphs to a subclass of Number.
Supported types are - Byte, Short, Integer, Long, Float, BigInteger, BigtDecimal.final class
Morphs a List to another List using a Morpher.final class
Morphs to a String.
This morpher is a singleton.class
An 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 TypeClassDescriptionclass
Base class for primitive decimal conversion.class
Base class por primitive integer conversion.class
Base class for primitive value conversion.final class
Morphs to a boolean.final class
Morphs to a byte.final class
Morphs to a char.final class
Morphs to a double.final class
Moprhs to a float.final class
Morphs to an int.final class
Morphs to a long.final class
Morphs to a short.