public class URIResolverExtensionManager extends Object implements URIResolverExtension, IExternalSchemaLocationProvider
NO_NAMESPACE_SCHEMA_LOCATION, SCHEMA_LOCATION| Constructor and Description |
|---|
URIResolverExtensionManager() |
| Modifier and Type | Method and Description |
|---|---|
Map |
getExternalSchemaLocation(URI fileURI)
Provided the file path URI, this will return the external schema location.
|
void |
registerResolver(URIResolverExtension resolver)
Register an URI resolver.
|
String |
resolve(String baseLocation,
String publicId,
String systemId) |
org.apache.xerces.xni.parser.XMLInputSource |
resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier) |
void |
unregisterResolver(URIResolverExtension resolver)
Unregister an URI resolver.
|
public void registerResolver(URIResolverExtension resolver)
resolver - the URI resolver to register.public void unregisterResolver(URIResolverExtension resolver)
resolver - the URI resolver to unregister.public String resolve(String baseLocation, String publicId, String systemId)
resolve in interface URIResolverExtensionbaseLocation - - 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 nonepublic org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier)
throws org.apache.xerces.xni.XNIException,
IOException
resolveEntity in interface org.apache.xerces.xni.parser.XMLEntityResolverresolveEntity in interface URIResolverExtensionorg.apache.xerces.xni.XNIExceptionIOExceptionpublic Map getExternalSchemaLocation(URI fileURI)
IExternalSchemaLocationProviderhttp://apache.org/xml/properties/schema/external-schemaLocation - The value for this property follows the same rules as the schemaLocation attribute for an XML document (i.e., multiple schemas are acceptable and must be white-space separated).
http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation - The value for this property follows the same rules as the noNamespaceSchemaLocation attribute for an XML document (i.e., only one schema is allowed).
getExternalSchemaLocation in interface IExternalSchemaLocationProviderMap associating the external-schemaLocation and/or
external-noNamespaceSchemaLocation to the schema locationCopyright © 2020. All rights reserved.