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

com.kovizone.poi.ooxml.plus.processor.WriteSuffixProcessors Maven / Gradle / Ivy

The newest version!
package com.kovizone.poi.ooxml.plus.processor;


import com.kovizone.poi.ooxml.plus.anno.WriteSuffix;
import com.kovizone.poi.ooxml.plus.api.processor.WriteProcessor;
import com.kovizone.poi.ooxml.plus.command.ExcelCommand;

import java.lang.reflect.Field;

/**
 * Suffix注解处理器
 *
 * @author KoviChen
 */
public class WriteSuffixProcessors implements WriteProcessor {

    @Override
    public Object dataBodyProcess(WriteSuffix writeSuffix,
                                  ExcelCommand excelCommand,
                                  Field targetField,
                                  Object columnValue) {
        return String.valueOf(columnValue)
                .concat(excelCommand.parseString(writeSuffix.value()));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy