public class CodeListCSVReader extends CSVDataImportReader<CodeListLine>
| Modifier and Type | Class and Description |
|---|---|
static class |
CodeListCSVReader.CodeListCSVLineParser |
static class |
CodeListCSVReader.ColumnInfo |
static class |
CodeListCSVReader.ColumnsInfo |
| Modifier and Type | Field and Description |
|---|---|
static String |
CODE_COLUMN_SUFFIX |
static String |
DESCRIPTION_COLUMN_SUFFIX |
static String |
FLAT_LIST_CODE_COLUMN_NAME |
static String |
FLAT_LIST_LABEL_COLUMN_NAME |
static String |
LABEL_COLUMN_SUFFIX |
static String |
QUALIFIABLE_COLUMN_SUFFIX |
csvReader, currentCSVLinecurrentLine| Constructor and Description |
|---|
CodeListCSVReader(File file,
CSVFileOptions csvFileOptions,
List<String> languages,
String defaultLanguage) |
| Modifier and Type | Method and Description |
|---|---|
protected CodeListCSVReader.CodeListCSVLineParser |
createLineParserInstance() |
CodeListCSVReader.ColumnsInfo |
getColumnsInfo() |
String |
getDefaultLanguage() |
List<String> |
getLanguages() |
List<String> |
getLevels() |
protected void |
readHeaders() |
boolean |
validateAllFile() |
close, getColumnNames, getLinesRead, init, isReady, readNextLine, sizegetCurrentLine, parseCurrentLinepublic static final String FLAT_LIST_CODE_COLUMN_NAME
public static final String FLAT_LIST_LABEL_COLUMN_NAME
public static final String CODE_COLUMN_SUFFIX
public static final String LABEL_COLUMN_SUFFIX
public static final String DESCRIPTION_COLUMN_SUFFIX
public static final String QUALIFIABLE_COLUMN_SUFFIX
public CodeListCSVReader(File file, CSVFileOptions csvFileOptions, List<String> languages, String defaultLanguage) throws IOException, ParsingException
IOExceptionParsingExceptionprotected void readHeaders()
throws IOException
readHeaders in class CSVDataImportReader<CodeListLine>IOExceptionprotected CodeListCSVReader.CodeListCSVLineParser createLineParserInstance()
createLineParserInstance in class DataImportReader<CodeListLine>public boolean validateAllFile()
throws ParsingException
validateAllFile in class DataImportReader<CodeListLine>ParsingExceptionpublic CodeListCSVReader.ColumnsInfo getColumnsInfo()
public String getDefaultLanguage()
Copyright © 2022 Open Foris. All rights reserved.