content: package com.alibaba.datax.plugin.unstructuredstorage.reader;
  
  import com.alibaba.fastjson2.JSON;
  import org.apache.commons.lang3.StringUtils;
  
  import java.text.DateFormat;
  import java.text.SimpleDateFormat;
  
  
  public class ColumnEntry {
      private Integer index;
      private String type;
      private String value;
      private String format;
      private DateFormat dateParse;
      private String name;
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public Integer getIndex() {
          return index;
      }
  
      public void setIndex(Integer index) {
          this.index = index;
      }
  
      public String getType() {
          return type;
      }
  
      public void setType(String type) {
          this.type = type;
      }
  
      public String getValue() {
          return value;
      }
  
      public void setValue(String value) {
          this.value = value;
      }
  
      public String getFormat() {
          return format;
      }
  
      public void setFormat(String format) {
          this.format = format;
          if (StringUtils.isNotBlank(this.format)) {
              this.dateParse = new SimpleDateFormat(this.format);
          }
      }
  
      public DateFormat getDateFormat() {
          return this.dateParse;
      }
  
      public String toJSONString() {
          return ColumnEntry.toJSONString(this);
      }
  
      public static String toJSONString(ColumnEntry columnEntry) {
          return JSON.toJSONString(columnEntry);
      }
  }
  