Class TaxDiscountValueParser
java.lang.Object
de.hybris.platform.platformbackoffice.taxdiscountvalueparser.TaxDiscountValueParser
- Direct Known Subclasses:
DiscountValueParser,TaxValueParser
Tax discount value parser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DefaultCommonI18NServiceprotected Patternprotected CurrencyDaoprotected DefaultFormatFactoryprotected Stringprotected Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendPart(StringBuilder sb, String part) protected TaxOrDiscountcreateParsedObject(Matcher matcher, String code, double value, double appliedValue, boolean isAbsolute, String currencyIsoCode) parseTaxOrDiscount(String stringValue) render(TaxOrDiscount parsed) voidsetCommonI18NService(DefaultCommonI18NService commonI18NService) voidsetCurrencyDao(CurrencyDao currencyDao) voidsetFormatFactory(DefaultFormatFactory formatFactory) voidsetPattern(String pattern) voidsetPatternExplained(String patternExplained)
-
Field Details
-
SEPARATOR
- See Also:
-
pattern
-
patternExplained
-
currencyDao
-
formatFactory
-
commonI18NService
-
compiledPattern
-
-
Constructor Details
-
TaxDiscountValueParser
public TaxDiscountValueParser()
-
-
Method Details
-
parseTaxOrDiscount
- Throws:
ParserException
-
createParsedObject
protected TaxOrDiscount createParsedObject(Matcher matcher, String code, double value, double appliedValue, boolean isAbsolute, String currencyIsoCode) -
render
-
appendPart
-
setPattern
-
setCurrencyDao
-
setPatternExplained
-
setFormatFactory
-
setCommonI18NService
-