public class DefaultImportParameterParser extends java.lang.Object implements ImportParameterParser
| Constructor and Description |
|---|
DefaultImportParameterParser() |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
boolean |
matches(java.lang.String referenceFormat) |
DefaultValues |
parseDefaultValues(java.lang.String referenceFormat,
java.lang.String defaultValues)
Parses referencePattern cell (which is located in the second row) and default values cell (which is located in the
third row) and creates map where key is equals to reference key and value is equals to value provided in the third
row.
|
ParsedValues |
parseValue(java.lang.String cellValue,
DefaultValues defaultValues)
Parses referencePattern cell (which is located in the second row) and cell with data (which is located in the data
row) and creates map where key is equal to reference key and value is equals to value provided in the data row.
|
void |
setMatcher(ExcelParserMatcher matcher) |
void |
setOrder(int order) |
void |
setSplitter(ExcelParserSplitter splitter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseValuepublic boolean matches(java.lang.String referenceFormat)
matches in interface ImportParameterParserpublic DefaultValues parseDefaultValues(java.lang.String referenceFormat, java.lang.String defaultValues)
parseDefaultValues in interface ImportParameterParserreferenceFormat - cell's value from second row of excel sheetdefaultValues - cell's value from third row of excel sheetpublic ParsedValues parseValue(java.lang.String cellValue, DefaultValues defaultValues)
ImportParameters.RAW_VALUE which
represents not parsed value, but merged with default valuesparseValue in interface ImportParameterParsercellValue - value of cell's datadefaultValues - parsed default valuespublic void setMatcher(ExcelParserMatcher matcher)
public void setSplitter(ExcelParserSplitter splitter)
public int getOrder()
public void setOrder(int order)
Copyright © 2018 SAP SE. All Rights Reserved.