Class DOMToString

    • Field Detail

      • m_Encoding

        protected BaseCharset m_Encoding
        the encoding to use.
      • m_PrettyPrinting

        protected boolean m_PrettyPrinting
        whether to use pretty printing.
      • m_NumSpaces

        protected int m_NumSpaces
        the number of spaces to use for indentation.
    • Constructor Detail

      • DOMToString

        public DOMToString()
    • Method Detail

      • setEncoding

        public void setEncoding​(BaseCharset value)
        Sets the encoding to use.
        Parameters:
        value - the encoding, e.g. "UTF-8" or "UTF-16", empty string for default
      • getEncoding

        public BaseCharset getEncoding()
        Returns the encoding to use.
        Returns:
        the encoding, e.g. "UTF-8" or "UTF-16", empty string for default
      • encodingTipText

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

        public void setPrettyPrinting​(boolean value)
        Sets whether to use pretty-printing or not.
        Specified by:
        setPrettyPrinting in interface PrettyPrintingSupporter
        Parameters:
        value - true if to use pretty-printing
      • getPrettyPrinting

        public boolean getPrettyPrinting()
        Returns whether pretty-printing is used or not.
        Specified by:
        getPrettyPrinting in interface PrettyPrintingSupporter
        Returns:
        true if to use pretty-printing
      • prettyPrintingTipText

        public String prettyPrintingTipText()
        Returns the tip text for this property.
        Specified by:
        prettyPrintingTipText in interface PrettyPrintingSupporter
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setNumSpaces

        public void setNumSpaces​(int value)
        Sets the number of spaces to use for pretty printing.
        Parameters:
        value - the number of spaces
      • getNumSpaces

        public int getNumSpaces()
        Returns the number of spaces to use for pretty printing.
        Returns:
        the number of spaces
      • numSpacesTipText

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