Package com.sun.msv.verifier.regexp
Class ComplexAcceptor
java.lang.Object
com.sun.msv.verifier.regexp.ExpressionAcceptor
com.sun.msv.verifier.regexp.ContentModelAcceptor
com.sun.msv.verifier.regexp.ComplexAcceptorBaseImpl
com.sun.msv.verifier.regexp.ComplexAcceptor
- All Implemented Interfaces:
Acceptor
Accept that is used when more than one pattern can be applicable to the current context.
- Author:
- Kohsuke KAWAGUCHI
-
Field Summary
Modifier and TypeFieldDescriptionfinal ElementExp[]
each item of this array should be considered as read-only.Fields inherited from class com.sun.msv.verifier.regexp.ComplexAcceptorBaseImpl
contents
Fields inherited from class com.sun.msv.verifier.regexp.ExpressionAcceptor
docDecl, ignoreUndeclaredAttributes
Fields inherited from interface com.sun.msv.verifier.Acceptor
STRING_IGNORE, STRING_PROHIBITED, STRING_STRICT
-
Constructor Summary
ConstructorDescriptionComplexAcceptor
(REDocumentDeclaration docDecl, Expression combined, ElementExp[] primitives) ComplexAcceptor
(REDocumentDeclaration docDecl, Expression combined, Expression[] contentModels, ElementExp[] owners) -
Method Summary
Modifier and TypeMethodDescriptionclones this acceptor.final ElementExp[]
collects satisfied ElementExps.Methods inherited from class com.sun.msv.verifier.regexp.ComplexAcceptorBaseImpl
onAttribute, onEndAttributes, onText2, stepForward
Methods inherited from class com.sun.msv.verifier.regexp.ContentModelAcceptor
createAcceptor, getOwnerType
Methods inherited from class com.sun.msv.verifier.regexp.ExpressionAcceptor
createChildAcceptor, diagnoseUncompletedContent, getExpression, getStringCareLevel, isAcceptState, onAttribute, onAttribute2, onText, stepForward, stepForwardByContinuation
-
Field Details
-
owners
each item of this array should be considered as read-only.
-
-
Constructor Details
-
ComplexAcceptor
-
ComplexAcceptor
public ComplexAcceptor(REDocumentDeclaration docDecl, Expression combined, Expression[] contentModels, ElementExp[] owners)
-
-
Method Details
-
createClone
Description copied from interface:Acceptor
clones 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.
-
getSatisfiedOwners
collects satisfied ElementExps. "satisfied ElementExps" are ElementExps whose contents is now epsilon reducible.
-