Class ResourceFileExtension
java.lang.Object
com.amalgamasimulation.emf.common.ResourceFileExtension
This class contains file extensions used as keys in the
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceFileExtensionstatic final ResourceFileExtensionstatic final ResourceFileExtensionstatic final ResourceFileExtension -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToMapping(org.eclipse.emf.ecore.resource.Resource.Factory factory) Add a mapping from the file extension represented by this object to the 'factory' object.File extension, e.g., "txt".static ResourceFileExtensionfromFilePath(String filePath) void
-
Field Details
-
TXT
-
XLSX
-
ZIP
-
EMPTY
-
-
Method Details
-
fromFilePath
-
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()
-