com.supwisdom.spreadsheet.mapper.o2w.Object2SheetComposer Maven / Gradle / Ivy
package com.supwisdom.spreadsheet.mapper.o2w;
import com.supwisdom.spreadsheet.mapper.model.core.Sheet;
import com.supwisdom.spreadsheet.mapper.model.meta.SheetMeta;
import com.supwisdom.spreadsheet.mapper.o2w.converter.PropertyStringifier;
import java.util.List;
/**
* 将List<Object>转换为{@link Sheet}的工具
* Created by hanwen on 15-12-16.
*/
public interface Object2SheetComposer {
/**
* 添加{@link PropertyStringifier}。
* {@link PropertyStringifier#getMatchField()} 不能重复
*
* @param propertyStringifier {@link PropertyStringifier}
* @return {@link Object2SheetComposer}
*/
Object2SheetComposer addFieldConverter(PropertyStringifier propertyStringifier);
/**
* @param dataOfSheet List<Object>,数据,可以为null
* @param sheetMeta {@link SheetMeta}
* @return {@link Sheet}
*/
Sheet compose(List dataOfSheet, SheetMeta sheetMeta);
}