Class XSAcceptor
java.lang.Object
com.sun.msv.verifier.regexp.ExpressionAcceptor
com.sun.msv.verifier.regexp.ContentModelAcceptor
com.sun.msv.verifier.regexp.SimpleAcceptor
com.sun.msv.verifier.regexp.xmlschema.XSAcceptor
- All Implemented Interfaces:
Acceptor
Acceptor implementation for XSREDocDecl.
This class should be considered as a "quick-hack" to better accomodate W3C XML Schema.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final XSREDocDeclholds the same value as the docDecl field, but this one has already down casted to XSREDocDecl.static final Stringstatic final StringFields inherited from class SimpleAcceptor
continuation, ownerFields inherited from class ExpressionAcceptor
docDecl, ignoreUndeclaredAttributesFields inherited from interface Acceptor
STRING_IGNORE, STRING_PROHIBITED, STRING_STRICT -
Constructor Summary
ConstructorsConstructorDescriptionXSAcceptor(XSREDocDecl docDecl, Expression combined, ElementExp owner, Expression continuation) -
Method Summary
Modifier and TypeMethodDescriptionprotected AcceptorcreateAcceptor(Expression combined, Expression continuation, ElementExp[] primitives, int numPrimitives) creates an XSAcceptor instead of default acceptor implementations.createChildAcceptor(StartTagInfo sti, StringRef refErr) creates combined child acceptor and primitive child acceptors (if necessary).clones this acceptor.protected booleanonAttribute(AttributeToken token, StringRef refErr) private AcceptoronNotSubstitutableType(StartTagInfo sti, String type, StringRef refErr) private AcceptoronTypeResolutionFailure(StartTagInfo sti, String type, StringRef refErr) Methods inherited from class SimpleAcceptor
getOwnerTypeMethods inherited from class ContentModelAcceptor
stepForwardMethods inherited from class ExpressionAcceptor
diagnoseUncompletedContent, getExpression, getStringCareLevel, isAcceptState, onAttribute, onAttribute2, onEndAttributes, onText, onText2, stepForward, stepForwardByContinuation
-
Field Details
-
XSINamespace
- See Also:
-
XMLSchemaNamespace
- See Also:
-
_docDecl
holds the same value as the docDecl field, but this one has already down casted to XSREDocDecl.
-
-
Constructor Details
-
XSAcceptor
public XSAcceptor(XSREDocDecl docDecl, Expression combined, ElementExp owner, Expression continuation)
-
-
Method Details
-
createClone
Description copied from interface:Acceptorclones this acceptor.You can keep a "bookmark" of the acceptor by cloning it. This is useful when you are trying to perform "partial validation".
Cloned acceptor will behave in exactly the same way as the original one.
- Specified by:
createClonein interfaceAcceptor- Overrides:
createClonein classSimpleAcceptor
-
createAcceptor
protected Acceptor createAcceptor(Expression combined, Expression continuation, ElementExp[] primitives, int numPrimitives) creates an XSAcceptor instead of default acceptor implementations.- Overrides:
createAcceptorin classContentModelAcceptor
-
onAttribute
- Overrides:
onAttributein classExpressionAcceptor
-
createChildAcceptor
Description copied from class:ExpressionAcceptorcreates combined child acceptor and primitive child acceptors (if necessary). be careful not to keep returned object too long because it is reused whenever the method is called.- Specified by:
createChildAcceptorin interfaceAcceptor- Overrides:
createChildAcceptorin classExpressionAcceptor- Parameters:
sti- this parameter provides the information about the start tag to the acceptor object. Usually attribute information is ignored, but sometimes they are used as hints.refErr- if this parameter is non-null, the implementation should try to detect the reason of error and recover from it. and this object should have the error message as its str field.- Returns:
- null if errRef is null and this expression cannot accept given start tag. if errRef is non-null and error recovery is not possible.
-
onNotSubstitutableType
-
onTypeResolutionFailure
-