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

public Class RelaxNGSchemaFactory

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.trex.TREXGrammar, com.sun.msv.reader.GrammarReaderController, com.sun.msv.reader.trex.ng.RELAXNGReader

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 Relax NG specifications. It requires Sun Multi-Schema Validator (http://www.sun.com/software/xml/developers/multischema/) to work, and acts as a quite thin wrapper layer (although not a completely trivial one, since MSV only exports SAX API, some adapting is needed)

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

RelaxNGSchemaFactoryback to summary
public RelaxNGSchemaFactory()

Method Detail

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

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

Annotations
@Override