public static class SpeciesCSVReader.SpeciesCSVLineParser extends CSVReferenceDataLineParser<SpeciesLine>
| Modifier and Type | Field and Description |
|---|---|
static String |
GENUS_SUFFIX |
static String |
UNEXPECTED_SYNONYM_MESSAGE_KEY |
csvLine, readerlineNumber| Modifier and Type | Method and Description |
|---|---|
protected ParsingError |
createFieldParsingError(SpeciesFileColumn column,
String fieldName,
String value) |
static SpeciesCSVReader.SpeciesCSVLineParser |
createInstance(SpeciesCSVReader reader,
org.openforis.commons.io.csv.CsvLine line,
List<String> infoColumnNames) |
protected String |
extractCode(boolean required) |
protected String |
extractFamilyName() |
protected Map<String,List<String>> |
extractLanguageToVernacularNames() |
protected String |
extractRawScientificName() |
protected Integer |
extractTaxonId(boolean required) |
protected List<String> |
extractVernacularNames(String colName) |
protected org.openforis.collect.manager.speciesimport.SpeciesCSVReader.VernacularLanguagesMap |
extractVernacularNamesFromColumns() |
SpeciesLine |
parse() |
protected void |
throwEmptyColumnParsingException(SpeciesFileColumn column) |
parseInfosgetColumnValue, getColumnValue, getReader, trimValuecreateFieldParsingError, getLineNumber, newLineInstance, throwEmptyColumnParsingExceptionpublic static final String GENUS_SUFFIX
public static final String UNEXPECTED_SYNONYM_MESSAGE_KEY
public static SpeciesCSVReader.SpeciesCSVLineParser createInstance(SpeciesCSVReader reader, org.openforis.commons.io.csv.CsvLine line, List<String> infoColumnNames)
public SpeciesLine parse() throws ParsingException
parse in class CSVReferenceDataLineParser<SpeciesLine>ParsingExceptionprotected Integer extractTaxonId(boolean required) throws ParsingException
ParsingExceptionprotected String extractCode(boolean required) throws ParsingException
ParsingExceptionprotected String extractFamilyName() throws ParsingException
ParsingExceptionprotected String extractRawScientificName() throws ParsingException
ParsingExceptionprotected Map<String,List<String>> extractLanguageToVernacularNames() throws ParsingException
ParsingExceptionprotected org.openforis.collect.manager.speciesimport.SpeciesCSVReader.VernacularLanguagesMap extractVernacularNamesFromColumns() throws ParsingException
ParsingExceptionprotected List<String> extractVernacularNames(String colName) throws ParsingException
ParsingExceptionprotected ParsingError createFieldParsingError(SpeciesFileColumn column, String fieldName, String value)
protected void throwEmptyColumnParsingException(SpeciesFileColumn column) throws ParsingException
ParsingExceptionCopyright © 2022 Open Foris. All rights reserved.