Top Description Fields Constructors Methods
com.sun.msv.verifier.regexp.xmlschema

public Class XSREDocDecl

extends REDocumentDeclaration
Class Inheritance
Imports
com.sun.msv.grammar.AttributeExp, .Expression, .NamespaceNameClass, com.sun.msv.grammar.xmlschema.XMLSchemaGrammar, com.sun.msv.verifier.Acceptor, com.sun.msv.verifier.identity.IDConstraintChecker, com.sun.msv.verifier.regexp.AttributeFeeder, .CombinedChildContentExpCreator, .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

Modifier and TypeField and Description
public static final String
public static final String
public static final String
protected final XMLSchemaGrammar
grammar

the grammar which this VGM is using.

protected final AttributeExp
xsiAttExp

AttributeExp that matches to "xsi:***" attributes.

Inherited from com.sun.msv.verifier.regexp.REDocumentDeclaration:
attFeederattPickerattPrunerattRemoverattTokencccecDIAG_BAD_ATTRIBUTE_VALUE_DATATYPEDIAG_BAD_ATTRIBUTE_VALUE_GENERICDIAG_BAD_ATTRIBUTE_VALUE_MOREDIAG_BAD_ATTRIBUTE_VALUE_SEPARATORDIAG_BAD_ATTRIBUTE_VALUE_WRAPUPDIAG_BAD_KEY_VALUEDIAG_BAD_KEY_VALUE2DIAG_BAD_LITERAL_GENERICDIAG_BAD_LITERAL_INCORRECT_VALUEDIAG_BAD_LITERAL_MOREDIAG_BAD_LITERAL_SEPARATORDIAG_BAD_LITERAL_WRAPUPDIAG_BAD_TAGNAME_GENERICDIAG_BAD_TAGNAME_MOREDIAG_BAD_TAGNAME_PROBABLY_WRONG_NAMESPACEDIAG_BAD_TAGNAME_SEPARATORDIAG_BAD_TAGNAME_WRAPUPDIAG_BAD_TAGNAME_WRONG_NAMESPACEDIAG_CONTENT_MODEL_IS_NULLSETDIAG_ELEMENT_NOT_ALLOWEDDIAG_MISSING_ATTRIBUTE_GENERICDIAG_MISSING_ATTRIBUTE_MOREDIAG_MISSING_ATTRIBUTE_SEPARATORDIAG_MISSING_ATTRIBUTE_SIMPLEDIAG_MISSING_ATTRIBUTE_WRAPUPDIAG_NAMESPACE_NAMECLASSDIAG_NOT_NAMESPACE_NAMECLASSDIAG_SIMPLE_NAMECLASSDIAG_STRING_NOT_ALLOWEDDIAG_UNCOMPLETED_CONTENT_MOREDIAG_UNCOMPLETED_CONTENT_SEPARATORDIAG_UNCOMPLETED_CONTENT_WRAPUPDIAG_UNDECLARED_ATTRIBUTEeccpoolresCalctopLevel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Acceptor
createAcceptor()

Overrides com.sun.msv.verifier.regexp.REDocumentDeclaration.createAcceptor.

Implements com.sun.msv.verifier.DocumentDeclaration.createAcceptor.

creates a new Acceptor that will validate the document element.
pack-priv AttributeFeeder
pack-priv CombinedChildContentExpCreator
public String
Inherited from com.sun.msv.verifier.regexp.REDocumentDeclaration:
localizeMessagelocalizeMessage

Field Detail

ERR_NON_NILLABLE_ELEMENTback to summary
public static final String ERR_NON_NILLABLE_ELEMENT
ERR_NOT_SUBSTITUTABLE_TYPEback to summary
public static final String ERR_NOT_SUBSTITUTABLE_TYPE
ERR_UNDEFINED_TYPEback to summary
public static final String ERR_UNDEFINED_TYPE
grammarback to summary
protected final XMLSchemaGrammar grammar

the grammar which this VGM is using. For one, this object is used to find the complex type definition by its name.

xsiAttExpback to summary
protected final AttributeExp xsiAttExp

AttributeExp that matches to "xsi:***" attributes.

Constructor Detail

XSREDocDeclback to summary
public XSREDocDecl(XMLSchemaGrammar grammar)

Method Detail

createAcceptorback to summary
public Acceptor createAcceptor()

Overrides com.sun.msv.verifier.regexp.REDocumentDeclaration.createAcceptor.

Implements com.sun.msv.verifier.DocumentDeclaration.createAcceptor.

Doc from com.sun.msv.verifier.DocumentDeclaration.createAcceptor.

creates a new Acceptor that will validate the document element. In RELAX, this concept is equivalent to <topLevel> In TREX, this concept is equivalent to <start>

Returns:Acceptor

The implementation cannot return null. Apparently, it is impossible to fail in this early stage.

getAttFeederback to summary
pack-priv AttributeFeeder getAttFeeder()
getCCCECback to summary
pack-priv CombinedChildContentExpCreator getCCCEC()
localizeMessageback to summary
public String localizeMessage(String propertyName, Object[] args)

Overrides com.sun.msv.verifier.regexp.REDocumentDeclaration.localizeMessage.