Acceptor
public class RulesAcceptor extends ComplexAcceptorBaseImpl
DeclImpl
s and validates them.Modifier and Type | Field | Description |
---|---|---|
protected DeclImpl[] |
owners |
STRING_IGNORE, STRING_PROHIBITED, STRING_STRICT
contents
docDecl, ignoreUndeclaredAttributes
Constructor | Description |
---|---|
RulesAcceptor(REDocumentDeclaration docDecl,
DeclImpl[] rules) |
Modifier and Type | Method | Description |
---|---|---|
Acceptor |
createClone() |
clones this acceptor.
|
onAttribute, onEndAttributes, onText2, stepForward
createAcceptor, getOwnerType
createChildAcceptor, diagnoseUncompletedContent, getExpression, getStringCareLevel, isAcceptState, onAttribute, onAttribute2, onText, stepForward, stepForwardByContinuation
protected final DeclImpl[] owners
public RulesAcceptor(REDocumentDeclaration docDecl, DeclImpl[] rules)
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.
Copyright © 2019 Oracle Corporation. All rights reserved.