com.opensymphony.module.sitemesh.html
Class BasicRule

java.lang.Object
  extended bycom.opensymphony.module.sitemesh.html.BasicRule
All Implemented Interfaces:
TagRule
Direct Known Subclasses:
BlockExtractingRule, BodyTagRule, FramesetRule, HtmlAttributesRule, MetaTagRule, ParameterExtractingRule, StateTransitionRule

public abstract class BasicRule
extends Object
implements TagRule


Field Summary
private  String[] acceptableTagNames
           
protected  HTMLProcessorContext context
           
 
Constructor Summary
protected BasicRule()
           
protected BasicRule(String acceptableTagName)
           
protected BasicRule(String[] acceptableTagNames)
           
 
Method Summary
abstract  void process(Tag tag)
           
 void setContext(HTMLProcessorContext context)
           
 boolean shouldProcess(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

acceptableTagNames

private final String[] acceptableTagNames

context

protected HTMLProcessorContext context
Constructor Detail

BasicRule

protected BasicRule(String[] acceptableTagNames)

BasicRule

protected BasicRule(String acceptableTagName)

BasicRule

protected BasicRule()
Method Detail

setContext

public void setContext(HTMLProcessorContext context)
Specified by:
setContext in interface TagRule

shouldProcess

public boolean shouldProcess(String name)
Specified by:
shouldProcess in interface TagRule

process

public abstract void process(Tag tag)
Specified by:
process in interface TagRule

www.opensymphony.com/sitemesh/