Package com.ibm.icu.message2
Class MFFunctionRegistry.Builder
- java.lang.Object
-
- com.ibm.icu.message2.MFFunctionRegistry.Builder
-
- Enclosing class:
- MFFunctionRegistry
@Deprecated public static class MFFunctionRegistry.Builder extends Object
Deprecated.This API is for technology preview only.ABuilderused to build instances ofMFFunctionRegistry.- Status:
- Technology Preview. This API is still in the early stages of development. Use at your own risk.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MFFunctionRegistry.BuilderaddAll(MFFunctionRegistry functionRegistry)Deprecated.This API is for technology preview only.MFFunctionRegistrybuild()Deprecated.This API is for technology preview only.MFFunctionRegistry.BuilderclearDefaultFunctionNames()Deprecated.This API is for technology preview only.MFFunctionRegistry.BuilderclearFunctions()Deprecated.This API is for technology preview only.MFFunctionRegistry.BuilderremoveDefaultFunctionNameForType(Class<?> clazz)Deprecated.This API is for technology preview only.MFFunctionRegistry.BuilderremoveFunction(String functionName)Deprecated.This API is for technology preview only.MFFunctionRegistry.BuildersetDefaultFunctionNameForType(Class<?> clazz, String functionName)Deprecated.This API is for technology preview only.MFFunctionRegistry.BuildersetFunction(String functionName, FunctionFactory functionFactory)Deprecated.This API is for technology preview only.
-
-
-
Method Detail
-
addAll
@Deprecated public MFFunctionRegistry.Builder addAll(MFFunctionRegistry functionRegistry)
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 public MFFunctionRegistry.Builder removeFunction(String functionName)
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 public MFFunctionRegistry.Builder 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 public MFFunctionRegistry.Builder removeDefaultFunctionNameForType(Class<?> clazz)
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 public MFFunctionRegistry.Builder 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 public MFFunctionRegistry 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.
-
-