com.thalesgroup.dtkit.util.validator
Class ValidatorUtil.Resolver
java.lang.Object
com.thalesgroup.dtkit.util.validator.ValidatorUtil.Resolver
- All Implemented Interfaces:
- org.w3c.dom.ls.LSResourceResolver
- Enclosing class:
- ValidatorUtil
protected static class ValidatorUtil.Resolver
- extends java.lang.Object
- implements org.w3c.dom.ls.LSResourceResolver
Inner class to implement a resource resolver. This version always returns null, which
has the same effect as not supplying a resource resolver at all. The LSResourceResolver
is part of the DOM Level 3 load/save module.
|
Method Summary |
org.w3c.dom.ls.LSInput |
resolveResource(java.lang.String type,
java.lang.String namespace,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseURI)
Resolve a reference to a resource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidatorUtil.Resolver
protected ValidatorUtil.Resolver()
resolveResource
public org.w3c.dom.ls.LSInput resolveResource(java.lang.String type,
java.lang.String namespace,
java.lang.String publicId,
java.lang.String systemId,
java.lang.String baseURI)
- Resolve a reference to a resource
- Specified by:
resolveResource in interface org.w3c.dom.ls.LSResourceResolver
- Parameters:
type - The type of resource, for example a schema, source XML document, or querynamespace - The target namespace (in the case of a schema document)publicId - The public IDsystemId - The system identifier (as written, possibly a relative URI)baseURI - The base URI against which the system identifier should be resolved
- Returns:
- an LSInput object typically containing the character stream or byte stream identified
by the supplied parameters; or null if the reference cannot be resolved or if the resolver chooses
not to resolve it.
Copyright © 2010. All Rights Reserved.