public class ProductConfigRuleFormatTranslatorImpl extends Object implements ProductConfigRuleFormatTranslator
| Constructor and Description |
|---|
ProductConfigRuleFormatTranslatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeFormattedForService(CsticModel cstic,
String value)
checks whether a rules value can be formatted so that the configuration engine can apply the value to the runtime
configuration
|
String |
formatForRules(CsticModel cstic,
String value)
format the cstic value so that the rule engine can compare the value to it's rules maintained in backoffice
|
String |
formatForService(CsticModel cstic,
String value)
format the rules value so that the configuration engine can apply the value to the runtime configuration
|
String |
getNoValueIndicator() |
protected DecimalFormat |
getRulesFormat()
Override this method to use a different decimal format in backoffice UI
|
protected DecimalFormat |
getServiceFormat()
Override this method if you engine use a different decimal format
|
protected boolean |
isNumericValue(CsticModel cstic) |
public static final String NO_VALUE
public ProductConfigRuleFormatTranslatorImpl()
protected DecimalFormat getRulesFormat()
protected DecimalFormat getServiceFormat()
public String formatForRules(CsticModel cstic, String value)
ProductConfigRuleFormatTranslatorformatForRules in interface ProductConfigRuleFormatTranslatorcstic - the characteristic the value belongs to and which provides the context for translationvalue - the actual value to translatepublic String formatForService(CsticModel cstic, String value)
ProductConfigRuleFormatTranslatorformatForService in interface ProductConfigRuleFormatTranslatorcstic - the characteristic the value belongs to and which provides the context for translationvalue - the actual value to translatepublic boolean canBeFormattedForService(CsticModel cstic, String value)
ProductConfigRuleFormatTranslatorcanBeFormattedForService in interface ProductConfigRuleFormatTranslatorcstic - the characteristic the value belongs to and which provides the context for translationvalue - the actual value to translatetrue only if the given value can be formattedprotected boolean isNumericValue(CsticModel cstic)
public String getNoValueIndicator()
getNoValueIndicator in interface ProductConfigRuleFormatTranslatorCopyright © 2017 SAP SE. All Rights Reserved.