public abstract class AbstractModelLoader extends Object implements IModelLoader
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
PERMITTED_MODEL_FILE_EXTENSIONS |
| Constructor and Description |
|---|
AbstractModelLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.eclipse.emf.ecore.resource.Resource |
createUMLResource(URI resolvedModelURI) |
protected abstract org.eclipse.emf.ecore.resource.Resource |
createXSDResource(URI resolvedModelURI) |
IPackage |
loadModel(File baseFile,
String modelURI)
|
IPackage |
loadModel(File baseFile,
URI modelURI)
Convenience method that converts
baseFile to a URI. |
IPackage |
loadModel(URI uri)
Loads any supported model format, provided the targeted file has an appropriate extension.
|
IPackage |
loadModel(URI baseURI,
String modelURI)
Convenience method that converts
modelURI to a URI taking care to escape
illegal characters. |
IPackage |
loadModel(URI baseURI,
URI modelURI)
Loads any supported model format, provided the targeted file has an appropriate extension.
|
protected abstract void |
validateBaseURI(URI baseURI) |
protected abstract void |
validateModelURI(URI modelURI) |
protected abstract org.eclipse.emf.ecore.resource.Resource createUMLResource(URI resolvedModelURI) throws ModelLoadingException
ModelLoadingExceptionprotected abstract org.eclipse.emf.ecore.resource.Resource createXSDResource(URI resolvedModelURI) throws ModelLoadingException
ModelLoadingExceptionpublic IPackage loadModel(URI uri) throws ModelLoadingException
IModelLoaderclasspath or file schemes.
When invoked with equivalent URIs the loader will return the same IPackage.loadModel in interface IModelLoaderuri - the URI identifying the model locationIPackage representing the XSD or UML model referenced by
modelURI, never nullModelLoadingException - If an error is encountered loading the modelpublic final IPackage loadModel(File baseFile, String modelURI) throws ModelLoadingException
IModelLoaderbaseFile to a URI and
modelURI to a URI taking care to escape illegal characters. See
IModelLoader.loadModel(URI, URI).loadModel in interface IModelLoaderModelLoadingExceptionpublic final IPackage loadModel(File baseFile, URI modelURI) throws ModelLoadingException
IModelLoaderloadModel in interface IModelLoaderModelLoadingExceptionpublic final IPackage loadModel(URI baseURI, String modelURI) throws ModelLoadingException
IModelLoadermodelURI to a URI taking care to escape
illegal characters. See IModelLoader.loadModel(URI, URI).loadModel in interface IModelLoaderModelLoadingExceptionpublic final IPackage loadModel(URI baseURI, URI modelURI) throws ModelLoadingException
IModelLoaderclasspath or file schemes.
When invoked with equivalent URIs the loader will return the same IPackage.loadModel in interface IModelLoaderbaseURI - An absolute URI used to resolve modelURI if it is relative.modelURI - An absolute or relative (to baseURI) URI referencing a model
file.IPackage representing the XSD or UML model referenced by
modelURI, never nullModelLoadingException - If an error is encountered loading the modelprotected abstract void validateBaseURI(URI baseURI) throws ModelLoadingException
ModelLoadingExceptionprotected abstract void validateModelURI(URI modelURI) throws ModelLoadingException
ModelLoadingExceptionCopyright © 2006-2013. All Rights Reserved.