Top Description Fields Constructors Methods
com.ibm.icu.message2

pack-priv Class Mf2DataModelFormatter

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Date, .HashMap, .List, .Locale, .Map, .Map.Entry, com.ibm.icu.message2.Mf2DataModel.Expression, .Mf2DataModel.Part, .Mf2DataModel.Pattern, .Mf2DataModel.SelectorKeys, .Mf2DataModel.Text, .Mf2DataModel.Value, com.ibm.icu.util.Calendar, .CurrencyAmount

Takes an Mf2DataModel and formats it to a String (and later on we will also implement formatting to a FormattedMessage).

Field Summary

Modifier and TypeField and Description
pack-priv final Mf2FunctionRegistry
customFunctions

Deprecated as a consequence of Mf2FunctionRegistry being deprecated.
private final Mf2DataModel
dm

Deprecated as a consequence of Mf2DataModel being deprecated.
private static final Mf2FunctionRegistry
EMPTY_REGISTY

Deprecated as a consequence of Mf2FunctionRegistry being deprecated.
private final Locale
pack-priv final Mf2FunctionRegistry
standardFunctions

Deprecated as a consequence of Mf2FunctionRegistry being deprecated.

Constructor Summary

AccessConstructor and Description
pack-priv
Mf2DataModelFormatter(Mf2DataModel dm, Locale locale, Mf2FunctionRegistry customFunctionRegistry)

Deprecated as a consequence of Mf2DataModel and Mf2FunctionRegistry being deprecated.

Method Summary

Modifier and TypeMethod and Description
private Mf2DataModel.Pattern
findBestMatchingPattern(List<Mf2DataModel.Expression> selectors, Map<String, Object> arguments)

Deprecated as a consequence of Mf2DataModel.Pattern being deprecated.
pack-priv String
format(Map<String, Object> arguments)

private FormattedPlaceholder
formatPlaceholder(Mf2DataModel.Expression ph, Map<String, Object> arguments, boolean localExpression)

Deprecated as a consequence of Mf2DataModel.Expression and FormattedPlaceholder being deprecated.
pack-priv FormatterFactory
getFormattingFunctionFactoryByName(Object toFormat, String functionName)

Deprecated as a consequence of FormatterFactory being deprecated.
private static Map<String, Object>
private Map<String, Object>
private Object
variableToObjectEx(Mf2DataModel.Value value, Map<String, Object> arguments)

Deprecated as a consequence of Mf2DataModel.Value being deprecated.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

customFunctionsback to summary
pack-priv final Mf2FunctionRegistry customFunctions

Deprecated

as a consequence of Mf2FunctionRegistry being deprecated. See corresponding docs for further information.

dmback to summary
private final Mf2DataModel dm

Deprecated

as a consequence of Mf2DataModel being deprecated. See corresponding docs for further information.

EMPTY_REGISTYback to summary
private static final Mf2FunctionRegistry EMPTY_REGISTY

Deprecated

as a consequence of Mf2FunctionRegistry being deprecated. See corresponding docs for further information.

localeback to summary
private final Locale locale
standardFunctionsback to summary
pack-priv final Mf2FunctionRegistry standardFunctions

Deprecated

as a consequence of Mf2FunctionRegistry being deprecated. See corresponding docs for further information.

Constructor Detail

Mf2DataModelFormatterback to summary
pack-priv Mf2DataModelFormatter(Mf2DataModel dm, Locale locale, Mf2FunctionRegistry customFunctionRegistry)

Deprecated

as a consequence of Mf2DataModel and Mf2FunctionRegistry being deprecated. See corresponding docs for further information.

Method Detail

findBestMatchingPatternback to summary
private Mf2DataModel.Pattern findBestMatchingPattern(List<Mf2DataModel.Expression> selectors, Map<String, Object> arguments)

Deprecated

as a consequence of Mf2DataModel.Pattern being deprecated. See corresponding docs for further information.

formatback to summary
pack-priv String format(Map<String, Object> arguments)
formatPlaceholderback to summary
private FormattedPlaceholder formatPlaceholder(Mf2DataModel.Expression ph, Map<String, Object> arguments, boolean localExpression)

Deprecated

as a consequence of Mf2DataModel.Expression and FormattedPlaceholder being deprecated. See corresponding docs for further information.

getFormattingFunctionFactoryByNameback to summary
pack-priv FormatterFactory getFormattingFunctionFactoryByName(Object toFormat, String functionName)

Deprecated

as a consequence of FormatterFactory being deprecated. See corresponding docs for further information.

mf2OptToFixedOptionsback to summary
private static Map<String, Object> mf2OptToFixedOptions(Map<String, Mf2DataModel.Value> options)
mf2OptToVariableOptionsback to summary
private Map<String, Object> mf2OptToVariableOptions(Map<String, Mf2DataModel.Value> options, Map<String, Object> arguments)
variableToObjectExback to summary
private Object variableToObjectEx(Mf2DataModel.Value value, Map<String, Object> arguments)

Deprecated

as a consequence of Mf2DataModel.Value being deprecated. See corresponding docs for further information.