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 forIBulkImportimplementations.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBulkImport(int nHeaderRowsToSkip, List<com.helger.commons.text.display.IHasDisplayText> aColumnNames, EExchangeFileType... aFileTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnCount()com.helger.commons.collection.impl.ICommonsList<String>getColumnDescriptions(Locale aContentLocale)Get a list of all column descriptions.intgetHeaderRowsToSkip()com.helger.commons.collection.impl.ICommonsList<EExchangeFileType>getSupportedFileTypes()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.photon.exchange.bulkimport.IBulkImport
importObjects
-
-
-
-
Constructor Detail
-
AbstractBulkImport
protected AbstractBulkImport(@Nonnegative int nHeaderRowsToSkip, @Nonnull @Nonempty List<com.helger.commons.text.display.IHasDisplayText> aColumnNames, @Nonnull @Nonempty EExchangeFileType... aFileTypes)
-
-
Method Detail
-
getHeaderRowsToSkip
@Nonnegative public final int getHeaderRowsToSkip()
- Specified by:
getHeaderRowsToSkipin interfaceIBulkImport- Returns:
- The initial rows to skip.
-
getColumnCount
@Nonnegative public final int getColumnCount()
- Specified by:
getColumnCountin interfaceIBulkImport- 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:IBulkImportGet a list of all column descriptions.- Specified by:
getColumnDescriptionsin interfaceIBulkImport- 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:
getSupportedFileTypesin interfaceIBulkImport- Returns:
- A non-
null, non-empty set of all supported file types.
-
-