com.sun.msv.verifier.regexp.xmlschema

Class XSREDocDecl

public class XSREDocDecl extends REDocumentDeclaration

REDocumentDeclaration that supports several W3C XML Schema specific semantics.

If you do validation by using W3C XML Schema, then you should use this VGM instead of plain REDocumentDeclaration. You should also use IDConstraintChecker instead of Verifier class.

This package implements the following things:

  1. the xsi:nil attribute support.
  2. the runtime type substitution by the xsi:type attribute
Field Summary
static StringERR_NON_NILLABLE_ELEMENT
static StringERR_NOT_SUBSTITUTABLE_TYPE
static StringERR_UNDEFINED_TYPE
Constructor Summary
XSREDocDecl(XMLSchemaGrammar grammar)
Method Summary
AcceptorcreateAcceptor()
StringlocalizeMessage(String propertyName, Object[] args)

Field Detail

ERR_NON_NILLABLE_ELEMENT

public static final String ERR_NON_NILLABLE_ELEMENT

ERR_NOT_SUBSTITUTABLE_TYPE

public static final String ERR_NOT_SUBSTITUTABLE_TYPE

ERR_UNDEFINED_TYPE

public static final String ERR_UNDEFINED_TYPE

Constructor Detail

XSREDocDecl

public XSREDocDecl(XMLSchemaGrammar grammar)

Method Detail

createAcceptor

public Acceptor createAcceptor()

localizeMessage

public String localizeMessage(String propertyName, Object[] args)