Package com.ctc.wstx.msv
Class W3CSchema
java.lang.Object
com.ctc.wstx.msv.W3CSchema
- All Implemented Interfaces:
org.codehaus.stax2.validation.XMLValidationSchema
This is a validation schema instance based on a W3C schema. It
serves as a shareable "blueprint" for creating actual validator instances.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.sun.msv.grammar.xmlschema.XMLSchemaGrammarFields inherited from interface org.codehaus.stax2.validation.XMLValidationSchema
SCHEMA_ID_DTD, SCHEMA_ID_RELAXNG, SCHEMA_ID_TREX, SCHEMA_ID_W3C_SCHEMA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.codehaus.stax2.validation.XMLValidatorcreateValidator(org.codehaus.stax2.validation.ValidationContext ctxt)
-
Field Details
-
mGrammar
protected final com.sun.msv.grammar.xmlschema.XMLSchemaGrammar mGrammar
-
-
Constructor Details
-
W3CSchema
public W3CSchema(com.sun.msv.grammar.xmlschema.XMLSchemaGrammar grammar)
-
-
Method Details
-
getSchemaType
- Specified by:
getSchemaTypein interfaceorg.codehaus.stax2.validation.XMLValidationSchema
-
createValidator
public org.codehaus.stax2.validation.XMLValidator createValidator(org.codehaus.stax2.validation.ValidationContext ctxt) throws XMLStreamException - Specified by:
createValidatorin interfaceorg.codehaus.stax2.validation.XMLValidationSchema- Throws:
XMLStreamException
-