public abstract class SchemaFactory extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
SchemaFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.xml.sax.ErrorHandler |
getErrorHandler() |
boolean |
getFeature(java.lang.String name) |
java.lang.Object |
getProperty(java.lang.String name) |
abstract org.w3c.dom.ls.LSResourceResolver |
getResourceResolver() |
abstract boolean |
isSchemaLanguageSupported(java.lang.String schemaLanguage)
Indicates whether the specified schema language is supported.
|
static SchemaFactory |
newInstance(java.lang.String schemaLanguage)
Returns an implementation of
SchemaFactory that supports
the specified schema language. |
abstract Schema |
newSchema()
Creates a special schema.
|
Schema |
newSchema(java.io.File schema)
Returns a schema based on the specified source file.
|
Schema |
newSchema(javax.xml.transform.Source schema)
Returns a schema based on the specified source resource.
|
abstract Schema |
newSchema(javax.xml.transform.Source[] schemata)
Parses the specified sources, and combine them into a single schema.
|
Schema |
newSchema(java.net.URL schema)
Returns a schema based on the specified URL.
|
abstract void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler) |
void |
setFeature(java.lang.String name,
boolean value) |
void |
setProperty(java.lang.String name,
java.lang.Object value) |
abstract void |
setResourceResolver(org.w3c.dom.ls.LSResourceResolver resourceResolver) |
protected SchemaFactory()
public static final SchemaFactory newInstance(java.lang.String schemaLanguage)
SchemaFactory that supports
the specified schema language.schemaLanguage - the URI of a schema language (see
XMLConstants)public abstract boolean isSchemaLanguageSupported(java.lang.String schemaLanguage)
schemaLanguage - the URI of a schema language (see
XMLConstants)public boolean getFeature(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
org.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic void setFeature(java.lang.String name, boolean value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
org.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic java.lang.Object getProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
org.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic void setProperty(java.lang.String name, java.lang.Object value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
org.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic abstract org.xml.sax.ErrorHandler getErrorHandler()
public abstract void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
public abstract org.w3c.dom.ls.LSResourceResolver getResourceResolver()
public abstract void setResourceResolver(org.w3c.dom.ls.LSResourceResolver resourceResolver)
public Schema newSchema(javax.xml.transform.Source schema) throws org.xml.sax.SAXException
schema - the source resourceorg.xml.sax.SAXExceptionpublic Schema newSchema(java.io.File schema) throws org.xml.sax.SAXException
schema - the source resourceorg.xml.sax.SAXExceptionpublic Schema newSchema(java.net.URL schema) throws org.xml.sax.SAXException
schema - the source resourceorg.xml.sax.SAXExceptionpublic abstract Schema newSchema(javax.xml.transform.Source[] schemata) throws org.xml.sax.SAXException
schemata - the schema resources to loadorg.xml.sax.SAXException