public abstract class SchemaFactory extends Object
Modifier | Constructor and Description |
---|---|
protected |
SchemaFactory() |
Modifier and Type | Method and Description |
---|---|
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. |
abstract Schema |
newSchema()
Creates a special schema.
|
Schema |
newSchema(File schema)
Returns a schema based on the specified source file.
|
Schema |
newSchema(Source schema)
Returns a schema based on the specified source resource.
|
abstract Schema |
newSchema(Source[] schemata)
Parses the specified sources, and combine them into a single schema.
|
Schema |
newSchema(URL schema)
Returns a schema based on the specified URL.
|
abstract void |
setErrorHandler(ErrorHandler errorHandler) |
void |
setFeature(String name,
boolean value) |
void |
setProperty(String name,
Object value) |
abstract void |
setResourceResolver(LSResourceResolver resourceResolver) |
protected SchemaFactory()
public static final SchemaFactory newInstance(String schemaLanguage)
SchemaFactory
that supports
the specified schema language.schemaLanguage
- the URI of a schema language (see
XMLConstants
)public abstract boolean isSchemaLanguageSupported(String schemaLanguage)
schemaLanguage
- the URI of a schema language (see
XMLConstants
)public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
public abstract ErrorHandler getErrorHandler()
public abstract void setErrorHandler(ErrorHandler errorHandler)
public abstract LSResourceResolver getResourceResolver()
public abstract void setResourceResolver(LSResourceResolver resourceResolver)
public Schema newSchema(Source schema) throws SAXException
schema
- the source resourceSAXException
public Schema newSchema(File schema) throws SAXException
schema
- the source resourceSAXException
public Schema newSchema(URL schema) throws SAXException
schema
- the source resourceSAXException
public abstract Schema newSchema(Source[] schemata) throws SAXException
schemata
- the schema resources to loadSAXException
public abstract Schema newSchema() throws SAXException
SAXException