net.sf.ezmorph

Interface Morpher

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
ClassmorphsTo()
Returns the target Class for conversion.
booleansupports(Class clazz)
Returns true if the Morpher supports conversion from this Class.

Method Detail

morphsTo

public Class morphsTo()
Returns the target Class for conversion.

Returns: the target Class for conversion.

supports

public 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-2011. All Rights Reserved.