Package com.ctc.wstx.msv
Class W3CSchemaFactory
- java.lang.Object
-
- org.codehaus.stax2.validation.XMLValidationSchemaFactory
-
- com.ctc.wstx.msv.BaseSchemaFactory
-
- com.ctc.wstx.msv.W3CSchemaFactory
-
public class W3CSchemaFactory extends BaseSchemaFactory
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
Fields Modifier and Type Field Description protected com.sun.msv.reader.GrammarReaderController
mDummyController
For 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, sSaxFactory
-
-
Constructor Summary
Constructors Constructor Description W3CSchemaFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.codehaus.stax2.validation.XMLValidationSchema
loadSchema(InputSource src, Object sysRef)
-
Methods inherited from class com.ctc.wstx.msv.BaseSchemaFactory
createSchema, createSchema, createSchema, createSchema, getProperty, getSaxFactory, isPropertySupported, setProperty
-
-
-
-
Method Detail
-
loadSchema
protected org.codehaus.stax2.validation.XMLValidationSchema loadSchema(InputSource src, Object sysRef) throws XMLStreamException
- Specified by:
loadSchema
in classBaseSchemaFactory
- Throws:
XMLStreamException
-
-