Acceptor
public final class ComplexAcceptor extends ComplexAcceptorBaseImpl
Modifier and Type | Field | Description |
---|---|---|
ElementExp[] |
owners |
each item of this array should be considered as read-only.
|
STRING_IGNORE, STRING_PROHIBITED, STRING_STRICT
contents
docDecl, ignoreUndeclaredAttributes
Constructor | Description |
---|---|
ComplexAcceptor(REDocumentDeclaration docDecl,
Expression combined,
ElementExp[] primitives) |
|
ComplexAcceptor(REDocumentDeclaration docDecl,
Expression combined,
Expression[] contentModels,
ElementExp[] owners) |
Modifier and Type | Method | Description |
---|---|---|
Acceptor |
createClone() |
clones this acceptor.
|
ElementExp[] |
getSatisfiedOwners() |
collects satisfied ElementExps.
|
onAttribute, onEndAttributes, onText2, stepForward
createAcceptor, getOwnerType
createChildAcceptor, diagnoseUncompletedContent, getExpression, getStringCareLevel, isAcceptState, onAttribute, onAttribute2, onText, stepForward, stepForwardByContinuation
public final ElementExp[] owners
public ComplexAcceptor(REDocumentDeclaration docDecl, Expression combined, ElementExp[] primitives)
public ComplexAcceptor(REDocumentDeclaration docDecl, Expression combined, Expression[] contentModels, ElementExp[] owners)
public Acceptor createClone()
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.
public final ElementExp[] getSatisfiedOwners()
Copyright © 2019 Oracle Corporation. All rights reserved.