org.sitemesh.tagprocessor
Class BasicRule

java.lang.Object
  extended by org.sitemesh.tagprocessor.BasicRule
All Implemented Interfaces:
TagRule
Direct Known Subclasses:
BasicBlockRule, FramesetRule, HtmlAttributesRule, MetaTagRule, ParameterExtractingRule, StateTransitionRule, TagReplaceRule

public abstract class BasicRule
extends Object
implements TagRule

Basic implementation of TagRule.

Author:
Joe Walnes

Field Summary
protected  TagProcessorContext tagProcessorContext
           
 
Constructor Summary
BasicRule()
           
 
Method Summary
abstract  void process(Tag tag)
          Implementations can use this to do any necessary work on the Tag such as extracting values or transforming it.
 void setTagProcessorContext(TagProcessorContext tagProcessorContext)
          Injected by the TagProcessor before any of the other TagRule methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tagProcessorContext

protected TagProcessorContext tagProcessorContext
Constructor Detail

BasicRule

public BasicRule()
Method Detail

process

public abstract void process(Tag tag)
                      throws IOException
Description copied from interface: TagRule
Implementations can use this to do any necessary work on the Tag such as extracting values or transforming it.

Specified by:
process in interface TagRule
Throws:
IOException

setTagProcessorContext

public void setTagProcessorContext(TagProcessorContext tagProcessorContext)
Description copied from interface: TagRule
Injected by the TagProcessor before any of the other TagRule methods.

Specified by:
setTagProcessorContext in interface TagRule


Copyright © 2011. All Rights Reserved.