Package com.amalgamasimulation.emf.json
Class EMFJSONSaver<E extends org.eclipse.emf.ecore.EObject>
java.lang.Object
com.amalgamasimulation.emf.json.EMFJSONSaverAndLoaderFactory<E>
com.amalgamasimulation.emf.json.EMFJSONSaver<E>
- All Implemented Interfaces:
EMFLoaderFactory<E>,EMFSaver<E>,EMFSaverAndLoaderFactory<E>,EMFSaverFactory<E>,ErrorsContainer
public class EMFJSONSaver<E extends org.eclipse.emf.ecore.EObject>
extends EMFJSONSaverAndLoaderFactory<E>
implements EMFSaver<E>
-
Field Summary
Fields inherited from class com.amalgamasimulation.emf.json.EMFJSONSaverAndLoaderFactory
emfModuleModifier, ePackages, resourceErrors, resourceWarnings, simpleModuleModifier -
Constructor Summary
Constructors -
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.json.EMFJSONSaverAndLoaderFactory
clearErrorsAndWarnings, createJsonResourceFactory, createLoader, createSaver, customFieldsSimpleModule, emfModule, getErrors, getWarnings, setEmfModuleModifier, setSimpleModuleModifierMethods 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
-
EMFJSONSaver
-
-
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.
-