public interface IModelLoader
URI-based loader for NRL models. Pass instances to the NRLParser to resolve referenced
models.| Modifier and Type | Method and Description |
|---|---|
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.
|
IPackage loadModel(URI uri) throws ModelLoadingException
classpath or file schemes.
When invoked with equivalent URIs the loader will return the same IPackage.uri - the URI identifying the model locationIPackage representing the XSD or UML model referenced by
modelURI, never nullModelLoadingException - If an error is encountered loading the modelIPackage loadModel(URI baseURI, URI modelURI) throws ModelLoadingException
classpath or file schemes.
When invoked with equivalent URIs the loader will return the same IPackage.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 nullModelLoadingException - If an error is encountered loading the modelIPackage loadModel(File baseFile, URI modelURI) throws ModelLoadingException
ModelLoadingExceptionIPackage loadModel(URI baseURI, String modelURI) throws ModelLoadingException
modelURI to a URI taking care to escape
illegal characters. See loadModel(URI, URI).ModelLoadingExceptionIPackage loadModel(File baseFile, String modelURI) throws ModelLoadingException
baseFile to a URI and
modelURI to a URI taking care to escape illegal characters. See
loadModel(URI, URI).ModelLoadingExceptionCopyright © 2006-2013. All Rights Reserved.