org.infai.emo.matcher.util
Class EcoreXMIModelReader

java.lang.Object
  extended by org.infai.emo.matcher.util.EcoreXMIModelReader

public class EcoreXMIModelReader
extends java.lang.Object

This class reads the model from the given path.
It returns an EMF-Resource containing the model.

Version:
1.0.0
Author:
Stanley Hillner
See Also:
Resource

Field Summary
private  java.lang.String fileExtension
          The extension of the model file.
 
Constructor Summary
EcoreXMIModelReader(java.lang.String fileExtension)
          Constructor that initializes the ModelReader by setting the file-extension.
 
Method Summary
 org.eclipse.emf.ecore.resource.Resource readModel(java.lang.String path)
          Reads the selected model given by the path and returns a resource containing the contents of the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileExtension

private java.lang.String fileExtension
The extension of the model file.

Constructor Detail

EcoreXMIModelReader

public EcoreXMIModelReader(java.lang.String fileExtension)
Constructor that initializes the ModelReader by setting the file-extension.

Parameters:
fileExtension - the file-extension of the selected model
Method Detail

readModel

public org.eclipse.emf.ecore.resource.Resource readModel(java.lang.String path)
Reads the selected model given by the path and returns a resource containing the contents of the model.

Parameters:
path - the path of the model to be read.
Returns:
the resource needed to read the contents of the model.
See Also:
Resource