Top Description Fields Constructors Methods
com.ctc.wstx.msv

public Class RelaxNGSchema

extends Object
implements XMLValidationSchema
Class Inheritance
All Implemented Interfaces
org.codehaus.stax2.validation.XMLValidationSchema
Imports
javax.xml.stream.*, org.codehaus.stax2.validation.*, com.sun.msv.grammar.trex.TREXGrammar, com.sun.msv.verifier.regexp.REDocumentDeclaration

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

Modifier and TypeField and Description
protected final TREXGrammar
mGrammar

This is VGM (in MSV lingo); shareable schema blueprint, basically peer of this schema object.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public XMLValidator
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mGrammarback to summary
protected final 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.

Constructor Detail

RelaxNGSchemaback to summary
public RelaxNGSchema(TREXGrammar grammar)

Method Detail

createValidatorback to summary
public XMLValidator createValidator(ValidationContext ctxt) throws XMLStreamException

Implements org.codehaus.stax2.validation.XMLValidationSchema.createValidator.

Annotations
@Override
getSchemaTypeback to summary
public String getSchemaType()

Implements org.codehaus.stax2.validation.XMLValidationSchema.getSchemaType.

Doc from org.codehaus.stax2.validation.XMLValidationSchema.getSchemaType.

Returns type of this schema.

Returns:String

One of external schema identifier values (such as SCHEMA_ID_DTD).

Annotations
@Override