// Path: excel/src/main/java/com/bing/excel/converter/FieldValueConverter.java
// public interface FieldValueConverter extends ConverterMatcher {
// 	  OutValue toObject(Object source,ConverterHandler converterHandler);
// 	  Object fromString(String cell,ConverterHandler converterHandler,Type targetType);
// }


import com.bing.excel.converter.FieldValueConverter;
import javafx.util.Builder;
package com.bing.excel.mapper;


/**
 * ConversionMapperBuildder 用于
 *
 * @author shi
 * @create 2018-02-22.
 */
public class ConversionMapperBuilder  {

  private ConversionMapper conversionMapper = new ConversionMapper();

  private ConversionMapperBuilder() {

  }

  public static ConversionMapperBuilder toBuilder() {
    return new ConversionMapperBuilder();
  }

  public ConversionMapper build() {
    return this.conversionMapper;
  }

  public ConversionMapperBuilder modelName(Class<?> clazz, String name) {
    this.conversionMapper.addModelName(clazz, name);
    return this;
  }

  public ConversionMapperBuilder fieldConverter(Class<?> clazz, String filedName,
      Class<?> filedType, int index) {
    this.fieldConverter(clazz, filedName, filedType, index, null, null, false);
    return this;
  }

  public ConversionMapperBuilder fieldConverter(Class<?> clazz, String filedName,
      Class<?> filedType, int index,
// Path: excel/src/main/java/com/bing/excel/converter/FieldValueConverter.java
// public interface FieldValueConverter extends ConverterMatcher {
// 	  OutValue toObject(Object source,ConverterHandler converterHandler);
// 	  Object fromString(String cell,ConverterHandler converterHandler,Type targetType);
// }


// Path: excel/src/main/java/com/bing/excel/mapper/ConversionMapperBuilder.java
import com.bing.excel.converter.FieldValueConverter;
import javafx.util.Builder;

package com.bing.excel.mapper;


/**
 * ConversionMapperBuildder 用于
 *
 * @author shi
 * @create 2018-02-22.
 */
public class ConversionMapperBuilder  {

  private ConversionMapper conversionMapper = new ConversionMapper();

  private ConversionMapperBuilder() {

  }

  public static ConversionMapperBuilder toBuilder() {
    return new ConversionMapperBuilder();
  }

  public ConversionMapper build() {
    return this.conversionMapper;
  }

  public ConversionMapperBuilder modelName(Class<?> clazz, String name) {
    this.conversionMapper.addModelName(clazz, name);
    return this;
  }

  public ConversionMapperBuilder fieldConverter(Class<?> clazz, String filedName,
      Class<?> filedType, int index) {
    this.fieldConverter(clazz, filedName, filedType, index, null, null, false);
    return this;
  }

  public ConversionMapperBuilder fieldConverter(Class<?> clazz, String filedName,
      Class<?> filedType, int index,
      FieldValueConverter converter) {