|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nrl.parser.model.loader.AbstractModelLoader
public abstract class AbstractModelLoader
Field Summary | |
---|---|
static Set<String> |
PERMITTED_MODEL_FILE_EXTENSIONS
|
Constructor Summary | |
---|---|
AbstractModelLoader()
|
Method Summary | |
---|---|
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)
Convenience method that converts baseFile to a URI and
modelURI to a URI taking care to escape illegal characters. |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Set<String> PERMITTED_MODEL_FILE_EXTENSIONS
Constructor Detail |
---|
public AbstractModelLoader()
Method Detail |
---|
protected abstract org.eclipse.emf.ecore.resource.Resource createUMLResource(URI resolvedModelURI) throws ModelLoadingException
ModelLoadingException
protected abstract org.eclipse.emf.ecore.resource.Resource createXSDResource(URI resolvedModelURI) throws ModelLoadingException
ModelLoadingException
public IPackage loadModel(URI uri) throws ModelLoadingException
IModelLoader
classpath
or file
schemes.
When invoked with equivalent URI
s the loader will return the same IPackage
.
loadModel
in interface IModelLoader
uri
- the URI identifying the model location
IPackage
representing the XSD or UML model referenced by
modelURI
, never null
ModelLoadingException
- If an error is encountered loading the modelpublic final IPackage loadModel(File baseFile, String modelURI) throws ModelLoadingException
IModelLoader
baseFile
to a URI
and
modelURI
to a URI
taking care to escape illegal characters. See
IModelLoader.loadModel(URI, URI)
.
loadModel
in interface IModelLoader
ModelLoadingException
public final IPackage loadModel(File baseFile, URI modelURI) throws ModelLoadingException
IModelLoader
baseFile
to a URI
. See
IModelLoader.loadModel(URI, URI)
.
loadModel
in interface IModelLoader
ModelLoadingException
public final IPackage loadModel(URI baseURI, String modelURI) throws ModelLoadingException
IModelLoader
modelURI
to a URI
taking care to escape
illegal characters. See IModelLoader.loadModel(URI, URI)
.
loadModel
in interface IModelLoader
ModelLoadingException
public final IPackage loadModel(URI baseURI, URI modelURI) throws ModelLoadingException
IModelLoader
classpath
or file
schemes.
When invoked with equivalent URI
s the loader will return the same IPackage
.
loadModel
in interface IModelLoader
baseURI
- 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 null
ModelLoadingException
- If an error is encountered loading the modelprotected abstract void validateBaseURI(URI baseURI) throws ModelLoadingException
ModelLoadingException
protected abstract void validateModelURI(URI modelURI) throws ModelLoadingException
ModelLoadingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |