com.ludii.excel.parse.AnnotationExcelFieldDefined Maven / Gradle / Ivy
package com.ludii.excel.parse;
import com.ludii.excel.annotation.ExcelField;
import com.ludii.excel.handler.TypeHandler;
/**
* @author 陆迪
* @date 2022/3/24
*/
public class AnnotationExcelFieldDefined implements ExcelFieldDefined {
private final ExcelField excelField;
public AnnotationExcelFieldDefined(ExcelField excelField) {
this.excelField = excelField;
}
@Override
public String attrName() {
return excelField.attrName();
}
@Override
public String title() {
return excelField.title();
}
@Override
public ExcelField.Type type() {
return excelField.type();
}
@Override
public ExcelField.Align align() {
return excelField.align();
}
@Override
public int width() {
return excelField.width();
}
@Override
public int words() {
return excelField.words();
}
@Override
public int sort() {
return excelField.sort();
}
@Override
public int column() {
return excelField.column();
}
@Override
public String dictType() {
return excelField.dictType();
}
@Override
public Class extends TypeHandler>> typeHandler() {
return excelField.fieldType();
}
@Override
public String dataFormat() {
return excelField.dataFormat();
}
@Override
public String[] groups() {
return excelField.groups();
}
}