com.poiji.annotation.ExcelCellName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of poiji2 Show documentation
Show all versions of poiji2 Show documentation
Perfect annotation based library to read and write excel files
package com.poiji.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by hakan on 16/03/2018
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Documented
public @interface ExcelCellName {
int ABSENT_ORDER = -1;
/**
* Specifies the column name where the corresponding value is mapped from the excel data
*
* @return column name
*/
String value();
/**
* Specifies 0-based column order in saved file.
*
* @return column order
*/
int order() default ABSENT_ORDER;
/**
* Delimiter for column multiname.
*
* Example: @ExcelCellName(value = "id,identifier", columnNameDelimiter = ",")
* reading: column with name 'id' will be mapped into field, or if no column 'id',
* then column 'identifier' will be mapped into field.
* writing: field will be saved into column 'id'
*
* @return delimiter for column multiname.
*/
String columnNameDelimiter() default "";
/**
* Set true if this header is mandatory, otherwise false
*/
boolean mandatory() default false;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy