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.SchemaFactory
schemaLanguage
- 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.SchemaFactory
public void setResourceResolver(org.w3c.dom.ls.LSResourceResolver resourceResolver)
setResourceResolver
in class javax.xml.validation.SchemaFactory
public org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler
in class javax.xml.validation.SchemaFactory
public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
setErrorHandler
in class javax.xml.validation.SchemaFactory
public javax.xml.validation.Schema newSchema(javax.xml.transform.Source[] schemas) throws org.xml.sax.SAXException
newSchema
in class javax.xml.validation.SchemaFactory
org.xml.sax.SAXException
public javax.xml.validation.Schema newSchema() throws org.xml.sax.SAXException
newSchema
in class javax.xml.validation.SchemaFactory
org.xml.sax.SAXException
public javax.xml.validation.Schema newSchema(org.apache.xerces.xni.grammars.XMLGrammarPool pool) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public boolean getFeature(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
getFeature
in class javax.xml.validation.SchemaFactory
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public java.lang.Object getProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
getProperty
in class javax.xml.validation.SchemaFactory
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void setFeature(java.lang.String name, boolean value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setFeature
in class javax.xml.validation.SchemaFactory
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public 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.SchemaFactory
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
Copyright ? 1999-2010 The Apache Software Foundation. All Rights Reserved.