Class REDocumentDeclaration
- All Implemented Interfaces:
DocumentDeclaration
- Direct Known Subclasses:
XSREDocDecl
DocumentDeclaration implementation
Grammar object can be shared among multiple threads, but this object
cannot be shared.
REDocumentDeclaration always returns subclasses of ExpressionAcceptor
as the Acceptor implementation.
- Author:
- Kohsuke KAWAGUCHI
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AttributeFeederprotected final AttributePickerprotected final AttributePrunerprotected final AttributeRemoverfinal AttributeTokenthe AttributeToken object which is re-usedprotected final CombinedChildContentExpCreatorstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected final ElementsOfConcernCollectorfinal ExpressionPoolExpressionPool object that this VGM uses.protected final ResidualCalculatorprotected final Expressionstart validation from this expression. -
Constructor Summary
ConstructorsConstructorDescriptionREDocumentDeclaration(Expression topLevel, ExpressionPool pool) creates an object that validates the specified expression.REDocumentDeclaration(Grammar grammar) -
Method Summary
Modifier and TypeMethodDescriptioncreates a new Acceptor that will validate the document element.final StringlocalizeMessage(String propName, Object arg1) localizeMessage(String propertyName, Object[] args) final StringlocalizeMessage(String propName, Object arg1, Object arg2)
-
Field Details
-
topLevel
start validation from this expression. -
pool
ExpressionPool object that this VGM uses. -
resCalc
-
cccec
-
attFeeder
-
attPruner
-
attPicker
-
attRemover
-
ecc
-
attToken
the AttributeToken object which is re-usedOnly one AttributeToken object is used during the
Acceptor.onAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.sun.msv.grammar.IDContextProvider, com.sun.msv.util.StringRef, com.sun.msv.util.DatatypeRef)method. So instead of creating new object every time the method is called, we can kept using one copy.Note: other parts of the code may never rely on the fact that the attribute token is cached and reused.
Note: this field should be accessed ONLY by the
ExpressionAcceptor.onAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.sun.msv.grammar.IDContextProvider, com.sun.msv.util.StringRef, com.sun.msv.util.DatatypeRef)method. -
DIAG_ELEMENT_NOT_ALLOWED
- See Also:
-
DIAG_CONTENT_MODEL_IS_NULLSET
- See Also:
-
DIAG_BAD_TAGNAME_GENERIC
- See Also:
-
DIAG_BAD_TAGNAME_WRAPUP
- See Also:
-
DIAG_BAD_TAGNAME_SEPARATOR
- See Also:
-
DIAG_BAD_TAGNAME_MORE
- See Also:
-
DIAG_BAD_TAGNAME_WRONG_NAMESPACE
- See Also:
-
DIAG_BAD_TAGNAME_PROBABLY_WRONG_NAMESPACE
- See Also:
-
DIAG_UNDECLARED_ATTRIBUTE
- See Also:
-
DIAG_BAD_ATTRIBUTE_VALUE_GENERIC
- See Also:
-
DIAG_BAD_ATTRIBUTE_VALUE_DATATYPE
- See Also:
-
DIAG_BAD_ATTRIBUTE_VALUE_WRAPUP
- See Also:
-
DIAG_BAD_ATTRIBUTE_VALUE_SEPARATOR
- See Also:
-
DIAG_BAD_ATTRIBUTE_VALUE_MORE
- See Also:
-
DIAG_MISSING_ATTRIBUTE_SIMPLE
- See Also:
-
DIAG_MISSING_ATTRIBUTE_GENERIC
- See Also:
-
DIAG_MISSING_ATTRIBUTE_WRAPUP
- See Also:
-
DIAG_MISSING_ATTRIBUTE_SEPARATOR
- See Also:
-
DIAG_MISSING_ATTRIBUTE_MORE
- See Also:
-
DIAG_UNCOMPLETED_CONTENT_WRAPUP
- See Also:
-
DIAG_UNCOMPLETED_CONTENT_SEPARATOR
- See Also:
-
DIAG_UNCOMPLETED_CONTENT_MORE
- See Also:
-
DIAG_BAD_LITERAL_WRAPUP
- See Also:
-
DIAG_BAD_LITERAL_SEPARATOR
- See Also:
-
DIAG_BAD_LITERAL_MORE
- See Also:
-
DIAG_BAD_LITERAL_GENERIC
- See Also:
-
DIAG_BAD_LITERAL_INCORRECT_VALUE
- See Also:
-
DIAG_SIMPLE_NAMECLASS
- See Also:
-
DIAG_NAMESPACE_NAMECLASS
- See Also:
-
DIAG_NOT_NAMESPACE_NAMECLASS
- See Also:
-
DIAG_STRING_NOT_ALLOWED
- See Also:
-
DIAG_BAD_KEY_VALUE
- See Also:
-
DIAG_BAD_KEY_VALUE2
- See Also:
-
-
Constructor Details
-
REDocumentDeclaration
-
REDocumentDeclaration
creates an object that validates the specified expression.
-
-
Method Details
-
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- Returns:
- The implementation cannot return null. Apparently, it is impossible to fail in this early stage.
-
localizeMessage
-
localizeMessage
-
localizeMessage
-