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 interface
ObjectMorpher
Marker interface for morphers that return an Object.Methods in net.sf.ezmorph that return Morpher Modifier and Type Method Description Morpher
MorpherRegistry. 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 void
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 Morpher Modifier and Type Class Description class
AbstractArrayMorpher
Base class for array Morphers.class
BooleanArrayMorpher
Morphs an array to a boolean[].class
BooleanObjectArrayMorpher
Morphs an array to a Boolean[].class
ByteArrayMorpher
Morphs an array to a byte[].class
CharacterObjectArrayMorpher
Morphs an array to a Character[].class
CharArrayMorpher
Morphs an array to a char[].class
DoubleArrayMorpher
Morphs an array to a double[].class
FloatArrayMorpher
Morphs an array to a float[].class
IntArrayMorpher
Morphs an array to a int[].class
LongArrayMorpher
Morphs an array to a long[].class
ObjectArrayMorpher
Morphs an array to another array using a Morpher.class
ShortArrayMorpher
Morphs an array to a short[].Fields in net.sf.ezmorph.array declared as Morpher Modifier and Type Field Description private Morpher
ObjectArrayMorpher. morpher
Methods in net.sf.ezmorph.array with parameters of type Morpher Modifier and Type Method Description private void
ObjectArrayMorpher. 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 class
BeanMorpher
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 Morpher Modifier and Type Class Description class
AbstractObjectMorpher
Base class for ObjectMorpher implementations.class
BigDecimalMorpher
Morphs to a BigDecimal.class
BigIntegerMorpher
Morphs to a BigInteger.class
BooleanObjectMorpher
Morphs to a Boolean.class
CharacterObjectMorpher
Morphs to a Character.class
ClassMorpher
Morphs to a Class.
This morpher is a singleton.class
DateMorpher
Morphs a String to a Date.class
IdentityObjectMorpher
Morpher that performs no conversion.
This morpher is a singleton.class
MapToDateMorpher
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.class
NumberMorpher
Morphs to a subclass of Number.
Supported types are - Byte, Short, Integer, Long, Float, BigInteger, BigtDecimal.class
ObjectListMorpher
Morphs a List to another List using a Morpher.class
StringMorpher
Morphs to a String.
This morpher is a singleton.class
SwitchingMorpher
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 Morpher Modifier and Type Field Description private Morpher
ObjectListMorpher. morpher
Methods in net.sf.ezmorph.object with parameters of type Morpher Modifier and Type Method Description private void
ObjectListMorpher. 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 class
AbstractDecimalMorpher
Base class for primitive decimal conversion.class
AbstractIntegerMorpher
Base class por primitive integer conversion.class
AbstractPrimitiveMorpher
Base class for primitive value conversion.class
BooleanMorpher
Morphs to a boolean.class
ByteMorpher
Morphs to a byte.class
CharMorpher
Morphs to a char.class
DoubleMorpher
Morphs to a double.class
FloatMorpher
Moprhs to a float.class
IntMorpher
Morphs to an int.class
LongMorpher
Morphs to a long.class
ShortMorpher
Morphs to a short.
-