org.codehaus.xsite.extractors.sitemesh.rules
Class AddFirstChildClassToHeader
java.lang.Object
com.opensymphony.module.sitemesh.html.BasicRule
org.codehaus.xsite.extractors.sitemesh.rules.AddFirstChildClassToHeader
- All Implemented Interfaces:
- com.opensymphony.module.sitemesh.html.TagRule
public class AddFirstChildClassToHeader
- extends com.opensymphony.module.sitemesh.html.BasicRule
Rule for HTMLProcessor that adds class=""FirstChild" to the first header of the body if it is the first element.
Fields inherited from class com.opensymphony.module.sitemesh.html.BasicRule |
context |
Methods inherited from class com.opensymphony.module.sitemesh.html.BasicRule |
currentBuffer, setContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddFirstChildClassToHeader
public AddFirstChildClassToHeader()
shouldProcess
public boolean shouldProcess(String tag)
- Specified by:
shouldProcess
in interface com.opensymphony.module.sitemesh.html.TagRule
- Overrides:
shouldProcess
in class com.opensymphony.module.sitemesh.html.BasicRule
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
Copyright © 2011. All Rights Reserved.