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 voidcreateResourceAndSave(EObject root, String filename, FileLocationConfiguration locationConfiguration, org.apache.log4j.Logger logger) Creates a newResourceforrootand stores it as XMI file to the location derived from thelocationConfiguration.static voidSaves a modified resource.
-
Method Details
-
createResourceAndSave
public static void createResourceAndSave(EObject root, String filename, FileLocationConfiguration locationConfiguration, org.apache.log4j.Logger logger) Creates a newResourceforrootand 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-
-