public class XMLFileAssociationResolverExtension extends Object implements URIResolverExtension, IExternalSchemaLocationProvider
NO_NAMESPACE_SCHEMA_LOCATION, SCHEMA_LOCATION
Constructor and Description |
---|
XMLFileAssociationResolverExtension() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getExternalSchemaLocation(URI fileURI)
Provided the file path URI, this will return the external schema location.
|
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 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> getExternalSchemaLocation(URI fileURI)
IExternalSchemaLocationProvider
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).
getExternalSchemaLocation
in interface IExternalSchemaLocationProvider
Map
associating the external-schemaLocation and/or
external-noNamespaceSchemaLocation to the schema locationpublic void setRootUri(String rootUri)
rootUri
- the root URICopyright © 2020. All rights reserved.