Package com.ibm.icu.message2
Class Mf2FunctionRegistry.Builder
java.lang.Object
com.ibm.icu.message2.Mf2FunctionRegistry.Builder
- Enclosing class:
Mf2FunctionRegistry
Deprecated.
This API is for technology preview only.
A
Builder
used to build instances of Mf2FunctionRegistry
.-
Method Summary
Modifier and TypeMethodDescriptionaddAll
(Mf2FunctionRegistry functionRegistry) Deprecated.This API is for technology preview only.build()
Deprecated.This API is for technology preview only.Deprecated.This API is for technology preview only.Deprecated.This API is for technology preview only.Deprecated.This API is for technology preview only.removeDefaultFormatterNameForType
(Class<?> clazz) Deprecated.This API is for technology preview only.removeFormatter
(String formatterName) Deprecated.This API is for technology preview only.removeSelector
(String selectorName) Deprecated.This API is for technology preview only.setDefaultFormatterNameForType
(Class<?> clazz, String formatterName) Deprecated.This API is for technology preview only.setFormatter
(String formatterName, FormatterFactory formatterFactory) Deprecated.This API is for technology preview only.setSelector
(String selectorName, SelectorFactory selectorFactory) Deprecated.This API is for technology preview only.
-
Method Details
-
addAll
Deprecated.This API is for technology preview only.Adds all the mapping from another registry to this one.- Parameters:
functionRegistry
- the registry to copy from.- Returns:
- the builder, for fluent use.
-
setFormatter
@Deprecated public Mf2FunctionRegistry.Builder setFormatter(String formatterName, FormatterFactory formatterFactory) Deprecated.This API is for technology preview only.Adds a mapping from a formatter name to aFormatterFactory
- Parameters:
formatterName
- the function name (as used in the MessageFormat 2 syntax).formatterFactory
- the factory that handles the name.- Returns:
- the builder, for fluent use.
-
removeFormatter
Deprecated.This API is for technology preview only.Remove the formatter associated with the name.- Parameters:
formatterName
- the name of the formatter to remove.- Returns:
- the builder, for fluent use.
-
clearFormatters
Deprecated.This API is for technology preview only.Remove all the formatter mappings.- Returns:
- the builder, for fluent use.
-
setDefaultFormatterNameForType
@Deprecated public Mf2FunctionRegistry.Builder setDefaultFormatterNameForType(Class<?> clazz, String formatterName) Deprecated.This API is for technology preview only.Adds a mapping from a type to format to aFormatterFactory
formatter name.- Parameters:
clazz
- the class of the type to format.formatterName
- the formatter name (as used in the MessageFormat 2 syntax).- Returns:
- the builder, for fluent use.
-
removeDefaultFormatterNameForType
Deprecated.This API is for technology preview only.Remove the function name associated with the class.- Parameters:
clazz
- the class to remove the mapping for.- Returns:
- the builder, for fluent use.
-
clearDefaultFormatterNames
Deprecated.This API is for technology preview only.Remove all the class to formatter-names mappings.- Returns:
- the builder, for fluent use.
-
setSelector
@Deprecated public Mf2FunctionRegistry.Builder setSelector(String selectorName, SelectorFactory selectorFactory) Deprecated.This API is for technology preview only.Adds a mapping from a selector name to aSelectorFactory
- Parameters:
selectorName
- the function name (as used in the MessageFormat 2 syntax).selectorFactory
- the factory that handles the name.- Returns:
- the builder, for fluent use.
-
removeSelector
Deprecated.This API is for technology preview only.Remove the selector associated with the name.- Parameters:
selectorName
- the name of the selector to remove.- Returns:
- the builder, for fluent use.
-
clearSelectors
Deprecated.This API is for technology preview only.Remove all the selector mappings.- Returns:
- the builder, for fluent use.
-
build
Deprecated.This API is for technology preview only.Builds an instance ofMf2FunctionRegistry
.- Returns:
- the function registry created.
-