public interface CatalogModel extends EntityResolver, LSResourceResolver
Modifier and Type | Method and Description |
---|---|
ModelSource |
getModelSource(URI locationURI)
Given the location parameter (schemaLocation for schema and location for wsdl)
this method should return ModelSource object containing the concrete FileObject
of the locally stored file.
|
ModelSource |
getModelSource(URI locationURI,
ModelSource modelSourceOfSourceDocument)
Given the location parameter (schemaLocation for schema and location for wsdl)
this method should return ModelSource object containing the concrete FileObject
of the locally stored file.
|
resolveEntity
resolveResource
ModelSource getModelSource(URI locationURI) throws CatalogModelException
locationURI
- CatalogModelException
- CatalogModelException will be throw for the following:
1. If the file that was supposed to be there but not found. This case a
FileNotFoundException is wrapped inside
2. If a (java)File object could not be created from the retrived catalog
entry.URISyntaxException will be wrapped inside DepResolverException.
3. IOException will be wrapped around if a (NB)FileObject could not be
created from the File object for various reasons by NB moduleModelSource getModelSource(URI locationURI, ModelSource modelSourceOfSourceDocument) throws CatalogModelException
locationURI
- modelSourceOfSourceDocument
- CatalogModelException
- CatalogModelException will be throw for the following:
1. If the file that was supposed to be there but not found. This case a
FileNotFoundException is wrapped inside
2. If a (java)File object could not be created from the retrived catalog
entry.URISyntaxException will be wrapped inside DepResolverException.
3. IOException will be wrapped around if a (NB)FileObject could not be
created from the File object for various reasons by NB module