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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ObjectMorpher
Marker interface for morphers that return an Object.
|
Modifier and Type | Method and Description |
---|---|
Morpher |
MorpherRegistry.getMorpherFor(Class clazz)
Returns a morpher for
clazz .If several morphers are found for that class, it returns the first. |
Morpher[] |
MorpherRegistry.getMorphersFor(Class clazz)
Returns all morphers for
clazz .If no Morphers are found it will return an array containing the IdentityObjectMorpher. |
Modifier and Type | Method and Description |
---|---|
void |
MorpherRegistry.deregisterMorpher(Morpher morpher)
Deregister the specified Morpher.
The registry will remove the target Class from the morphers
Map if it has no other registered morphers. |
void |
MorpherRegistry.registerMorpher(Morpher morpher)
Register a Morpher for a target
Class .The target class is the class this Morpher morphs to. |
void |
MorpherRegistry.registerMorpher(Morpher morpher,
boolean override)
Register a Morpher for a target
Class .The target class is the class this Morpher morphs to. |
Modifier and Type | Class and 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[].
|
Constructor and 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. |
Modifier and Type | Class and 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. |
Modifier and Type | Class and 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. |
Constructor and 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,
Object defaultValue) |
Modifier and Type | Class and 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.
|
Copyright © 2006–2021. All rights reserved.