Class XMLCatalogResolverExtension
java.lang.Object
org.eclipse.lemminx.extensions.contentmodel.uriresolver.XMLCatalogResolverExtension
- All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLEntityResolver,URIResolverExtension
XML catalog URI resolver.
-
Field Summary
Fields inherited from interface org.eclipse.lemminx.uriresolver.URIResolverExtension
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpandSystemId(String path) String[]Get the XML catalogs.getName()voidRefresh the XML catalogs.org.apache.xerces.xni.parser.XMLInputSourceresolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier) booleansetCatalogs(String[] catalogs) Initialize catalogs path.voidsetRootUri(String rootUri) Set the root URI
-
Constructor Details
-
XMLCatalogResolverExtension
public XMLCatalogResolverExtension()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceURIResolverExtension
-
resolve
- Specified by:
resolvein interfaceURIResolverExtension- Parameters:
baseURI- - the location of the resource that contains the uripublicId- - an optional public identifier (i.e. namespace name), or null if nonesystemId- - an absolute or relative URI, or null if none- Returns:
- an absolute URI representation of the 'logical' location of the resource
-
resolveEntity
public org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier) throws org.apache.xerces.xni.XNIException, IOException - Specified by:
resolveEntityin interfaceURIResolverExtension- Specified by:
resolveEntityin interfaceorg.apache.xerces.xni.parser.XMLEntityResolver- Throws:
org.apache.xerces.xni.XNIExceptionIOException
-
setRootUri
Set the root URI- Parameters:
rootUri- the root URI
-
setCatalogs
Initialize catalogs path.- Parameters:
catalogs- the catalog path array.- Returns:
- true if catalogs changed and false otherwise
-
expandSystemId
-
refreshCatalogs
public void refreshCatalogs()Refresh the XML catalogs. -
getCatalogs
Get the XML catalogs.
-