com.sodius.mdw.core.model.emf
Class EMFXMIModelReader
java.lang.Object
com.sodius.mdw.core.model.emf.EMFModelReader
com.sodius.mdw.core.model.emf.EMFXMIModelReader
- All Implemented Interfaces:
- ModelReader
public class EMFXMIModelReader
- extends EMFModelReader
Default EMF based implementation to handle XMI uris.
This implementation is able to deal with XMI versions from 1.0 to 2.1.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMFXMIModelReader
public EMFXMIModelReader()
createResource
protected Resource createResource(URI uri,
ConnectorContext context)
- This implementation reads the XMI header and creates a resource that can handle the XMI version found.
- Specified by:
createResource in class EMFModelReader
- Parameters:
uri - the URI to load.context - the context in which the connector runs
- Returns:
- the created resource.
createXMIResource
protected Resource createXMIResource(URI uri,
ConnectorContext context,
XMIHeader header)
- Creates a resource that can handle the XMI version found
createOptions
protected Map<String,Object> createOptions(ConnectorContext context)
- Sets default XMI options.
- Overrides:
createOptions in class EMFModelReader
- Parameters:
context - the context in which the connector runs
- Returns:
- the options to pass to the resource.