public class IntervalInDomainHelperImpl extends Object implements IntervalInDomainHelper
| Constructor and Description |
|---|
IntervalInDomainHelperImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendToIntervalMask(StringBuilder intervalBuffer,
CsticValueModel valueModel) |
protected DecimalFormat |
createFormatterForService() |
protected DecimalFormat |
createFormatterForUI(Locale locale) |
String |
formatNumericInterval(String interval)
Converts an interval of characteristic domain into an external format.
|
String |
formatNumericValue(String value)
Converts a characteristic value into an external format.
|
protected I18NService |
getI18NService() |
protected boolean |
isInInterval(DecimalFormat numberFormatter,
BigDecimal valueAsnumber,
String[] parsedInterval,
BigDecimal intervalMinAsNumber) |
protected boolean |
isIntervalMin(BigDecimal valueAsnumber,
BigDecimal intervalMinAsNumber) |
protected boolean |
isValueInInterval(DecimalFormat numberFormatter,
BigDecimal valueAsnumber,
CsticValueModel valueModel) |
String |
retrieveErrorMessage(String value,
String interval)
Retrieves error message.
|
String |
retrieveIntervalMask(CsticModel cstic)
Retrieves concatenated string of intervals in characteristic domain.
|
void |
setI18NService(I18NService i18nService) |
boolean |
validateIntervals(String value,
CsticModel cstic)
Validates whether the given value belongs to one of intervals of characteristic domain.
|
public boolean validateIntervals(String value, CsticModel cstic)
IntervalInDomainHelpervalidateIntervals in interface IntervalInDomainHelpervalue - characteristic valuecstic - characteristic modelprotected boolean isValueInInterval(DecimalFormat numberFormatter, BigDecimal valueAsnumber, CsticValueModel valueModel) throws ParseException
ParseExceptionprotected boolean isInInterval(DecimalFormat numberFormatter, BigDecimal valueAsnumber, String[] parsedInterval, BigDecimal intervalMinAsNumber) throws ParseException
ParseExceptionprotected boolean isIntervalMin(BigDecimal valueAsnumber, BigDecimal intervalMinAsNumber)
public String retrieveIntervalMask(CsticModel cstic)
IntervalInDomainHelperretrieveIntervalMask in interface IntervalInDomainHelpercstic - characteristic modelprotected void appendToIntervalMask(StringBuilder intervalBuffer, CsticValueModel valueModel)
public String formatNumericInterval(String interval)
IntervalInDomainHelperformatNumericInterval in interface IntervalInDomainHelperinterval - interval in internal formatpublic String formatNumericValue(String value)
IntervalInDomainHelperformatNumericValue in interface IntervalInDomainHelpervalue - characteristic value in internal formatpublic String retrieveErrorMessage(String value, String interval)
IntervalInDomainHelperretrieveErrorMessage in interface IntervalInDomainHelpervalue - characteristic value in external formatinterval - interval in external formatprotected DecimalFormat createFormatterForUI(Locale locale)
protected DecimalFormat createFormatterForService()
protected I18NService getI18NService()
public void setI18NService(I18NService i18nService)
i18nService - the i18NService to setCopyright © 2017 SAP SE. All Rights Reserved.