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 |
protected com.sun.msv.grammar.trex.TREXGrammar |
mGrammar
This is VGM (in MSV lingo); shareable schema blueprint, basically
peer of this schema object. |
Fields inherited from interface org.codehaus.stax2.validation.XMLValidationSchema |
SCHEMA_ID_DTD, SCHEMA_ID_RELAXNG, SCHEMA_ID_TREX, SCHEMA_ID_W3C_SCHEMA |
Constructor Summary |
RelaxNGSchema(com.sun.msv.grammar.trex.TREXGrammar grammar)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mGrammar
protected final com.sun.msv.grammar.trex.TREXGrammar mGrammar
- This is VGM (in MSV lingo); shareable schema blueprint, basically
peer of this schema object. It will be used for creating actual
validator peer, root Acceptor.
RelaxNGSchema
public RelaxNGSchema(com.sun.msv.grammar.trex.TREXGrammar grammar)
getSchemaType
public String getSchemaType()
- Specified by:
getSchemaType
in interface org.codehaus.stax2.validation.XMLValidationSchema
createValidator
public org.codehaus.stax2.validation.XMLValidator createValidator(org.codehaus.stax2.validation.ValidationContext ctxt)
throws XMLStreamException
- Specified by:
createValidator
in interface org.codehaus.stax2.validation.XMLValidationSchema
- Throws:
XMLStreamException
Copyright © 2011 Codehaus. All Rights Reserved.