Class TopLevelBlockExtractingRule

  • All Implemented Interfaces:
    com.opensymphony.module.sitemesh.html.TagRule

    public class TopLevelBlockExtractingRule
    extends com.opensymphony.module.sitemesh.html.BasicRule
    Rule to extract all top level block elements as separate paragraphs. Normally a body should contain only such elements. In case of other tags or text, those are added as separate p block.
    Author:
    Jörg Schaible
    • Constructor Detail

      • TopLevelBlockExtractingRule

        public TopLevelBlockExtractingRule​(com.opensymphony.module.sitemesh.html.rules.PageBuilder page)
    • Method Detail

      • process

        public void process​(com.opensymphony.module.sitemesh.html.Tag tag)
        Specified by:
        process in interface com.opensymphony.module.sitemesh.html.TagRule
        Specified by:
        process in class com.opensymphony.module.sitemesh.html.BasicRule