Class DiscountValueParser
- java.lang.Object
-
- de.hybris.platform.platformbackoffice.taxdiscountvalueparser.TaxDiscountValueParser
-
- de.hybris.platform.platformbackoffice.taxdiscountvalueparser.DiscountValueParser
-
- All Implemented Interfaces:
ValueParser<DiscountValue>
public class DiscountValueParser extends TaxDiscountValueParser implements ValueParser<DiscountValue>
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.platformbackoffice.taxdiscountvalueparser.TaxDiscountValueParser
commonI18NService, compiledPattern, currencyDao, formatFactory, pattern, patternExplained, SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description DiscountValueParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TaxOrDiscountcreateParsedObject(java.util.regex.Matcher matcher, java.lang.String code, double value, double appliedValue, boolean isAbsolute, java.lang.String currencyIsoCode)DiscountValueparse(java.lang.String stringValue)java.lang.Stringrender(DiscountValue discountValue)-
Methods inherited from class de.hybris.platform.platformbackoffice.taxdiscountvalueparser.TaxDiscountValueParser
appendPart, parseTaxOrDiscount, render, setCommonI18NService, setCurrencyDao, setFormatFactory, setPattern, setPatternExplained
-
-
-
-
Method Detail
-
parse
public DiscountValue parse(java.lang.String stringValue) throws ParserException
- Specified by:
parsein interfaceValueParser<DiscountValue>- Throws:
ParserException
-
render
public java.lang.String render(DiscountValue discountValue)
- Specified by:
renderin interfaceValueParser<DiscountValue>
-
createParsedObject
protected TaxOrDiscount createParsedObject(java.util.regex.Matcher matcher, java.lang.String code, double value, double appliedValue, boolean isAbsolute, java.lang.String currencyIsoCode)
- Overrides:
createParsedObjectin classTaxDiscountValueParser
-
-