Interface SystemDataFormatter

    • Method Detail

      • format

        String format​(String parameterisedString,
                      Map<String,​Serializable> parameterValues)
        Formats the given parameterised string according to the needs of the SystemDataConsumer it is used by.
        Parameters:
        parameterisedString - the parameterised string to be formatted
        parameterValues - map containing values for all parameters referenced in the parameterised string
        Returns:
        the formatted string
        Throws:
        IllegalArgumentException - if a parameter value is missing or doesn't have the correct type (unless the formatter decides to handle these cases differently)
      • format

        String format​(String parameterisedString,
                      Map<String,​Serializable> parameterValues,
                      Locale locale)
        Formats the given parameterised string according to the needs of the SystemDataConsumer it is used by.
        Parameters:
        parameterisedString - the parameterised string to be formatted
        parameterValues - map containing values for all parameters referenced in the parameterised string
        locale - the locale used to format the string; may be null
        Returns:
        the formatted string
        Throws:
        IllegalArgumentException - if a parameter value is missing or doesn't have the correct type (unless the formatter decides to handle these cases differently)