Class EMFCSVSaver<E extends org.eclipse.emf.ecore.EObject>

java.lang.Object
com.amalgamasimulation.emf.excel.EMFTransform<E>
com.amalgamasimulation.emf.csv.EMFCSVTransform<E>
com.amalgamasimulation.emf.csv.EMFCSVSaver<E>
All Implemented Interfaces:
EMFLoaderFactory<E>, EMFSaver<E>, EMFSaverAndLoaderFactory<E>, EMFSaverFactory<E>, ErrorsContainer

public class EMFCSVSaver<E extends org.eclipse.emf.ecore.EObject> extends EMFCSVTransform<E> implements EMFSaver<E>
  • Field Summary

    Fields inherited from class com.amalgamasimulation.emf.excel.EMFTransform

    resourceErrors, resourceWarnings
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    EMFCSVSaver(com.amalgamasimulation.emf.excel.EMFSetting emfSetting, E rootObject, String filePath)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Checks that the data to be saved meets the limitations imposed by the file format.
    boolean
    Saves the data model to a file.

    Methods inherited from class com.amalgamasimulation.emf.csv.EMFCSVTransform

    createLoader, createResourceSetInternal, createSaver

    Methods inherited from class com.amalgamasimulation.emf.excel.EMFTransform

    addClassWithIgnoredIdentifiers, addCustomTableHandler, addDistributionFlattenings, addIgnoredClass, addIgnoredStructuralFeature, addPackage, clearErrorsAndWarnings, getEmfSetting, getErrors, getErrorsAndWarnings, getWarnings, setColumnHeaderProvider, setCustomSheetName, setCustomSheetName, setCustomUniqIdOnSheet, setRootClass, setValuesConverter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    clearErrorsAndWarnings, getErrors, getWarnings
  • Constructor Details

    • EMFCSVSaver

      protected EMFCSVSaver(com.amalgamasimulation.emf.excel.EMFSetting emfSetting, E rootObject, String filePath)
  • Method Details

    • save

      public boolean save()
      Description copied from interface: EMFSaver
      Saves the data model to a file. Returns true if saving was successful, and false otherwise.
      Specified by:
      save in interface EMFSaver<E extends org.eclipse.emf.ecore.EObject>
      Returns:
      true if saving was successful, and false otherwise.
    • getSaveObstacles

      public List<String> getSaveObstacles()
      Description copied from interface: EMFSaver
      Checks that the data to be saved meets the limitations imposed by the file format.
      Specified by:
      getSaveObstacles in interface EMFSaver<E extends org.eclipse.emf.ecore.EObject>
      Returns:
      List of errors (as String-type messages) that prevent saving data to a file. If no errors are found, an empty list is returned.