public class URIResolverExtensionManager extends Object implements URIResolverExtension, IExternalGrammarLocationProvider
DEFAULT
DOCTYPE, NO_NAMESPACE_SCHEMA_LOCATION, RELAXNG, SCHEMA_LOCATION
Constructor and Description |
---|
URIResolverExtensionManager() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getExternalGrammarLocation(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) |
ResolvedURIInfo |
resolveInfo(String baseLocation,
String publicId,
String systemId) |
void |
unregisterResolver(URIResolverExtension resolver)
Unregister an URI resolver.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
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 URIResolverExtension
baseLocation
- - 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 ResolvedURIInfo resolveInfo(String baseLocation, String publicId, String systemId)
public 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.XMLEntityResolver
resolveEntity
in interface URIResolverExtension
org.apache.xerces.xni.XNIException
IOException
public Map<String,String> getExternalGrammarLocation(URI fileURI)
IExternalGrammarLocationProvider
http://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).
getExternalGrammarLocation
in interface IExternalGrammarLocationProvider
Map
associating the external-schemaLocation and/or
external-noNamespaceSchemaLocation to the schema locationCopyright © 2022. All rights reserved.