com.ancientprogramming.fixedformat4j.annotation
Annotation Type Field


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Field

This annotation descibes how a setter/getter pairs should be formatted by the fixedFormatManager.

Since:
1.0.0
Author:
Jacob von Eyben - http://www.ancientprogramming.com

Required Element Summary
 int length
          The length of the formatted field
 int offset
          A one based offset to insert data at in a record.
 
Optional Element Summary
 Align align
           
 java.lang.Class<? extends FixedFormatter> formatter
           
 char paddingChar
          The character to pad with if the length is longer than the formatted data
 

Element Detail

offset

public abstract int offset
A one based offset to insert data at in a record.

Returns:
the offset as an int

length

public abstract int length
The length of the formatted field

Returns:
the length as an int

align

public abstract Align align
Returns:
The direction of the padding. Defaults to Align.RIGHT.
Default:
LEFT

paddingChar

public abstract char paddingChar
The character to pad with if the length is longer than the formatted data

Returns:
the padding character
Default:
32

formatter

public abstract java.lang.Class<? extends FixedFormatter> formatter
Default:
com.ancientprogramming.fixedformat4j.format.impl.ByTypeFormatter.class


Copyright © 2008 ancientprogramming.com. All Rights Reserved.