Package org.deidentifier.arx.io
Klasse ImportConfigurationExcel
java.lang.Object
org.deidentifier.arx.io.ImportConfiguration
org.deidentifier.arx.io.ImportConfigurationFile
org.deidentifier.arx.io.ImportConfigurationExcel
Configuration describing an Excel file
This is used to describe Excel files. Both file types (XLS and XLSX) are
supported. The file type can either be detected automatically by the file
extension, or alternatively can be set manually. Furthermore there is a sheet
index
sheetIndex, which describes which sheet within the file should
be used.-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumValid file types for Excel files XLS is the "old" Excel file type, XLSX is the "new" Excel file type. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungImportConfigurationExcel(String fileLocation, int sheetIndex, boolean containsHeader) Creates a new instance of this object without specifying the file type The file type will be detected automatically using the file extension.ImportConfigurationExcel(String fileLocation, ImportConfigurationExcel.ExcelFileTypes excelFileType, int sheetIndex, boolean containsHeader) Creates a new instance of this object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddColumn(ImportColumn column) Adds a single column to import from This makes sure that onlyImportColumnExcelcan be added, otherwise anIllegalArgumentExceptionwill be thrown.booleanintvoidsetContainsHeader(boolean containsHeader) voidsetExcelFileType(ImportConfigurationExcel.ExcelFileTypes excelFileType) voidsetSheetIndex(int sheetIndex) Von Klasse geerbte Methoden org.deidentifier.arx.io.ImportConfigurationFile
getFileLocation, setFileLocationVon Klasse geerbte Methoden org.deidentifier.arx.io.ImportConfiguration
getColumns, isOptimizedLoading, setOptimizedLoading
-
Konstruktordetails
-
ImportConfigurationExcel
public ImportConfigurationExcel(String fileLocation, ImportConfigurationExcel.ExcelFileTypes excelFileType, int sheetIndex, boolean containsHeader) Creates a new instance of this object.- Parameter:
fileLocation-ImportConfigurationFile.setFileLocation(String)excelFileType-setExcelFileType(ExcelFileTypes)sheetIndex-setSheetIndex(int)containsHeader-setContainsHeader(boolean)
-
ImportConfigurationExcel
Creates a new instance of this object without specifying the file type The file type will be detected automatically using the file extension. By default "xlsx" is assumed. In case the file extension is "xls" the file type will be set toImportConfigurationExcel.ExcelFileTypes.XLS.- Parameter:
fileLocation-ImportConfigurationFile.setFileLocation(String)sheetIndex-sheetIndexcontainsHeader-containsHeader
-
-
Methodendetails
-
addColumn
Adds a single column to import from This makes sure that onlyImportColumnExcelcan be added, otherwise anIllegalArgumentExceptionwill be thrown.- Angegeben von:
addColumnin KlasseImportConfiguration- Parameter:
column- A single column to import from,ImportColumnExcel
-
getContainsHeader
public boolean getContainsHeader()- Gibt zurück:
containsHeader
-
getExcelFileType
- Gibt zurück:
-
Ungültige Referenz
#ExcelFileTypes
-
getSheetIndex
public int getSheetIndex()- Gibt zurück:
sheetIndex
-
setContainsHeader
public void setContainsHeader(boolean containsHeader) - Parameter:
containsHeader-containsHeader
-
setExcelFileType
- Parameter:
excelFileType-Ungültige Referenz
#ExcelFileTypes
-
setSheetIndex
public void setSheetIndex(int sheetIndex) - Parameter:
sheetIndex-sheetIndex
-