Package io.lionweb.lioncore.java.emf
Class AbstractEMFImporter<E>
java.lang.Object
io.lionweb.lioncore.java.emf.AbstractEMFImporter<E>
- Type Parameters:
E- kind of imported element
- Direct Known Subclasses:
EMFMetamodelImporter,EMFModelImporter
Importer that given an EMF Resource imports something out of it.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionimportFile(File emfFile) Import the file.importInputStream(InputStream inputStream) Load the resource from the given InputStream.importInputStream(InputStream inputStream, ResourceType resourceType) importInputStream(InputStream inputStream, ResourceType resourceType, Consumer<org.eclipse.emf.ecore.EPackage.Registry> packageRegistryInit) Import a given resource as a list of elements.importInputStream(InputStream inputStream, Consumer<org.eclipse.emf.ecore.EPackage.Registry> packageRegistryInit) Load the resource from the given InputStream.importResource(org.eclipse.emf.ecore.resource.Resource resource)
-
Field Details
-
conceptsToEClassesMapping
-
-
Constructor Details
-
AbstractEMFImporter
public AbstractEMFImporter() -
AbstractEMFImporter
-
-
Method Details
-
importFile
Import the file. The resource type is derived from the extension. -
importInputStream
public List<E> importInputStream(InputStream inputStream, Consumer<org.eclipse.emf.ecore.EPackage.Registry> packageRegistryInit) throws IOException Load the resource from the given InputStream. The Resource is considered to be of type Ecore.- Throws:
IOException
-
importInputStream
Load the resource from the given InputStream. The Resource is considered to be of type Ecore.- Throws:
IOException
-
importInputStream
public List<E> importInputStream(InputStream inputStream, ResourceType resourceType) throws IOException - Throws:
IOException
-
importInputStream
public List<E> importInputStream(InputStream inputStream, ResourceType resourceType, Consumer<org.eclipse.emf.ecore.EPackage.Registry> packageRegistryInit) throws IOException Import a given resource as a list of elements.- Throws:
IOException
-
importResource
-