public class StandaloneModelLoader extends AbstractModelLoader
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
PERMITTED_URI_SCHEMES |
PERMITTED_MODEL_FILE_EXTENSIONS| Constructor and Description |
|---|
StandaloneModelLoader() |
StandaloneModelLoader(ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.emf.ecore.resource.Resource |
createUMLResource(URI resolvedModelURI) |
protected org.eclipse.emf.ecore.resource.Resource |
createXSDResource(URI resolvedModelURI) |
protected Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> |
getCustomURIMap() |
IPackage |
loadModel(URI uri)
Loads any supported model format, provided the targeted file has an appropriate extension.
|
protected void |
validateBaseURI(URI baseURI) |
protected void |
validateModelURI(URI modelURI) |
loadModel, loadModel, loadModel, loadModelpublic StandaloneModelLoader()
public StandaloneModelLoader(ClassLoader classLoader)
protected Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> getCustomURIMap()
public 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 IModelLoaderloadModel in class AbstractModelLoaderuri - the URI identifying the model locationIPackage representing the XSD or UML model referenced by
modelURI, never nullModelLoadingException - If an error is encountered loading the modelprotected org.eclipse.emf.ecore.resource.Resource createUMLResource(URI resolvedModelURI)
createUMLResource in class AbstractModelLoaderprotected org.eclipse.emf.ecore.resource.Resource createXSDResource(URI resolvedModelURI)
createXSDResource in class AbstractModelLoaderprotected void validateBaseURI(URI baseURI) throws ModelLoadingException
validateBaseURI in class AbstractModelLoaderModelLoadingExceptionprotected void validateModelURI(URI modelURI) throws ModelLoadingException
validateModelURI in class AbstractModelLoaderModelLoadingExceptionCopyright © 2006-2013. All Rights Reserved.