Top Description Fields Constructors Methods
com.ctc.wstx.msv

public Class W3CSchemaFactory

extends BaseSchemaFactory
Class Inheritance
Annotations
@ServiceProvider:XMLValidationSchemaFactory
Imports
javax.xml.parsers.SAXParserFactory, javax.xml.stream.*, aQute.bnd.annotation.spi.ServiceProvider, org.xml.sax.InputSource, org.codehaus.stax2.validation.*, com.sun.msv.grammar.xmlschema.XMLSchemaGrammar, com.sun.msv.reader.GrammarReaderController, com.sun.msv.reader.xmlschema.XMLSchemaReader

This is a StAX2 schema factory that can parse and create schema instances for creating validators that validate documents to check their validity against specific W3C Schema instances. It requires Sun Multi-Schema Validator (http://www.sun.com/software/xml/developers/multischema/) to work, and acts as a quite thin wrapper layer, similar to how matching RelaxNG validator works

Field Summary

Modifier and TypeField and Description
protected final GrammarReaderController
mDummyController

For now, there's no need for fine-grained error/problem reporting infrastructure, so let's just use a dummy controller.

Inherited from com.ctc.wstx.msv.BaseSchemaFactory:
mConfigsSaxFactory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected XMLValidationSchema
Inherited from com.ctc.wstx.msv.BaseSchemaFactory:
createSchemacreateSchemacreateSchemacreateSchemagetPropertygetSaxFactoryisPropertySupportedsetProperty

Field Detail

mDummyControllerback to summary
protected final GrammarReaderController mDummyController

For now, there's no need for fine-grained error/problem reporting infrastructure, so let's just use a dummy controller.

Constructor Detail

W3CSchemaFactoryback to summary
public W3CSchemaFactory()

Method Detail

loadSchemaback to summary
protected XMLValidationSchema loadSchema(InputSource src, Object sysRef) throws XMLStreamException

Implements abstract com.ctc.wstx.msv.BaseSchemaFactory.loadSchema.

Annotations
@Override