Class EMFHelper

java.lang.Object
org.annotationsmox.util.EMFHelper

public class EMFHelper extends Object
Utility methods for storing EMF model elements into XMI files.
  • Method Details

    • createResourceAndSave

      public static void createResourceAndSave(EObject root, String filename, FileLocationConfiguration locationConfiguration, org.apache.log4j.Logger logger)
      Creates a new Resource for root and stores it as XMI file to the location derived from the locationConfiguration.
      Parameters:
      root - the element to be stored
      filename - the filename of the XMI file to be created
      locationConfiguration - the location configuration
      logger -
    • save

      public static void save(Resource resource, org.apache.log4j.Logger logger)
      Saves a modified resource.
      Parameters:
      resource - the resource to be saved
      logger -