com.thalesgroup.dtkit.util.validator
Class ValidationService.Resolver

java.lang.Object
  extended by com.thalesgroup.dtkit.util.validator.ValidationService.Resolver
All Implemented Interfaces:
org.w3c.dom.ls.LSResourceResolver
Enclosing class:
ValidationService

protected static class ValidationService.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.


Constructor Summary
protected ValidationService.Resolver()
           
 
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
 

Constructor Detail

ValidationService.Resolver

protected ValidationService.Resolver()
Method Detail

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 query
namespace - The target namespace (in the case of a schema document)
publicId - The public ID
systemId - 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.