public class ContentSimplifier extends DTD.SinglePathVisitor
, 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).
match(Object)._visitor_debug_stream, partial| Constructor and Description |
|---|
ContentSimplifier() |
| Modifier and Type | Method and Description |
|---|---|
void |
action(DTD.Abbrev abbrev) |
void |
action(DTD.Choice choice) |
void |
action(DTD.Element element) |
void |
action(DTD.Seq seq) |
void |
action(DTD.Singleton singleton) |
protected boolean |
mustExpand(String name) |
DTD.CP |
simplify(DTD.CP cp)
Nondestructive, returns a new content model which is the simplification of the
argument.
|
action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, actionaction, action, action, action, 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, nomatchpublic void action(DTD.Element element)
action in class DTD.SinglePathVisitorpublic DTD.CP simplify(DTD.CP cp)
public void action(DTD.Seq seq)
action in class DTD.SinglePathVisitorpublic void action(DTD.Choice choice)
action in class DTD.SinglePathVisitorpublic void action(DTD.Singleton singleton)
action in class DTD.SinglePathVisitorpublic void action(DTD.Abbrev abbrev)
action in class DTD.SinglePathVisitorprotected boolean mustExpand(String name)
see also the complete user documentation .