Class MapToPlainText

    • Field Detail

      • m_SortKeys

        protected boolean m_SortKeys
        whether to sort the keys.
      • m_Indentation

        protected int m_Indentation
        how many spaces to use for indentation.
      • m_Conversion

        protected transient MapToString m_Conversion
        the actual conversion.
    • Constructor Detail

      • MapToPlainText

        public MapToPlainText()
    • Method Detail

      • setSortKeys

        public void setSortKeys​(boolean value)
        Sets whether to sort the keys before generating the output.
        Parameters:
        value - true if to sort the keys
      • getSortKeys

        public boolean getSortKeys()
        Returns whether to sort the keys before generating the output.
        Returns:
        true if to sort the keys
      • sortKeysTipText

        public String sortKeysTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setIndentation

        public void setIndentation​(int value)
        Sets the number of spaces to use for indentation.
        Parameters:
        value - the number of spaces
      • getIndentation

        public int getIndentation()
        Returns the number of spaces to use for indentation.
        Returns:
        the number of spaces
      • indentationTipText

        public String indentationTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • toString

        protected String toString​(Map map)
        Converts the map into a string.
        Specified by:
        toString in class AbstractMapToString
        Parameters:
        map - the map to convert
        Returns:
        the generated string