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 Morpher

Marker interface for morphers.
All implementations must have a morph( Object value ) method that returns the appropiate morphed value.

Author:
Andres Almiray

Method Summary
 Class morphsTo()
          Returns the target Class for conversion.
 boolean supports(Class clazz)
          Returns true if the Morpher supports conversion from this Class.
 

Method Detail

morphsTo

Class morphsTo()
Returns the target Class for conversion.

Returns:
the target Class for conversion.

supports

boolean supports(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.


Copyright © 2006-2008. All Rights Reserved.