Package com.ctc.wstx.msv
Class RelaxNGSchemaFactory
java.lang.Object
org.codehaus.stax2.validation.XMLValidationSchemaFactory
com.ctc.wstx.msv.BaseSchemaFactory
com.ctc.wstx.msv.RelaxNGSchemaFactory
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
FieldsModifier and TypeFieldDescriptionprotected final com.sun.msv.reader.GrammarReaderControllerFor now, there's no need for fine-grained error/problem reporting infrastructure, so let's just use a dummy controller.Fields inherited from class com.ctc.wstx.msv.BaseSchemaFactory
mConfig, sSaxFactoryFields inherited from class org.codehaus.stax2.validation.XMLValidationSchemaFactory
INTERNAL_ID_SCHEMA_DTD, INTERNAL_ID_SCHEMA_RELAXNG, INTERNAL_ID_SCHEMA_TREX, INTERNAL_ID_SCHEMA_W3C, mSchemaType, P_ENABLE_CACHING, P_IS_NAMESPACE_AWARE, SERVICE_DEFINITION_PATH, SYSTEM_PROPERTY_FOR_IMPL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.codehaus.stax2.validation.XMLValidationSchemaloadSchema(InputSource src, Object sysRef) Methods inherited from class com.ctc.wstx.msv.BaseSchemaFactory
createSchema, createSchema, createSchema, createSchema, getProperty, getSaxFactory, isPropertySupported, setPropertyMethods inherited from class org.codehaus.stax2.validation.XMLValidationSchemaFactory
createSchema, createSchema, createSchema, getSchemaType, newInstance, newInstance
-
Field Details
-
mDummyController
protected final com.sun.msv.reader.GrammarReaderController mDummyControllerFor now, there's no need for fine-grained error/problem reporting infrastructure, so let's just use a dummy controller.
-
-
Constructor Details
-
RelaxNGSchemaFactory
public RelaxNGSchemaFactory()
-
-
Method Details
-
loadSchema
protected org.codehaus.stax2.validation.XMLValidationSchema loadSchema(InputSource src, Object sysRef) throws XMLStreamException - Specified by:
loadSchemain classBaseSchemaFactory- Throws:
XMLStreamException
-