org.codehaus.xsite.extractors.sitemesh.rules
Class AddFirstChildClassToHeader

java.lang.Object
  extended by com.opensymphony.module.sitemesh.html.BasicRule
      extended by 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.


Field Summary
 
Fields inherited from class com.opensymphony.module.sitemesh.html.BasicRule
context
 
Constructor Summary
AddFirstChildClassToHeader()
           
 
Method Summary
 void process(com.opensymphony.module.sitemesh.html.Tag tag)
           
 boolean shouldProcess(String tag)
           
 
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
 

Constructor Detail

AddFirstChildClassToHeader

public AddFirstChildClassToHeader()
Method Detail

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 © 2009. All Rights Reserved.