com.sun.msv.verifier.regexp

Class SimpleAcceptor

Implemented Interfaces:
Acceptor
Known Direct Subclasses:
XSAcceptor

public class SimpleAcceptor
extends ContentModelAcceptor

Acceptor that will be used when only one ElementExp matches the start tag.
Author:
Kohsuke KAWAGUCHI

Field Summary

Expression
continuation
the expression that should be used by the parent acceptor once if this acceptor is satisfied.
ElementExp
owner
ElementExp that accepted the start tag.

Fields inherited from interface com.sun.msv.verifier.Acceptor

STRING_IGNORE, STRING_PROHIBITED, STRING_STRICT

Constructor Summary

SimpleAcceptor(REDocumentDeclaration docDecl, Expression combined, ElementExp owner, Expression continuation)

Method Summary

Acceptor
createClone()
Object
getOwnerType()

Methods inherited from class com.sun.msv.verifier.regexp.ContentModelAcceptor

getOwnerType, stepForward

Methods inherited from class com.sun.msv.verifier.regexp.ExpressionAcceptor

createChildAcceptor, getExpression, getStringCareLevel, isAcceptState, onAttribute, onAttribute2, onEndAttributes, onText, onText2, stepForwardByContinuation

Field Details

continuation

public final Expression continuation
the expression that should be used by the parent acceptor once if this acceptor is satisfied. This field can be null. In that case, the continuation has to be computed.

owner

public final ElementExp owner
ElementExp that accepted the start tag. This acceptor is verifying the content model of this ElementExp. This value is usually non-null, but can be null when Verifier is recovering from eariler errors. null owner means this acceptor is "synthesized" just for proper error recovery, therefor there is no owner element expression.

Constructor Details

SimpleAcceptor

public SimpleAcceptor(REDocumentDeclaration docDecl,
                      Expression combined,
                      ElementExp owner,
                      Expression continuation)

Method Details

createClone

public Acceptor createClone()
Specified by:
createClone in interface Acceptor

getOwnerType

public final Object getOwnerType()
Specified by:
getOwnerType in interface Acceptor
Overrides:
getOwnerType in interface ContentModelAcceptor