All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ludii.excel.parse.AnnotationExcelFieldDefined Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
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> typeHandler() {
        return excelField.fieldType();
    }

    @Override
    public String dataFormat() {
        return excelField.dataFormat();
    }

    @Override
    public String[] groups() {
        return excelField.groups();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy