public final class XMLSchemaFactory extends SchemaFactory
SchemaFactory
for XML Schema.Constructor and Description |
---|
XMLSchemaFactory() |
Modifier and Type | Method and Description |
---|---|
ErrorHandler |
getErrorHandler() |
boolean |
getFeature(String name) |
Object |
getProperty(String name) |
LSResourceResolver |
getResourceResolver() |
boolean |
isSchemaLanguageSupported(String schemaLanguage)
Is specified schema supported by this
SchemaFactory ? |
Schema |
newSchema() |
Schema |
newSchema(Source[] schemas) |
Schema |
newSchema(XMLGrammarPool pool) |
void |
setErrorHandler(ErrorHandler errorHandler) |
void |
setFeature(String name,
boolean value) |
void |
setProperty(String name,
Object object) |
void |
setResourceResolver(LSResourceResolver resourceResolver) |
newInstance, newInstance, newSchema, newSchema, newSchema
public boolean isSchemaLanguageSupported(String schemaLanguage)
Is specified schema supported by this SchemaFactory
?
isSchemaLanguageSupported
in class 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
.NullPointerException
- If schemaLanguage
is null
.IllegalArgumentException
- If schemaLanguage.length() == 0
or schemaLanguage
does not specify a valid schema language.public LSResourceResolver getResourceResolver()
getResourceResolver
in class SchemaFactory
public void setResourceResolver(LSResourceResolver resourceResolver)
setResourceResolver
in class SchemaFactory
public ErrorHandler getErrorHandler()
getErrorHandler
in class SchemaFactory
public void setErrorHandler(ErrorHandler errorHandler)
setErrorHandler
in class SchemaFactory
public Schema newSchema(Source[] schemas) throws SAXException
newSchema
in class SchemaFactory
SAXException
public Schema newSchema() throws SAXException
newSchema
in class SchemaFactory
SAXException
public Schema newSchema(XMLGrammarPool pool) throws SAXException
SAXException
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getFeature
in class SchemaFactory
SAXNotRecognizedException
SAXNotSupportedException
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getProperty
in class SchemaFactory
SAXNotRecognizedException
SAXNotSupportedException
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
setFeature
in class SchemaFactory
SAXNotRecognizedException
SAXNotSupportedException
public void setProperty(String name, Object object) throws SAXNotRecognizedException, SAXNotSupportedException
setProperty
in class SchemaFactory
SAXNotRecognizedException
SAXNotSupportedException
Copyright © 2019 JBoss by Red Hat. All rights reserved.