Interface DocumentLoadHandler

All Known Implementing Classes:
ConsoleDocumentLoadHandler, SwingDocumentLoadHandler

public interface DocumentLoadHandler
Callback interface used by document loaders to report success or failure.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Confirms whether the legacy import should continue.
    boolean
    confirmNewerVersion(String fileVersion, String appVersion)
    Confirms whether the newer version should continue.
    void
    error(String message, Exception ex)
    Reports the error.
  • Method Details

    • confirmLegacyImport

      boolean confirmLegacyImport(File file)
      Confirms whether the legacy import should continue.
      Parameters:
      file - file to read or write
      Returns:
      true when the condition is met; otherwise false
    • confirmNewerVersion

      boolean confirmNewerVersion(String fileVersion, String appVersion)
      Confirms whether the newer version should continue.
      Parameters:
      fileVersion - text value for file version
      appVersion - text value for application version
      Returns:
      true when the condition is met; otherwise false
    • error

      void error(String message, Exception ex)
      Reports the error.
      Parameters:
      message - message shown to the caller or user
      ex - exception that caused the failure