Class CsvParser
- java.lang.Object
-
- de.westemeyer.plugins.multiselect.parser.CsvParser
-
- All Implemented Interfaces:
ConfigParser
public class CsvParser extends Object implements ConfigParser
Parser implementation to use for CSV configuration type.
-
-
Constructor Summary
Constructors Constructor Description CsvParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiselectDecisionTreeanalyzeConfiguration(InputStream config)Analyze configuration string and transform it into a tree representation of values.protected com.opencsv.CSVReadercreateCsvReader(InputStreamReader reader)StringgetValidationResult()Get validation result, problems, etc.
-
-
-
Method Detail
-
analyzeConfiguration
public MultiselectDecisionTree analyzeConfiguration(InputStream config)
Analyze configuration string and transform it into a tree representation of values.- Specified by:
analyzeConfigurationin interfaceConfigParser- Parameters:
config- configuration input stream- Returns:
- tree of variable values
-
createCsvReader
protected com.opencsv.CSVReader createCsvReader(InputStreamReader reader)
-
getValidationResult
public String getValidationResult()
Description copied from interface:ConfigParserGet validation result, problems, etc.- Specified by:
getValidationResultin interfaceConfigParser- Returns:
- validation result
-
-