Class XMLSchemaFactory
- java.lang.Object
-
- javax.xml.validation.SchemaFactory
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.jaxp.validation.XMLSchemaFactory
-
public final class XMLSchemaFactory extends SchemaFactory
SchemaFactory
for XML Schema.- Version:
- $Id$
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Constructor Summary
Constructors Constructor Description XMLSchemaFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorHandler
getErrorHandler()
boolean
getFeature(String name)
Object
getProperty(String name)
LSResourceResolver
getResourceResolver()
boolean
isSchemaLanguageSupported(String schemaLanguage)
Is specified schema supported by thisSchemaFactory
?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)
-
Methods inherited from class javax.xml.validation.SchemaFactory
newInstance, newInstance, newSchema, newSchema, newSchema
-
-
-
-
Method Detail
-
isSchemaLanguageSupported
public boolean isSchemaLanguageSupported(String schemaLanguage)
Is specified schema supported by this
SchemaFactory
?- Specified by:
isSchemaLanguageSupported
in classSchemaFactory
- Parameters:
schemaLanguage
- Specifies the schema language which the returnedSchemaFactory
will understand.schemaLanguage
must specify a valid schema language.- Returns:
true
ifSchemaFactory
supportsschemaLanguage
, elsefalse
.- Throws:
NullPointerException
- IfschemaLanguage
isnull
.IllegalArgumentException
- IfschemaLanguage.length() == 0
orschemaLanguage
does not specify a valid schema language.
-
getResourceResolver
public LSResourceResolver getResourceResolver()
- Specified by:
getResourceResolver
in classSchemaFactory
-
setResourceResolver
public void setResourceResolver(LSResourceResolver resourceResolver)
- Specified by:
setResourceResolver
in classSchemaFactory
-
getErrorHandler
public ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler
in classSchemaFactory
-
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
- Specified by:
setErrorHandler
in classSchemaFactory
-
newSchema
public Schema newSchema(Source[] schemas) throws SAXException
- Specified by:
newSchema
in classSchemaFactory
- Throws:
SAXException
-
newSchema
public Schema newSchema() throws SAXException
- Specified by:
newSchema
in classSchemaFactory
- Throws:
SAXException
-
newSchema
public Schema newSchema(XMLGrammarPool pool) throws SAXException
- Throws:
SAXException
-
getFeature
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
- Overrides:
getFeature
in classSchemaFactory
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
getProperty
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
- Overrides:
getProperty
in classSchemaFactory
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
- Overrides:
setFeature
in classSchemaFactory
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
setProperty
public void setProperty(String name, Object object) throws SAXNotRecognizedException, SAXNotSupportedException
- Overrides:
setProperty
in classSchemaFactory
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
-