Package net.sf.ezmorph
Interface Morpher
-
- All Known Subinterfaces:
ObjectMorpher
- All Known Implementing Classes:
AbstractArrayMorpher,AbstractDecimalMorpher,AbstractIntegerMorpher,AbstractObjectMorpher,AbstractPrimitiveMorpher,BeanMorpher,BigDecimalMorpher,BigIntegerMorpher,BooleanArrayMorpher,BooleanMorpher,BooleanObjectArrayMorpher,BooleanObjectMorpher,ByteArrayMorpher,ByteMorpher,CharacterObjectArrayMorpher,CharacterObjectMorpher,CharArrayMorpher,CharMorpher,ClassMorpher,DateMorpher,DoubleArrayMorpher,DoubleMorpher,FloatArrayMorpher,FloatMorpher,IdentityObjectMorpher,IntArrayMorpher,IntMorpher,LongArrayMorpher,LongMorpher,MapToDateMorpher,NumberMorpher,ObjectArrayMorpher,ObjectListMorpher,ShortArrayMorpher,ShortMorpher,StringMorpher,SwitchingMorpher
public interface MorpherMarker interface for morphers.
All implementations must have amorph( Object value )method that returns the appropiate morphed value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ClassmorphsTo()Returns the target Class for conversion.booleansupports(java.lang.Class clazz)Returns true if the Morpher supports conversion from this Class.
-
-
-
Method Detail
-
morphsTo
java.lang.Class morphsTo()
Returns the target Class for conversion.- Returns:
- the target Class for conversion.
-
supports
boolean supports(java.lang.Class clazz)
Returns true if the Morpher supports conversion from this Class.- Parameters:
clazz- the source Class- Returns:
- true if clazz is supported by this morpher, false otherwise.
-
-