Class AbstractMapper<T>

java.lang.Object
org.csveed.bean.AbstractMapper<T>
Type Parameters:
T - the generic type
Direct Known Subclasses:
ColumnIndexMapper, ColumnNameMapper

public abstract class AbstractMapper<T> extends Object
The Class AbstractMapper.
  • Field Details

    • beanInstructions

      protected BeanInstructions beanInstructions
      The bean instructions.
  • Constructor Details

    • AbstractMapper

      public AbstractMapper()
  • Method Details

    • getBeanProperty

      public abstract BeanProperty getBeanProperty(Column currentColumn)
      Gets the bean property.
      Parameters:
      currentColumn - the current column
      Returns:
      the bean property
    • keys

      protected abstract Set<Column> keys()
      Keys.
      Returns:
      the sets the
    • checkKey

      protected abstract void checkKey(Header header, Column key)
      Check key.
      Parameters:
      header - the header
      key - the key
    • verifyHeader

      public void verifyHeader(Header header)
      Verify header.
      Parameters:
      header - the header
    • getColumn

      protected abstract Column getColumn(Row row)
      Gets the column.
      Parameters:
      row - the row
      Returns:
      the column
    • convert

      public T convert(T bean, Row row, int lineNumber, DynamicColumn currentDynamicColumn)
      Convert.
      Parameters:
      bean - the bean
      row - the row
      lineNumber - the line number
      currentDynamicColumn - the current dynamic column
      Returns:
      the t
    • setBeanInstructions

      public void setBeanInstructions(BeanInstructions beanInstructions)
      Sets the bean instructions.
      Parameters:
      beanInstructions - the new bean instructions