Acceptor
ComplexAcceptorBaseImpl
, SimpleAcceptor
public abstract class ContentModelAcceptor extends ExpressionAcceptor
STRING_IGNORE, STRING_PROHIBITED, STRING_STRICT
docDecl, ignoreUndeclaredAttributes
Modifier | Constructor | Description |
---|---|---|
protected |
ContentModelAcceptor(REDocumentDeclaration docDecl,
Expression exp,
boolean ignoreUndeclaredAttributes) |
Modifier and Type | Method | Description |
---|---|---|
protected Acceptor |
createAcceptor(Expression combined,
Expression continuation,
ElementExp[] primitives,
int numPrimitives) |
creates actual Acceptor object from the computed result.
|
Object |
getOwnerType() |
gets the "type" object for which this acceptor is working.
|
boolean |
stepForward(Acceptor child,
StringRef errRef) |
eats a child element
|
createClone
createChildAcceptor, diagnoseUncompletedContent, getExpression, getStringCareLevel, isAcceptState, onAttribute, onAttribute, onAttribute2, onEndAttributes, onText, onText2, stepForward, stepForwardByContinuation
protected ContentModelAcceptor(REDocumentDeclaration docDecl, Expression exp, boolean ignoreUndeclaredAttributes)
public boolean stepForward(Acceptor child, StringRef errRef)
Acceptor
A child acceptor created by the Acceptor.createChildAcceptor(com.sun.msv.util.StartTagInfo,com.sun.msv.util.StringRef)
method
will be ultimately consumed by the parent through this method.
It is the caller's responsibility to make sure that child acceptor is in the accept state. If it's not, that indicates that some required elements are missing (in other words, contents are not allowed to end here).
It is the callee's responsibility to recover from error of unsatisified child acceptor. That is, even if the caller finds that there are missing elements, it is possible to call this method as if there was no such error.
protected Acceptor createAcceptor(Expression combined, Expression continuation, ElementExp[] primitives, int numPrimitives)
createAcceptor
in class ExpressionAcceptor
public Object getOwnerType()
Acceptor
Copyright © 2019 Oracle Corporation. All rights reserved.