Package eu.bandm.tools.dtd
Class ContentSimplifier
java.lang.Object
eu.bandm.tools.dtd.DTD.MATCH_ONLY_00
eu.bandm.tools.dtd.DTD.SinglePathVisitor
eu.bandm.tools.dtd.ContentSimplifier
Rewriter which simplifies all content models in a Dtd.
The transformation is the fixpoint of the infinite application of
And it can be applied to a DTD model (as a whole or to some element declarations) to destructively replace all content models contained therein by calling
, a a? a+ a* | a a? a+ a* o x x? x+ x* a - - - a+ a - a? a+ a* a - a? a+ a* a? - - a+ a* a? a? - a* a* a? - A? a* a* ASK BT !?!? a+ - a+ aa+ a+ a+ a+ a* - a* a+ - a* a+ a* a* a+ a* a+ a* a* a+ a* a* - a* - a* a* a* - = no change - = out=in - = out=inAdditionally, SEQUENCES and ALTERNATIVES are FLATTENED. It can either be applied to non-desstructively to a certain content model explicitly by
simplify(DTD.CP).
And it can be applied to a DTD model (as a whole or to some element declarations) to destructively replace all content models contained therein by calling
match(Object).-
Field Summary
Fields inherited from class eu.bandm.tools.dtd.DTD.SinglePathVisitor
baseVisitorClassFields inherited from class eu.bandm.tools.dtd.DTD.MATCH_ONLY_00
_visitor_debug_stream, partial -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaction(DTD.Abbrev abbrev) voidaction(DTD.Choice choice) voidaction(DTD.Element element) voidvoidaction(DTD.Singleton singleton) Nondestructive, returns a new content model which is the simplification of the argument.Methods inherited from class eu.bandm.tools.dtd.DTD.SinglePathVisitor
action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, follow_alts, follow_atts, follow_elems, follow_locations, follow_locations, follow_locations, follow_markupMethods inherited from class eu.bandm.tools.dtd.DTD.MATCH_ONLY_00
action, action, action, action, compile, followAll_alts, followAll_atts, followAll_elems, followAll_locations, followAll_locations, followAll_locations, followAll_markup, foreignObject, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, nomatch
-
Constructor Details
-
ContentSimplifier
public ContentSimplifier()
-
-
Method Details
-
action
- Overrides:
actionin classDTD.SinglePathVisitor
-
simplify
Nondestructive, returns a new content model which is the simplification of the argument. -
action
- Overrides:
actionin classDTD.SinglePathVisitor
-
action
- Overrides:
actionin classDTD.SinglePathVisitor
-
action
- Overrides:
actionin classDTD.SinglePathVisitor
-
action
- Overrides:
actionin classDTD.SinglePathVisitor
-