Class XSREDocDecl
- java.lang.Object
-
- com.sun.msv.verifier.regexp.REDocumentDeclaration
-
- com.sun.msv.verifier.regexp.xmlschema.XSREDocDecl
-
- All Implemented Interfaces:
DocumentDeclaration
public class XSREDocDecl extends REDocumentDeclaration
REDocumentDeclarationthat 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 useIDConstraintCheckerinstead of Verifier class.This package implements the following things:
- the xsi:nil attribute support.
- the runtime type substitution by the xsi:type attribute
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringERR_NON_NILLABLE_ELEMENTstatic java.lang.StringERR_NOT_SUBSTITUTABLE_TYPEstatic java.lang.StringERR_UNDEFINED_TYPEprotected XMLSchemaGrammargrammarthe grammar which this VGM is using.protected AttributeExpxsiAttExpAttributeExp that matches to "xsi:***" attributes.-
Fields inherited from class com.sun.msv.verifier.regexp.REDocumentDeclaration
attFeeder, attPicker, attPruner, attRemover, attToken, cccec, DIAG_BAD_ATTRIBUTE_VALUE_DATATYPE, DIAG_BAD_ATTRIBUTE_VALUE_GENERIC, DIAG_BAD_ATTRIBUTE_VALUE_MORE, DIAG_BAD_ATTRIBUTE_VALUE_SEPARATOR, DIAG_BAD_ATTRIBUTE_VALUE_WRAPUP, DIAG_BAD_KEY_VALUE, DIAG_BAD_KEY_VALUE2, DIAG_BAD_LITERAL_GENERIC, DIAG_BAD_LITERAL_INCORRECT_VALUE, DIAG_BAD_LITERAL_MORE, DIAG_BAD_LITERAL_SEPARATOR, DIAG_BAD_LITERAL_WRAPUP, DIAG_BAD_TAGNAME_GENERIC, DIAG_BAD_TAGNAME_MORE, DIAG_BAD_TAGNAME_PROBABLY_WRONG_NAMESPACE, DIAG_BAD_TAGNAME_SEPARATOR, DIAG_BAD_TAGNAME_WRAPUP, DIAG_BAD_TAGNAME_WRONG_NAMESPACE, DIAG_CONTENT_MODEL_IS_NULLSET, DIAG_ELEMENT_NOT_ALLOWED, DIAG_MISSING_ATTRIBUTE_GENERIC, DIAG_MISSING_ATTRIBUTE_MORE, DIAG_MISSING_ATTRIBUTE_SEPARATOR, DIAG_MISSING_ATTRIBUTE_SIMPLE, DIAG_MISSING_ATTRIBUTE_WRAPUP, DIAG_NAMESPACE_NAMECLASS, DIAG_NOT_NAMESPACE_NAMECLASS, DIAG_SIMPLE_NAMECLASS, DIAG_STRING_NOT_ALLOWED, DIAG_UNCOMPLETED_CONTENT_MORE, DIAG_UNCOMPLETED_CONTENT_SEPARATOR, DIAG_UNCOMPLETED_CONTENT_WRAPUP, DIAG_UNDECLARED_ATTRIBUTE, ecc, pool, resCalc, topLevel
-
-
Constructor Summary
Constructors Constructor Description XSREDocDecl(XMLSchemaGrammar grammar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AcceptorcreateAcceptor()creates a new Acceptor that will validate the document element.(package private) AttributeFeedergetAttFeeder()(package private) CombinedChildContentExpCreatorgetCCCEC()java.lang.StringlocalizeMessage(java.lang.String propertyName, java.lang.Object[] args)-
Methods inherited from class com.sun.msv.verifier.regexp.REDocumentDeclaration
localizeMessage, localizeMessage
-
-
-
-
Field Detail
-
grammar
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.
-
xsiAttExp
protected final AttributeExp xsiAttExp
AttributeExp that matches to "xsi:***" attributes.
-
ERR_NON_NILLABLE_ELEMENT
public static final java.lang.String ERR_NON_NILLABLE_ELEMENT
- See Also:
- Constant Field Values
-
ERR_NOT_SUBSTITUTABLE_TYPE
public static final java.lang.String ERR_NOT_SUBSTITUTABLE_TYPE
- See Also:
- Constant Field Values
-
ERR_UNDEFINED_TYPE
public static final java.lang.String ERR_UNDEFINED_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XSREDocDecl
public XSREDocDecl(XMLSchemaGrammar grammar)
-
-
Method Detail
-
createAcceptor
public Acceptor createAcceptor()
Description copied from interface:DocumentDeclarationcreates 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>- Specified by:
createAcceptorin interfaceDocumentDeclaration- Overrides:
createAcceptorin classREDocumentDeclaration- Returns:
- The implementation cannot return null. Apparently, it is impossible to fail in this early stage.
-
getCCCEC
CombinedChildContentExpCreator getCCCEC()
-
getAttFeeder
AttributeFeeder getAttFeeder()
-
localizeMessage
public java.lang.String localizeMessage(java.lang.String propertyName, java.lang.Object[] args)- Overrides:
localizeMessagein classREDocumentDeclaration
-
-