类 ConverterUtils
java.lang.Object
com.sh.wf.excel.util.ConverterUtils
Converting objects
-
方法概要
修饰符和类型方法说明static ObjectconvertToJavaObject(CellData cellData, Field field, ExcelContentProperty contentProperty, Map<String, Converter> converterMap, GlobalConfiguration globalConfiguration, Integer rowIndex, Integer columnIndex) Convert it into a Java objectconvertToStringMap(Map<Integer, CellData> cellDataMap, AnalysisContext context) Convert it into a String map
-
方法详细资料
-
convertToStringMap
public static Map<Integer,String> convertToStringMap(Map<Integer, CellData> cellDataMap, AnalysisContext context) Convert it into a String map- 参数:
cellDataMap- Mapcontext- AnalysisContext- 返回:
- Map
-
convertToJavaObject
public static Object convertToJavaObject(CellData cellData, Field field, ExcelContentProperty contentProperty, Map<String, Converter> converterMap, GlobalConfiguration globalConfiguration, Integer rowIndex, Integer columnIndex) Convert it into a Java object- 参数:
cellData- CellDatafield- Field ExcelContentPropertycontentProperty- ExcelContentPropertyconverterMap- MapglobalConfiguration- GlobalConfigurationrowIndex- IntegercolumnIndex- Integer- 返回:
- Object
-