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
- public final class ComplexAcceptor
- extends ComplexAcceptorBaseImpl
Accept that is used when more than one pattern can be applicable to the current context.
- Author:
- Kohsuke KAWAGUCHI
Field Summary |
ElementExp[] |
owners
each item of this array should be considered as read-only. |
owners
public final ElementExp[] owners
- each item of this array should be considered as read-only.
ComplexAcceptor
public ComplexAcceptor(REDocumentDeclaration docDecl,
Expression combined,
ElementExp[] primitives)
ComplexAcceptor
public ComplexAcceptor(REDocumentDeclaration docDecl,
Expression combined,
Expression[] contentModels,
ElementExp[] owners)
createClone
public Acceptor 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
public final ElementExp[] getSatisfiedOwners()
- collects satisfied ElementExps.
"satisfied ElementExps" are ElementExps whose
contents is now epsilon reducible.