Interface Formatter

    • Method Detail

      • getDelimiter

        String getDelimiter()
        Gets the delimiter used by this Formatter.
        Returns:
      • setDelimiter

        void setDelimiter​(String delimiter)
        Sets the delimiter used by this formatter.
        Parameters:
        delimiter -
      • getHeader

        String getHeader()
        Gets the header, if any, approriate to this formatter.
        Returns:
        the heaader, if any, approriate to this formatter.
      • clear

        void clear()
        Clears this formatter of any data that has been added for formatting.
      • addData

        void addData​(String id,
                     Object obj)
        Adds the specified object to the data to be formatted.
        Parameters:
        id - the id of the data to add
        obj - the object to add
      • formatData

        String formatData()
        Formats the data that has been added to this Formatter.
        Returns:
        the formatted data.
      • getFormatType

        FormatType getFormatType()
        Gets the type associated with this Formatter.
        Returns:
        the type associated with this Formatter.