net.sf.ezmorph.primitive
Class AbstractPrimitiveMorpher
java.lang.Object
net.sf.ezmorph.primitive.AbstractPrimitiveMorpher
- All Implemented Interfaces:
- Morpher
- Direct Known Subclasses:
- AbstractDecimalMorpher, AbstractIntegerMorpher, BooleanMorpher, CharMorpher
public abstract class AbstractPrimitiveMorpher
- extends Object
- implements Morpher
Base class for primitive value conversion.
- Author:
- Andres Almiray
Method Summary |
boolean |
isUseDefault()
Returns if this morpher will use a default value if the value to be
morphed is null |
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 |
AbstractPrimitiveMorpher
public AbstractPrimitiveMorpher()
AbstractPrimitiveMorpher
public AbstractPrimitiveMorpher(boolean useDefault)
- Parameters:
useDefault
- if morph() should return a default value if the value to
be morphed is null
isUseDefault
public boolean isUseDefault()
- Returns if this morpher will use a default value if the value to be
morphed is null
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.