Javax.xml.validation.ValidatorHandler Class



Introduction

The javax.xml.validation.ValidatorHandler class is a streaming validator that works on SAX stream.A ValidatorHandler object is not thread-safe and not reentrant.

Class declaration

Following is the declaration for javax.xml.validation.ValidatorHandler class:

public abstract class ValidatorHandler
   extends Object
      implements ContentHandler

Class constructors

S.N. Constructor & Description
1 protected ValidatorHandler()

This is the constructor for derived classes.

Class methods

S.N. Method & Description
1

abstract ContentHandler getContentHandler()

This method gets the ContentHandler which receives the augmented validation result.

2

abstract ErrorHandler getErrorHandler()

This method gets the current ErrorHandler set to this ValidatorHandler.

3

boolean getFeature(String name)

This method look up the value of a feature flag.

4

Object getProperty(String name)

This method look up the value of a property.

5

abstract LSResourceResolver getResourceResolver()

This method gets the current LSResourceResolver set to this ValidatorHandler.

6

abstract TypeInfoProvider getTypeInfoProvider()

This method Obtains the TypeInfoProvider implementation of this ValidatorHandler.

7

abstract void setContentHandler(ContentHandler receiver)

This method sets the ContentHandler which receives the augmented validation result.

8

abstract void setErrorHandler(ErrorHandler errorHandler)

This method sets the ErrorHandler to receive errors encountered during the validation.

9

void setFeature(String name, boolean value)

This method sets a feature for this ValidatorHandler.

10

void setProperty(String name, Object object)

This method sets the value of a property.

11

abstract void setResourceResolver(LSResourceResolver resourceResolver)

This method sets the LSResourceResolver to customize resource resolution while in a validation episode.

Methods inherited

This class inherits methods from the following classes −

java.lang.Object

Advertisements