public class RulesAcceptor extends ComplexAcceptorBaseImpl
DeclImpls and validates them.| Modifier and Type | Field and Description |
|---|---|
protected DeclImpl[] |
owners |
contentsdocDecl, ignoreUndeclaredAttributesSTRING_IGNORE, STRING_PROHIBITED, STRING_STRICT| Modifier | Constructor and Description |
|---|---|
|
RulesAcceptor(REDocumentDeclaration docDecl,
DeclImpl[] rules) |
private |
RulesAcceptor(REDocumentDeclaration docDecl,
Expression combined,
Expression[] contentModels,
DeclImpl[] owners) |
| Modifier and Type | Method and Description |
|---|---|
Acceptor |
createClone()
clones this acceptor.
|
private static Expression |
createCombined(ExpressionPool pool,
DeclImpl[] rules)
helper function for constructor
|
private static Expression[] |
getContents(DeclImpl[] rules)
helper function for constructor
|
(package private) org.iso_relax.dispatcher.ElementDecl[] |
getSatisfiedElementDecls()
collects satisfied ElementDeclImpls.
|
onAttribute, onEndAttributes, onText2, stepForwardcreateAcceptor, getOwnerTypecreateChildAcceptor, diagnoseUncompletedContent, getExpression, getStringCareLevel, isAcceptState, onAttribute, onAttribute2, onText, stepForward, stepForwardByContinuationprotected final DeclImpl[] owners
public RulesAcceptor(REDocumentDeclaration docDecl, DeclImpl[] rules)
private RulesAcceptor(REDocumentDeclaration docDecl, Expression combined, Expression[] contentModels, DeclImpl[] owners)
private static Expression createCombined(ExpressionPool pool, DeclImpl[] rules)
private static Expression[] getContents(DeclImpl[] rules)
public Acceptor createClone()
AcceptorYou 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.
org.iso_relax.dispatcher.ElementDecl[] getSatisfiedElementDecls()
ComplexAcceptor.getSatisfiedOwners()