public class DiscountValueParser extends TaxDiscountValueParser implements ValueParser<DiscountValue>
commonI18NService, compiledPattern, currencyDao, formatFactory, pattern, patternExplained, SEPARATOR| Constructor and Description |
|---|
DiscountValueParser() |
| Modifier and Type | Method and Description |
|---|---|
protected TaxOrDiscount |
createParsedObject(Matcher matcher,
String code,
double value,
double appliedValue,
boolean isAbsolute,
String currencyIsoCode) |
DiscountValue |
parse(String stringValue) |
String |
render(DiscountValue discountValue) |
appendPart, parseTaxOrDiscount, render, setCommonI18NService, setCurrencyDao, setFormatFactory, setPattern, setPatternExplainedpublic DiscountValue parse(String stringValue) throws ParserException
parse in interface ValueParser<DiscountValue>ParserExceptionpublic String render(DiscountValue discountValue)
render in interface ValueParser<DiscountValue>protected TaxOrDiscount createParsedObject(Matcher matcher, String code, double value, double appliedValue, boolean isAbsolute, String currencyIsoCode)
createParsedObject in class TaxDiscountValueParserCopyright © 2017 SAP SE. All Rights Reserved.