Interface LocaleContext
-
- All Known Subinterfaces:
EvalContext,Expressionator.ParseContext
- All Known Implementing Classes:
BaseEvalContext,CalcColEvalContext,ColDefaultValueEvalContext,ColEvalContext,ColValidatorEvalContext,DBEvalContext,RowEvalContext,RowValidatorEvalContext
public interface LocaleContextLocaleContext encapsulates all shared localization state for expression parsing and evaluation.- Author:
- James Ahlborn
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DateTimeFormattercreateDateFormatter(String formatStr)DecimalFormatcreateDecimalFormat(String formatStr)default LocalegetLocale()NumericConfiggetNumericConfig()TemporalConfiggetTemporalConfig()ZoneIdgetZoneId()
-
-
-
Method Detail
-
getLocale
default Locale getLocale()
- Returns:
- the currently configured Locale
-
getTemporalConfig
TemporalConfig getTemporalConfig()
- Returns:
- the currently configured TemporalConfig (from the
EvalConfig)
-
createDateFormatter
DateTimeFormatter createDateFormatter(String formatStr)
- Returns:
- an appropriately configured (i.e. locale) DateTimeFormatter for the given format.
-
getZoneId
ZoneId getZoneId()
- Returns:
- the currently configured ZoneId
-
getNumericConfig
NumericConfig getNumericConfig()
- Returns:
- the currently configured NumericConfig (from the
EvalConfig)
-
createDecimalFormat
DecimalFormat createDecimalFormat(String formatStr)
- Returns:
- an appropriately configured (i.e. DecimalFormatSymbols) DecimalFormat for the given format.
-
-