net.sf.ezmorph.array

Class AbstractArrayMorpher

public abstract class AbstractArrayMorpher extends Object implements ObjectMorpher

Base class for array Morphers.

Author: Andres Almiray

Constructor Summary
AbstractArrayMorpher()
AbstractArrayMorpher(boolean useDefault)
Method Summary
protected int[]createDimensions(int length, int initial)
Creates an array representing the dimensions for comversion.
protected intgetDimensions(Class arrayClass)
Returns the number of dimensions in an array class.
booleanisUseDefault()
Returns if this morpher will use a default value.
voidsetUseDefault(boolean useDefault)
Sets if this morpher will use a default value.
booleansupports(Class clazz)

Constructor Detail

AbstractArrayMorpher

public AbstractArrayMorpher()

AbstractArrayMorpher

public AbstractArrayMorpher(boolean useDefault)

Parameters: useDefault if morph() should return a default value if the value to be morphed is null

Method Detail

createDimensions

protected int[] createDimensions(int length, int initial)
Creates an array representing the dimensions for comversion.

getDimensions

protected int getDimensions(Class arrayClass)
Returns the number of dimensions in an array class.

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)
Copyright © 2006-2010. All Rights Reserved.