Class AbstractReport

    • Field Detail

      • SESSION_REPORT_CLASS

        public static final java.lang.String SESSION_REPORT_CLASS
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractReport

        public AbstractReport()
    • Method Detail

      • addError

        public void addError​(java.lang.Object obj)
        Description copied from interface: InterfaceReport
        Adds an error object to the list of errors that occured during the report.

        Specified by:
        addError in interface InterfaceReport
        Parameters:
        obj - the error object
      • addWarning

        public void addWarning​(java.lang.Object obj)
        Description copied from interface: InterfaceReport
        Adds a warning object to the list of warnings that occured during the report.

        Specified by:
        addWarning in interface InterfaceReport
        Parameters:
        obj - the error object
      • formatRuntime

        public java.lang.String formatRuntime()
        Description copied from interface: InterfaceReport
        Formats the runtime formatted as "hh:mm:ss".

        Specified by:
        formatRuntime in interface InterfaceReport
        Returns:
        the runtime formatted as "hh:mm:ss"
      • getErrors

        public java.util.List<java.lang.Object> getErrors()
        Description copied from interface: InterfaceReport
        Returns a list of all errors that occured during the report.

        Specified by:
        getErrors in interface InterfaceReport
        Returns:
        an error list that occured during the report
      • getLocale

        public java.util.Locale getLocale()
        Description copied from interface: InterfaceReport
        Returns the locale this report was initialized with.

        Specified by:
        getLocale in interface InterfaceReport
        Returns:
        the locale this report was initialized with
      • getRuntime

        public long getRuntime()
        Description copied from interface: InterfaceReport
        Returns the time this report has been running.

        Specified by:
        getRuntime in interface InterfaceReport
        Returns:
        the time this report has been running
      • getWarnings

        public java.util.List<java.lang.Object> getWarnings()
        Description copied from interface: InterfaceReport
        Returns a list of all warnings that occured during the report.

        Specified by:
        getWarnings in interface InterfaceReport
        Returns:
        a warning list that occured during the report
      • hasError

        public boolean hasError()
        Description copied from interface: InterfaceReport
        Returns if the report generated an error output.

        Specified by:
        hasError in interface InterfaceReport
        Returns:
        true if the report generated an error, otherwise false
      • hasWarning

        public boolean hasWarning()
        Description copied from interface: InterfaceReport
        Returns if the report generated a warning output.

        Specified by:
        hasWarning in interface InterfaceReport
        Returns:
        true if the report generated a warning, otherwise false
      • init

        protected void init​(java.util.Locale locale)
        Initializes some member variables for this report.

        Parameters:
        locale - the locale for this report
      • print

        public void print​(java.lang.String value)
        Prints a String to the report.

        Specified by:
        print in interface InterfaceReport
        Parameters:
        value - the String to add
      • print

        public abstract void print​(java.lang.String value,
                                   int format)
        Prints a String to the report, using the indicated formatting.

        Use the contants starting with FORMAT from this interface to indicate which formatting to use.

        Specified by:
        print in interface InterfaceReport
        Parameters:
        value - the message container to add
        format - the formatting to use for the output
      • println

        public void println​(java.lang.String value)
        Prints a String with line break to the report.

        Specified by:
        println in interface InterfaceReport
        Parameters:
        value - the message container to add
      • println

        public void println​(java.lang.String value,
                            int format)
        Prints a String with line break to the report, using the indicated formatting.

        Use the contants starting with FORMAT from this interface to indicate which formatting to use.

        Specified by:
        println in interface InterfaceReport
        Parameters:
        value - the String to add
        format - the formatting to use for the output