public abstract class TaxDiscountValueParser extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DefaultCommonI18NService |
commonI18NService |
protected Pattern |
compiledPattern |
protected CurrencyDao |
currencyDao |
protected DefaultFormatFactory |
formatFactory |
protected String |
pattern |
protected String |
patternExplained |
protected static String |
SEPARATOR |
| Constructor and Description |
|---|
TaxDiscountValueParser() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendPart(StringBuilder sb,
String part) |
protected TaxOrDiscount |
createParsedObject(Matcher matcher,
String code,
double value,
double appliedValue,
boolean isAbsolute,
String currencyIsoCode) |
TaxOrDiscount |
parseTaxOrDiscount(String stringValue) |
String |
render(TaxOrDiscount parsed) |
void |
setCommonI18NService(DefaultCommonI18NService commonI18NService) |
void |
setCurrencyDao(CurrencyDao currencyDao) |
void |
setFormatFactory(DefaultFormatFactory formatFactory) |
void |
setPattern(String pattern) |
void |
setPatternExplained(String patternExplained) |
protected String pattern
protected String patternExplained
protected CurrencyDao currencyDao
protected DefaultFormatFactory formatFactory
protected DefaultCommonI18NService commonI18NService
protected Pattern compiledPattern
protected static final String SEPARATOR
public TaxOrDiscount parseTaxOrDiscount(String stringValue) throws ParserException
ParserExceptionprotected TaxOrDiscount createParsedObject(Matcher matcher, String code, double value, double appliedValue, boolean isAbsolute, String currencyIsoCode)
public String render(TaxOrDiscount parsed)
protected void appendPart(StringBuilder sb, String part)
public void setPattern(String pattern)
public void setCurrencyDao(CurrencyDao currencyDao)
public void setPatternExplained(String patternExplained)
public void setFormatFactory(DefaultFormatFactory formatFactory)
public void setCommonI18NService(DefaultCommonI18NService commonI18NService)
Copyright © 2017 SAP SE. All Rights Reserved.