javax.xml.validation
Class SchemaFactory
- java.lang.Object
- javax.xml.validation.SchemaFactory
public abstract class SchemaFactory
extends java.lang.Object
 Factory for obtaining schemata.
- 1.3
SchemaFactory
protected SchemaFactory()
isSchemaLanguageSupported
public boolean isSchemaLanguageSupported(String schemaLanguage)
 Indicates whether the specified schema language is supported.
- schemaLanguage- the URI of a schema language (see- XMLConstants)
newInstance
public static final SchemaFactory newInstance(String schemaLanguage)
 Returns an implementation of SchemaFactory that supports
 the specified schema language.
- schemaLanguage- the URI of a schema language (see- XMLConstants)
newSchema
public Schema newSchema()
            throws SAXException Creates a special schema.
 The exact semantics of this depends on the schema language.
newSchema
public Schema newSchema(File schema)
            throws SAXException Returns a schema based on the specified source file.
- schema- the source resource
newSchema
public Schema newSchema(URL schema)
            throws SAXException Returns a schema based on the specified URL.
- schema- the source resource
newSchema
public Schema newSchema(Source schema)
            throws SAXException Returns a schema based on the specified source resource.
- schema- the source resource
newSchema
public Schema newSchema(Source[] schemata)
            throws SAXException Parses the specified sources, and combine them into a single schema.
 The exact procedure and semantics of this depends on the schema
 language.
- schemata- the schema resources to load
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)