Top Description Fields Constructors Methods
com.sun.msv.relaxns.verifier

public Class RulesAcceptor

extends ComplexAcceptorBaseImpl
Class Inheritance
Imports
org.iso_relax.dispatcher.ElementDecl, com.sun.msv.grammar.Expression, .ExpressionPool, com.sun.msv.relaxns.grammar.DeclImpl, com.sun.msv.verifier.Acceptor, com.sun.msv.verifier.regexp.REDocumentDeclaration

Acceptor that is used to validate root node of the island. This object receives DeclImpls and validates them.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected final DeclImpl[]
Inherited from com.sun.msv.verifier.regexp.ComplexAcceptorBaseImpl:
contents

Constructor Summary

AccessConstructor and Description
public
private
RulesAcceptor(REDocumentDeclaration docDecl, Expression combined, Expression[] contentModels, DeclImpl[] owners)

Method Summary

Modifier and TypeMethod and Description
public Acceptor
createClone()

Implements com.sun.msv.verifier.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

pack-priv ElementDecl[]
getSatisfiedElementDecls()

collects satisfied ElementDeclImpls.

Inherited from com.sun.msv.verifier.regexp.ComplexAcceptorBaseImpl:
onAttributeonEndAttributesonText2stepForward

Field Detail

ownersback to summary
protected final DeclImpl[] owners

Constructor Detail

RulesAcceptorback to summary
public RulesAcceptor(REDocumentDeclaration docDecl, DeclImpl[] rules)
RulesAcceptorback to summary
private RulesAcceptor(REDocumentDeclaration docDecl, Expression combined, Expression[] contentModels, DeclImpl[] owners)

Method Detail

createCloneback to summary
public Acceptor createClone()

Implements com.sun.msv.verifier.Acceptor.createClone.

Doc from com.sun.msv.verifier.Acceptor.createClone.

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.

createCombinedback to summary
private static Expression createCombined(ExpressionPool pool, DeclImpl[] rules)

helper function for constructor

getContentsback to summary
private static Expression[] getContents(DeclImpl[] rules)

helper function for constructor

getSatisfiedElementDeclsback to summary
pack-priv ElementDecl[] getSatisfiedElementDecls()

collects satisfied ElementDeclImpls.

See Also
com.sun.msv.verifier.regexp.ComplexAcceptor#getSatisfiedOwners()