Package com.ctc.wstx.msv
Class RelaxNGSchema
- java.lang.Object
-
- com.ctc.wstx.msv.RelaxNGSchema
-
- All Implemented Interfaces:
org.codehaus.stax2.validation.XMLValidationSchema
public class RelaxNGSchema extends Object implements org.codehaus.stax2.validation.XMLValidationSchema
This is a validation schema instance based on a RELAX NG schema. It serves as a shareable "blueprint" for creating actual validator instances.
-
-
Field Summary
Fields Modifier and Type Field Description protected com.sun.msv.grammar.trex.TREXGrammar
mGrammar
This is VGM (in MSV lingo); shareable schema blueprint, basically peer of this schema object.
-
Constructor Summary
Constructors Constructor Description RelaxNGSchema(com.sun.msv.grammar.trex.TREXGrammar grammar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.codehaus.stax2.validation.XMLValidator
createValidator(org.codehaus.stax2.validation.ValidationContext ctxt)
String
getSchemaType()
-
-
-
Method Detail
-
getSchemaType
public String getSchemaType()
- Specified by:
getSchemaType
in interfaceorg.codehaus.stax2.validation.XMLValidationSchema
-
createValidator
public org.codehaus.stax2.validation.XMLValidator createValidator(org.codehaus.stax2.validation.ValidationContext ctxt) throws XMLStreamException
- Specified by:
createValidator
in interfaceorg.codehaus.stax2.validation.XMLValidationSchema
- Throws:
XMLStreamException
-
-