public class XMLFileAssociationResolverExtension extends Object implements URIResolverExtension, IExternalGrammarLocationProvider
DEFAULT
DOCTYPE, NO_NAMESPACE_SCHEMA_LOCATION, RELAXNG, SCHEMA_LOCATION
Constructor and Description |
---|
XMLFileAssociationResolverExtension() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getExternalGrammarLocation(URI fileURI)
Provided the file path URI, this will return the external schema location.
|
String |
getName() |
String |
resolve(String baseLocation,
String publicId,
String systemId) |
boolean |
setFileAssociations(XMLFileAssociation[] fileAssociations) |
void |
setRootUri(String rootUri)
Set the root URI
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolveEntity
public String getName()
getName
in interface URIResolverExtension
public boolean setFileAssociations(XMLFileAssociation[] fileAssociations)
fileAssociations
- 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 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 locationpublic void setRootUri(String rootUri)
rootUri
- the root URICopyright © 2022. All rights reserved.