Class AddClassAttributeToFirstHeaderRule

  • All Implemented Interfaces:
    com.opensymphony.module.sitemesh.html.TagRule
    Direct Known Subclasses:
    AddFirstChildClassToHeader

    public class AddClassAttributeToFirstHeaderRule
    extends com.opensymphony.module.sitemesh.html.BasicRule
    Rule for HTMLProcessor that adds a class attribute to the first header of the body if it is the first element. The attribute value is by default "FirstChild".
    • Constructor Detail

      • AddClassAttributeToFirstHeaderRule

        public AddClassAttributeToFirstHeaderRule()
      • AddClassAttributeToFirstHeaderRule

        public AddClassAttributeToFirstHeaderRule​(String className)
    • 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