Class MFFunctionRegistry.Builder

  • Enclosing class:
    MFFunctionRegistry

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

      • formattersMap

        private final java.util.Map<java.lang.String,​FormatterFactory> formattersMap
        Deprecated.
      • selectorsMap

        private final java.util.Map<java.lang.String,​SelectorFactory> selectorsMap
        Deprecated.
      • classToFormatter

        private final java.util.Map<java.lang.Class<?>,​java.lang.String> classToFormatter
        Deprecated.
    • Constructor Detail

      • Builder

        private Builder()
        Deprecated.
    • 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.
      • setFormatter

        @Deprecated
        public MFFunctionRegistry.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 MFFunctionRegistry.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 MFFunctionRegistry.Builder clearFormatters()
        Deprecated.
        This API is for technology preview only.
        Remove all the formatter mappings.
        Returns:
        the builder, for fluent use.
      • setDefaultFormatterNameForType

        @Deprecated
        public MFFunctionRegistry.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 MFFunctionRegistry.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 MFFunctionRegistry.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 MFFunctionRegistry.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 MFFunctionRegistry.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 MFFunctionRegistry.Builder clearSelectors()
        Deprecated.
        This API is for technology preview only.
        Remove all the selector mappings.
        Returns:
        the builder, for fluent use.
      • build

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