public final class XMLSchemaFactory
extends javax.xml.validation.SchemaFactory
SchemaFactory for XML Schema.| Constructor and Description |
|---|
XMLSchemaFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.xml.sax.ErrorHandler |
getErrorHandler() |
boolean |
getFeature(java.lang.String name) |
java.lang.Object |
getProperty(java.lang.String name) |
org.w3c.dom.ls.LSResourceResolver |
getResourceResolver() |
boolean |
isSchemaLanguageSupported(java.lang.String schemaLanguage)
Is specified schema supported by this
SchemaFactory? |
javax.xml.validation.Schema |
newSchema() |
javax.xml.validation.Schema |
newSchema(javax.xml.transform.Source[] schemas) |
javax.xml.validation.Schema |
newSchema(org.apache.xerces.xni.grammars.XMLGrammarPool pool) |
void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler) |
void |
setFeature(java.lang.String name,
boolean value) |
void |
setProperty(java.lang.String name,
java.lang.Object object) |
void |
setResourceResolver(org.w3c.dom.ls.LSResourceResolver resourceResolver) |
public boolean isSchemaLanguageSupported(java.lang.String schemaLanguage)
Is specified schema supported by this SchemaFactory?
isSchemaLanguageSupported in class javax.xml.validation.SchemaFactoryschemaLanguage - Specifies the schema language which the returned SchemaFactory will understand.
schemaLanguage must specify a valid schema language.true if SchemaFactory supports schemaLanguage, else false.java.lang.NullPointerException - If schemaLanguage is null.java.lang.IllegalArgumentException - If schemaLanguage.length() == 0
or schemaLanguage does not specify a valid schema language.public org.w3c.dom.ls.LSResourceResolver getResourceResolver()
getResourceResolver in class javax.xml.validation.SchemaFactorypublic void setResourceResolver(org.w3c.dom.ls.LSResourceResolver resourceResolver)
setResourceResolver in class javax.xml.validation.SchemaFactorypublic org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler in class javax.xml.validation.SchemaFactorypublic void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
setErrorHandler in class javax.xml.validation.SchemaFactorypublic javax.xml.validation.Schema newSchema(javax.xml.transform.Source[] schemas)
throws org.xml.sax.SAXException
newSchema in class javax.xml.validation.SchemaFactoryorg.xml.sax.SAXExceptionpublic javax.xml.validation.Schema newSchema()
throws org.xml.sax.SAXException
newSchema in class javax.xml.validation.SchemaFactoryorg.xml.sax.SAXExceptionpublic javax.xml.validation.Schema newSchema(org.apache.xerces.xni.grammars.XMLGrammarPool pool)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic boolean getFeature(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
getFeature in class javax.xml.validation.SchemaFactoryorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic java.lang.Object getProperty(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
getProperty in class javax.xml.validation.SchemaFactoryorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic void setFeature(java.lang.String name,
boolean value)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
setFeature in class javax.xml.validation.SchemaFactoryorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionpublic void setProperty(java.lang.String name,
java.lang.Object object)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
setProperty in class javax.xml.validation.SchemaFactoryorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedExceptionCopyright ? 1999-2010 The Apache Software Foundation. All Rights Reserved.