Name

Schema

Synopsis

A Schema is an immutable opaque parsed representation of a schema. Schema objects don’t perform validation themselves; instead, they are factories for Validator and ValidatorHandler objects that can be used to validate individual documents.

public abstract class Schema {
// Protected Constructors
     protected Schema( );  
// Public Instance Methods
     public abstract Validator newValidator( );  
     public abstract ValidatorHandler newValidatorHandler( );  
}

Passed To

javax.xml.parsers.DocumentBuilderFactory.setSchema( ), javax.xml.parsers.SAXParserFactory.setSchema( )

Returned By

javax.xml.parsers.DocumentBuilder.getSchema( ), javax.xml.parsers.DocumentBuilderFactory.getSchema( ), javax.xml.parsers.SAXParser.getSchema( ), javax.xml.parsers.SAXParserFactory.getSchema( ), SchemaFactory.newSchema( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.