VGM implementation by using regular expression derivation algorithm.
This implementation bridges a gap between neutral grammar model (com.sun.msv.grammar) and Verifier grammar model (com.sun.msv.verifier).
See: Description
Class Summary | |
---|---|
AnyElementToken | special Token that matchs any element. this token is used only for error recovery, to compute "residual of elements of concern"(EoCR). |
AttributeFeeder | Feeds AttributeToken to the expression and obtains the residual (content model). |
AttributePicker | removes all unnecessary expressions and creates an expression that consists of required attributes and choices only. |
AttributePruner | Creates an expression whose AttributeExp is completely replaced by nullSet. |
AttributeRemover | Creates an expression whose AttributeExp is completely replaced by epsilon. |
AttributeToken | represents attribute and its value. |
CombinedChildContentExpCreator | creates "combined child content expression" and gathers "elements of concern" and its "attribute-pruned" content model. |
CombinedChildContentExpCreator.ExpressionPair | |
ComplexAcceptor | Accept that is used when more than one pattern can be applicable to the current context. |
ComplexAcceptorBaseImpl | base implementation of ComplexAcceptor. |
ContentModelAcceptor | base implementation for SimpleAcceptor and ComplexAcceptor |
ContentModelRefExpRemover | Non-recursive ReferenceExpRemover with a cache. |
ElementsOfConcernCollector | Collects "elements of concern". |
ElementToken | a token that represents an XML element. |
ExpressionAcceptor | {@link Acceptor} implementation. |
ResidualCalculator | computes regular expression derivative. this class receives a regexp and computes the right language after eating given token. |
REDocumentDeclaration | {@link DocumentDeclaration} implementation Grammar object can be shared among multiple threads, but this object cannot be shared. |
SimpleAcceptor | Acceptor that will be used when only one ElementExp matches the start tag. |
StringCareLevelCalculator | calculates how character literals should be treated. |
StringToken | chunk of string. |
Token | primitive unit of XML instance. this object is fed to expression. |
VGM implementation by using regular expression derivation algorithm.
This implementation bridges a gap between neutral grammar model (com.sun.msv.grammar) and Verifier grammar model (com.sun.msv.verifier).
This bridge is tuned for client-side use, where MSV is repeatedly invoked from command line. Particularly,
Also, this bridge covers full expressiveness of RELAX and TREX.
Those who are interested in the algorithm of this package may want to see the following resources.