Package com.amalgamasimulation.emf.csv
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
ConstructorsModifierConstructorDescriptionprotectedEMFCSVSaver(com.amalgamasimulation.emf.excel.EMFSetting emfSetting, E rootObject, String filePath) -
Method Summary
Modifier and TypeMethodDescriptionChecks that the data to be saved meets the limitations imposed by the file format.booleansave()Saves the data model to a file.Methods inherited from class com.amalgamasimulation.emf.csv.EMFCSVTransform
createLoader, createResourceSetInternal, createSaverMethods inherited from class com.amalgamasimulation.emf.excel.EMFTransform
addClassWithIgnoredIdentifiers, addCustomTableHandler, addDistributionFlattenings, addIgnoredClass, addIgnoredStructuralFeature, addPackage, clearErrorsAndWarnings, getEmfSetting, getErrors, getErrorsAndWarnings, getWarnings, setColumnHeaderProvider, setCustomSheetName, setCustomSheetName, setCustomUniqIdOnSheet, setRootClass, setValuesConverterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amalgamasimulation.emf.common.ErrorsContainer
clearErrorsAndWarnings, getErrors, getWarnings
-
Constructor Details
-
EMFCSVSaver
-
-
Method Details
-
save
public boolean save()Description copied from interface:EMFSaverSaves the data model to a file. Returnstrueif saving was successful, andfalseotherwise. -
getSaveObstacles
Description copied from interface:EMFSaverChecks that the data to be saved meets the limitations imposed by the file format.- Specified by:
getSaveObstaclesin interfaceEMFSaver<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.
-