com.ctc.wstx.msv
Class W3CSchema
java.lang.Object
com.ctc.wstx.msv.W3CSchema
- All Implemented Interfaces:
- XMLValidationSchema
public class W3CSchema
- extends Object
- implements 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 |
protected com.sun.msv.grammar.xmlschema.XMLSchemaGrammar |
mGrammar
|
Constructor Summary |
W3CSchema(com.sun.msv.grammar.xmlschema.XMLSchemaGrammar 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.xmlschema.XMLSchemaGrammar mGrammar
W3CSchema
public W3CSchema(com.sun.msv.grammar.xmlschema.XMLSchemaGrammar grammar)
getSchemaType
public String getSchemaType()
- Description copied from interface:
XMLValidationSchema
- Returns type of this schema.
- Specified by:
getSchemaType
in interface XMLValidationSchema
- Returns:
- One of external schema identifier values (such as
XMLValidationSchema.SCHEMA_ID_DTD
).
createValidator
public XMLValidator createValidator(ValidationContext ctxt)
throws XMLStreamException
- Specified by:
createValidator
in interface XMLValidationSchema
- Throws:
XMLStreamException