Sets the LSResourceResolver to customize
resource resolution while in a validation episode.
Validator uses a LSResourceResolver
when it needs to locate external resources while a validation,
although exactly what constitutes "locating external resources" is
up to each schema language.
When the LSResourceResolver is null, the implementation will
behave as if the following LSResourceResolver is set:
class DumbLSResourceResolver implementsLSResourceResolver{ publicorg.w3c.dom.ls.LSInputresolveResource( String publicId, String systemId, String baseURI) { return null; // always return null } }
If a LSResourceResolver throws a RuntimeException
(or instances of its derived classes),
then the Validator will abort the parsing and
the caller of the validate method will receive
the same RuntimeException.
When a new Validator object is created, initially
this field is set to null.
resourceResolver
| A new resource resolver to be set. This parameter can be null. |
Diagram: validation