olg.csv.bean.annotations
Annotation Type Column


@Documented
@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface Column

This Annotation allows to indicate a field to be exported(imported) into(from) a cell.


Required Element Summary
 String value
          Indicates the position in a row from which begin the field representation.
 
Optional Element Summary
 Class<?> concreteClass
          When the field is an interface, it's necessary to indicate which concrete class used to instanciate on reading process.
 String defaultValue
          The default value. by default,the expression "null" is used to indicate the default value will be null.
 String name
          The header name.
 

Element Detail

value

public abstract String value
Indicates the position in a row from which begin the field representation.

name

public abstract String name
The header name.

Default:
""

defaultValue

public abstract String defaultValue
The default value. by default,the expression "null" is used to indicate the default value will be null. In the incredible case, the string "null" is wished as default value, add doublequote to specify this value like that: defaultValue="\"null\""

Default:
"null"

concreteClass

public abstract Class<?> concreteClass
When the field is an interface, it's necessary to indicate which concrete class used to instanciate on reading process.

Default:
java.lang.Object.class


Copyright © 2014. All Rights Reserved.