Class Mf2FunctionRegistry.Builder

  • Enclosing class:
    Mf2FunctionRegistry

    @Deprecated
    public static class Mf2FunctionRegistry.Builder
    extends java.lang.Object
    Deprecated.
    This API is for technology preview only.
    A Builder used to build instances of Mf2FunctionRegistry.
    • Method Detail

      • addAll

        @Deprecated
        public Mf2FunctionRegistry.Builder addAll​(Mf2FunctionRegistry 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.
      • setFormatter

        @Deprecated
        public Mf2FunctionRegistry.Builder setFormatter​(java.lang.String formatterName,
                                                        FormatterFactory formatterFactory)
        Deprecated.
        This API is for technology preview only.
        Adds a mapping from a formatter name to a FormatterFactory
        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
        public Mf2FunctionRegistry.Builder removeFormatter​(java.lang.String formatterName)
        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
        public Mf2FunctionRegistry.Builder 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​(java.lang.Class<?> clazz,
                                                                          java.lang.String formatterName)
        Deprecated.
        This API is for technology preview only.
        Adds a mapping from a type to format to a FormatterFactory 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
        public Mf2FunctionRegistry.Builder removeDefaultFormatterNameForType​(java.lang.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.
      • clearDefaultFormatterNames

        @Deprecated
        public Mf2FunctionRegistry.Builder 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​(java.lang.String selectorName,
                                                       SelectorFactory selectorFactory)
        Deprecated.
        This API is for technology preview only.
        Adds a mapping from a selector name to a SelectorFactory
        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
        public Mf2FunctionRegistry.Builder removeSelector​(java.lang.String selectorName)
        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
        public Mf2FunctionRegistry.Builder clearSelectors()
        Deprecated.
        This API is for technology preview only.
        Remove all the selector mappings.
        Returns:
        the builder, for fluent use.
      • build

        @Deprecated
        public Mf2FunctionRegistry build()
        Deprecated.
        This API is for technology preview only.
        Builds an instance of Mf2FunctionRegistry.
        Returns:
        the function registry created.