Package com.sun.msv.relaxns.verifier
Class RulesAcceptor
- java.lang.Object
-
- com.sun.msv.verifier.regexp.ExpressionAcceptor
-
- com.sun.msv.verifier.regexp.ContentModelAcceptor
-
- com.sun.msv.verifier.regexp.ComplexAcceptorBaseImpl
-
- com.sun.msv.relaxns.verifier.RulesAcceptor
-
- All Implemented Interfaces:
Acceptor
public class RulesAcceptor extends ComplexAcceptorBaseImpl
Acceptor that is used to validate root node of the island. This object receivesDeclImpl
s and validates them.
-
-
Field Summary
Fields Modifier and Type Field Description protected DeclImpl[]
owners
-
Fields inherited from class com.sun.msv.verifier.regexp.ComplexAcceptorBaseImpl
contents
-
Fields inherited from class com.sun.msv.verifier.regexp.ExpressionAcceptor
docDecl, ignoreUndeclaredAttributes
-
Fields inherited from interface com.sun.msv.verifier.Acceptor
STRING_IGNORE, STRING_PROHIBITED, STRING_STRICT
-
-
Constructor Summary
Constructors Modifier Constructor Description private
RulesAcceptor(REDocumentDeclaration docDecl, Expression combined, Expression[] contentModels, DeclImpl[] owners)
RulesAcceptor(REDocumentDeclaration docDecl, DeclImpl[] rules)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Acceptor
createClone()
clones this acceptor.private static Expression
createCombined(ExpressionPool pool, DeclImpl[] rules)
helper function for constructorprivate static Expression[]
getContents(DeclImpl[] rules)
helper function for constructor(package private) org.iso_relax.dispatcher.ElementDecl[]
getSatisfiedElementDecls()
collects satisfied ElementDeclImpls.-
Methods inherited from class com.sun.msv.verifier.regexp.ComplexAcceptorBaseImpl
onAttribute, onEndAttributes, onText2, stepForward
-
Methods inherited from class com.sun.msv.verifier.regexp.ContentModelAcceptor
createAcceptor, getOwnerType
-
Methods inherited from class com.sun.msv.verifier.regexp.ExpressionAcceptor
createChildAcceptor, diagnoseUncompletedContent, getExpression, getStringCareLevel, isAcceptState, onAttribute, onAttribute2, onText, stepForward, stepForwardByContinuation
-
-
-
-
Field Detail
-
owners
protected final DeclImpl[] owners
-
-
Constructor Detail
-
RulesAcceptor
public RulesAcceptor(REDocumentDeclaration docDecl, DeclImpl[] rules)
-
RulesAcceptor
private RulesAcceptor(REDocumentDeclaration docDecl, Expression combined, Expression[] contentModels, DeclImpl[] owners)
-
-
Method Detail
-
createCombined
private static Expression createCombined(ExpressionPool pool, DeclImpl[] rules)
helper function for constructor
-
getContents
private static Expression[] getContents(DeclImpl[] rules)
helper function for constructor
-
createClone
public Acceptor createClone()
Description copied from interface:Acceptor
clones this 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.
-
getSatisfiedElementDecls
org.iso_relax.dispatcher.ElementDecl[] getSatisfiedElementDecls()
collects satisfied ElementDeclImpls.- See Also:
ComplexAcceptor.getSatisfiedOwners()
-
-