javax.xml.validation
public abstract class SchemaFactory extends Object
Since: 1.5
Constructor Summary | |
---|---|
protected | SchemaFactory() |
Method Summary | |
---|---|
abstract ErrorHandler | getErrorHandler() |
boolean | getFeature(String name) |
Object | getProperty(String name) |
abstract LSResourceResolver | getResourceResolver() |
abstract boolean | isSchemaLanguageSupported(String schemaLanguage)
Indicates whether the specified schema language is supported. |
static SchemaFactory | newInstance(String schemaLanguage)
Returns an implementation of SchemaFactory that supports
the specified schema language. |
Schema | newSchema(Source schema)
Returns a schema based on the specified source resource. |
Schema | newSchema(File schema)
Returns a schema based on the specified source file. |
Schema | newSchema(URL schema)
Returns a schema based on the specified URL. |
abstract Schema | newSchema(Source[] schemata)
Parses the specified sources, and combine them into a single schema.
|
abstract Schema | newSchema()
Creates a special schema.
|
abstract void | setErrorHandler(ErrorHandler errorHandler) |
void | setFeature(String name, boolean value) |
void | setProperty(String name, Object value) |
abstract void | setResourceResolver(LSResourceResolver resourceResolver) |
Parameters: schemaLanguage the URI of a schema language (see
XMLConstants
)
SchemaFactory
that supports
the specified schema language.Parameters: schemaLanguage the URI of a schema language (see
XMLConstants
)
Parameters: schema the source resource
Parameters: schema the source resource
Parameters: schema the source resource
Parameters: schemata the schema resources to load