net.sf.jsefa.flr.mapping
Class FlrSimpleTypeMapping

java.lang.Object
  extended by net.sf.jsefa.common.mapping.TypeMapping<N>
      extended by net.sf.jsefa.common.mapping.SimpleTypeMapping<String>
          extended by net.sf.jsefa.flr.mapping.FlrSimpleTypeMapping

public final class FlrSimpleTypeMapping
extends SimpleTypeMapping<String>

A mapping between a java object type and a simple FLR data type.

Instances of this class are immutable and thread safe.

Author:
Norman Lahme-Huetig
See Also:
TypeMapping

Constructor Summary
FlrSimpleTypeMapping(Class<?> objectType, String dataTypeName, SimpleTypeConverter simpleTypeConverter, int length, char padCharacter, Align align, boolean crop)
          Constructs a new FlrSimpleTypeMapping from the given arguments.
 
Method Summary
 Align getAlign()
          Returns the alignment.
 int getLength()
          Returns the length of the FLR field.
 char getPadCharacter()
          Returns the pad character to fill empty space.
 boolean isCrop()
          Returns if values longer than the length shall be cropped to defined column width (getLength()).
 
Methods inherited from class net.sf.jsefa.common.mapping.SimpleTypeMapping
getSimpleTypeConverter
 
Methods inherited from class net.sf.jsefa.common.mapping.TypeMapping
getDataTypeName, getObjectType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlrSimpleTypeMapping

public FlrSimpleTypeMapping(Class<?> objectType,
                            String dataTypeName,
                            SimpleTypeConverter simpleTypeConverter,
                            int length,
                            char padCharacter,
                            Align align,
                            boolean crop)
Constructs a new FlrSimpleTypeMapping from the given arguments.

Parameters:
objectType - the object type
dataTypeName - the data type name
simpleTypeConverter - the simple type converter
length - the length of the FLR field
padCharacter - the pad character to fill empty space
align - the alignment of the field
Method Detail

getAlign

public Align getAlign()
Returns the alignment.

Returns:
the alignment

getLength

public int getLength()
Returns the length of the FLR field.

Returns:
the lenght

getPadCharacter

public char getPadCharacter()
Returns the pad character to fill empty space.

Returns:
the pad character

isCrop

public boolean isCrop()
Returns if values longer than the length shall be cropped to defined column width (getLength()).

Returns:


Copyright © 2014. All rights reserved.