Class MFFunctionRegistry.Builder
java.lang.Object
com.ibm.icu.message2.MFFunctionRegistry.Builder
- Enclosing class:
MFFunctionRegistry
Deprecated.
This API is for technology preview only.
A
Builder used to build instances of MFFunctionRegistry.- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-
Method Summary
Modifier and TypeMethodDescriptionaddAll(MFFunctionRegistry 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.removeDefaultFunctionNameForType(Class<?> clazz) Deprecated.This API is for technology preview only.removeFunction(String functionName) Deprecated.This API is for technology preview only.setDefaultFunctionNameForType(Class<?> clazz, String functionName) Deprecated.This API is for technology preview only.setFunction(String functionName, FunctionFactory functionFactory) 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.
- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-
setFunction
@Deprecated public MFFunctionRegistry.Builder setFunction(String functionName, FunctionFactory functionFactory) Deprecated.This API is for technology preview only.Adds a mapping from a function name to aFunctionFactory.- Parameters:
functionName- the function name (as used in the MessageFormat 2 syntax).functionFactory- the factory that handles the name.- Returns:
- the builder, for fluent use.
- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-
removeFunction
Deprecated.This API is for technology preview only.Remove the function associated with the name.- Parameters:
functionName- the name of the function to remove.- Returns:
- the builder, for fluent use.
- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-
clearFunctions
Deprecated.This API is for technology preview only.Remove all the function mappings.- Returns:
- the builder, for fluent use.
- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-
setDefaultFunctionNameForType
@Deprecated public MFFunctionRegistry.Builder setDefaultFunctionNameForType(Class<?> clazz, String functionName) Deprecated.This API is for technology preview only.Adds a mapping from a type to format to aFunctionFactoryfunction name.- Parameters:
clazz- the class of the type to format.functionName- the unction name (as used in the MessageFormat 2 syntax).- Returns:
- the builder, for fluent use.
- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-
removeDefaultFunctionNameForType
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.
- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-
clearDefaultFunctionNames
Deprecated.This API is for technology preview only.Remove all the class to function-names mappings.- Returns:
- the builder, for fluent use.
- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-
build
Deprecated.This API is for technology preview only.Builds an instance ofMFFunctionRegistry.- Returns:
- the function registry created.
- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-