Javax.xml.validation.Schema Class



Introduction

The javax.xml.validation.Schema class is an Immutable in-memory representation of grammar.Following are the important points about validation.Schema −

  • A Schema object is thread safe and applications are encouraged to share it across many parsers in many threads.

  • A Schema object is usually created from SchemaFactory.

Class declaration

Following is the declaration for javax.xml.validation.Schema class −

public abstract class Schema
   extends Object

Class constructors

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

This is the constructor for derived class.

Class methods

S.N. Method & Description
1

abstract Validator newValidator()

This method creates a new Validator for this Schema.

2

abstract ValidatorHandler newValidatorHandler()

This method creates a new ValidatorHandler for this Schema.

Methods inherited

This class inherits methods from the following classes −

java.lang.Object

Advertisements