Class MFFunctionRegistry.Builder

  • Enclosing class:
    MFFunctionRegistry

    @Deprecated
    public static class MFFunctionRegistry.Builder
    extends Object
    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 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 a FunctionFactory.
        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 a FunctionFactory function 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 of MFFunctionRegistry.
        Returns:
        the function registry created.
        Status:
        Technology Preview. This API is still in the early stages of development. Use at your own risk.