Class AbstractBulkImport

java.lang.Object
com.helger.photon.exchange.bulkimport.AbstractBulkImport
All Implemented Interfaces:
IBulkImport
Direct Known Subclasses:
AbstractBulkImportExcel

public abstract class AbstractBulkImport extends Object implements IBulkImport
Base class for IBulkImport implementations.
Author:
Philip Helger
  • Constructor Details

  • Method Details

    • getHeaderRowsToSkip

      @Nonnegative public final int getHeaderRowsToSkip()
      Specified by:
      getHeaderRowsToSkip in interface IBulkImport
      Returns:
      The initial rows to skip.
    • getColumnCount

      @Nonnegative public final int getColumnCount()
      Specified by:
      getColumnCount in interface IBulkImport
      Returns:
      The number of columns the input data is required to have
    • getColumnDescriptions

      @Nonnull @Nonempty public final com.helger.commons.collection.impl.ICommonsList<String> getColumnDescriptions(@Nonnull Locale aContentLocale)
      Description copied from interface: IBulkImport
      Get a list of all column descriptions.
      Specified by:
      getColumnDescriptions in interface IBulkImport
      Parameters:
      aContentLocale - The locale to be used.
      Returns:
      The non-null, non-empty list of column descriptions.
    • getSupportedFileTypes

      @Nonnull @Nonempty @ReturnsMutableCopy public final com.helger.commons.collection.impl.ICommonsList<EExchangeFileType> getSupportedFileTypes()
      Specified by:
      getSupportedFileTypes in interface IBulkImport
      Returns:
      A non-null, non-empty set of all supported file types.
    • toString

      public String toString()
      Overrides:
      toString in class Object