Class XMLLoggingGenerator

  • All Implemented Interfaces:
    adams.core.CleanUpHandler, adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.io.FileWriter, adams.core.io.PrettyPrintingSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.SizeOfHandler, Serializable

    public class XMLLoggingGenerator
    extends AbstractOutInterceptorGenerator<XMLLoggingOutInterceptor>
    implements adams.core.io.PrettyPrintingSupporter, adams.core.io.FileWriter
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_PrettyPrinting

        protected boolean m_PrettyPrinting
        whether to use pretty-printing.
      • m_OutputFile

        protected adams.core.io.PlaceholderFile m_OutputFile
        the optional output file to write the XML messages to.
    • Constructor Detail

      • XMLLoggingGenerator

        public XMLLoggingGenerator()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • getDefaultLoggingLevel

        protected adams.core.logging.LoggingLevel getDefaultLoggingLevel()
        Returns the default logging level to use.
        Overrides:
        getDefaultLoggingLevel in class adams.core.option.AbstractOptionHandler
        Returns:
        the logging level
      • setPrettyPrinting

        public void setPrettyPrinting​(boolean value)
        Sets whether to use pretty-printing or not.
        Specified by:
        setPrettyPrinting in interface adams.core.io.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 adams.core.io.PrettyPrintingSupporter
        Returns:
        true if to use pretty-printing
      • prettyPrintingTipText

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

        public void setOutputFile​(adams.core.io.PlaceholderFile value)
        Sets the output file in use. Ignored if pointing to a directory.
        Specified by:
        setOutputFile in interface adams.core.io.FileWriter
        Parameters:
        value - the output file
      • getOutputFile

        public adams.core.io.PlaceholderFile getOutputFile()
        Returns the output file in use. Ignored if pointing to a directory.
        Specified by:
        getOutputFile in interface adams.core.io.FileWriter
        Returns:
        the output file
      • outputFileTipText

        public String outputFileTipText()
        Returns the tip text for this property.
        Specified by:
        outputFileTipText in interface adams.core.io.FileWriter
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.