Package org.annotationsmox.util
Class EMFHelper
java.lang.Object
org.annotationsmox.util.EMFHelper
Utility methods for storing EMF model elements into XMI files.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createResourceAndSave
(EObject root, String filename, FileLocationConfiguration locationConfiguration, org.apache.log4j.Logger logger) Creates a newResource
forroot
and stores it as XMI file to the location derived from thelocationConfiguration
.static void
Saves a modified resource.
-
Method Details
-
createResourceAndSave
public static void createResourceAndSave(EObject root, String filename, FileLocationConfiguration locationConfiguration, org.apache.log4j.Logger logger) Creates a newResource
forroot
and stores it as XMI file to the location derived from thelocationConfiguration
.- Parameters:
root
- the element to be storedfilename
- the filename of the XMI file to be createdlocationConfiguration
- the location configurationlogger
-
-
save
Saves a modified resource.- Parameters:
resource
- the resource to be savedlogger
-
-