net.sf.ezmorph.object
Class AbstractObjectMorpher

java.lang.Object
  extended by net.sf.ezmorph.object.AbstractObjectMorpher
All Implemented Interfaces:
Morpher, ObjectMorpher
Direct Known Subclasses:
BigDecimalMorpher, BigIntegerMorpher, BooleanObjectMorpher, CharacterObjectMorpher, DateMorpher, MapToDateMorpher, NumberMorpher, ObjectListMorpher

public abstract class AbstractObjectMorpher
extends Object
implements ObjectMorpher

Base class for ObjectMorpher implementations.

Author:
Andres Almiray

Constructor Summary
AbstractObjectMorpher()
           
AbstractObjectMorpher(boolean useDefault)
           
 
Method Summary
 boolean isUseDefault()
          Returns if this morpher will use a default value.
 void setUseDefault(boolean useDefault)
          Sets if this morpher will use a default value.
 boolean supports(Class clazz)
          Returns true if the Morpher supports conversion from this Class.
Supports any type that is not an Array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.ezmorph.ObjectMorpher
morph
 
Methods inherited from interface net.sf.ezmorph.Morpher
morphsTo
 

Constructor Detail

AbstractObjectMorpher

public AbstractObjectMorpher()

AbstractObjectMorpher

public AbstractObjectMorpher(boolean useDefault)
Parameters:
useDefault - if morph() should return a default value if the value to be morphed is null
Method Detail

isUseDefault

public boolean isUseDefault()
Returns if this morpher will use a default value.


setUseDefault

public void setUseDefault(boolean useDefault)
Sets if this morpher will use a default value.


supports

public boolean supports(Class clazz)
Returns true if the Morpher supports conversion from this Class.
Supports any type that is not an Array.

Specified by:
supports in interface Morpher
Parameters:
clazz - the source Class
Returns:
true if clazz is supported by this morpher, false otherwise.


Copyright © 2006-2008. All Rights Reserved.