Interface IReport


public interface IReport
A property
Since:
1.0, 15/04/2008
Author:
vlygeros
See Also:
  • Method Details

    • reset

      void reset()
      Resets errors, warnings, successes, reports.
    • addError

      void addError(String error)
      Adds an error.
      Parameters:
      error - The String error to add.
    • addWarning

      void addWarning(String warning)
      Adds a warning.
      Parameters:
      warning - The String warning to add.
    • addDebug

      void addDebug(String debug)
      Adds a debugs.
      Parameters:
      debug - The String debug to add.
    • addSuccess

      @Deprecated void addSuccess(String success)
      Deprecated.
      use addInfo method instead
      Adds a info
      Parameters:
      success - The String info to add.
    • addInfo

      void addInfo(String info)
      Adds a info.
      Parameters:
      info - The String info to add.
    • addReport

      void addReport(IReport reportCollector)
      Adds a report.
      Parameters:
      reportCollector -
    • getErrors

      Collection<String> getErrors()
      Gets the errors.
      Returns:
      A collection of String objects.
    • getWarnings

      Collection<String> getWarnings()
      Gets the warnings.
      Returns:
      A collection of String objects.
    • getDebugs

      Collection<String> getDebugs()
      Gets the debugs.
      Returns:
      A collection of String objects.
    • getSuccesses

      @Deprecated Collection<String> getSuccesses()
      Deprecated.
      use getInfos method instead
      Gets the infos.
      Returns:
      A collection of String objects.
    • getInfos

      Collection<String> getInfos()
      Gets the infos.
      Returns:
      A collection of String objects.
    • isError

      boolean isError()
      Checks if there is at least an error.
      Returns:
      true if an error was added, false otherwise.
    • isWarning

      boolean isWarning()
      Checks if there is at least a warning.
      Returns:
      true if a warning was added, false otherwise.
    • isDebug

      boolean isDebug()
      Checks if there is at least a debug.
      Returns:
      true if a debug was added, false otherwise.
    • isSuccess

      @Deprecated boolean isSuccess()
      Deprecated.
      use isInfo method instead
      Checks if there is at least a info.
      Returns:
      true if a info was added, false otherwise.
    • isInfo

      boolean isInfo()
      Checks if there is at least a info.
      Returns:
      true if a info was added, false otherwise.
    • write

      String write()
      Writes the report to a String object.
      Returns:
      The String containing the report.