Interface EMFLoader<E extends org.eclipse.emf.ecore.EObject>

All Superinterfaces:
ErrorsContainer
All Known Implementing Classes:
EMFCSVLoader, com.amalgamasimulation.emf.excel.EMFExcelLoader, EMFExcelLoaderWithEdapt, EMFJSONLoader, EMFPartCSVLoader, EMFPartExcelLoader

public interface EMFLoader<E extends org.eclipse.emf.ecore.EObject> extends ErrorsContainer
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the root object of the EMF data model if the file has been loaded and null otherwise.
    boolean
    Checks if the file was loaded successfully, i.e.
    boolean
    Tries to load the file.
    boolean
    load(boolean readWorkbookProperties)
    Tries to load the file.

    Methods inherited from interface com.amalgamasimulation.emf.common.ErrorsContainer

    clearErrorsAndWarnings, getErrors, getWarnings
  • Method Details

    • load

      boolean load()
      Tries to load the file. Returns true if loading completed successfully, i.e. without errors. Note that in this case there still can be warnings.
      Returns:
      true if loading completed successfully, false otherwise
    • load

      boolean load(boolean readWorkbookProperties)
      Tries to load the file. Returns true if loading completed successfully, i.e. without errors. Note that in this case there still can be warnings.
      Parameters:
      readWorkbookProperties - whether or not to read custom properties of the workbook. These properties define index of first data rows and columns. Reading these properties can slow down loading big data files
      Returns:
      true if loading completed successfully, false otherwise
    • getRootObject

      E getRootObject()
      Returns the root object of the EMF data model if the file has been loaded and null otherwise.
      Returns:
      root object of the EMF data model, or null
      See Also:
    • isLoaded

      boolean isLoaded()
      Checks if the file was loaded successfully, i.e. without any errors. Returns false if the file has not yet been loaded.
      Returns:
      true if the file was loaded without any errors, false otherwise