Class ResourceFileExtension

java.lang.Object
com.amalgamasimulation.emf.common.ResourceFileExtension

public class ResourceFileExtension extends Object
This class contains file extensions used as keys in the Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().
  • Field Details

  • Method Details

    • fromFilePath

      public static ResourceFileExtension fromFilePath(String filePath)
    • extension

      public String extension()
      File extension, e.g., "txt".
    • addToMapping

      public void addToMapping(org.eclipse.emf.ecore.resource.Resource.Factory factory)
      Add a mapping from the file extension represented by this object to the 'factory' object. The mapping is added to the 'Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap()' map.
      See Also:
    • removeFromMapping

      public void removeFromMapping()