org.sitemesh.tagprocessor
Class State

java.lang.Object
  extended by org.sitemesh.tagprocessor.State

public class State
extends Object

Acts a registry of TagRules to apply whilst the TagProcessor is processing the document in this particular state.

Author:
Joe Walnes

Constructor Summary
State()
           
 
Method Summary
 void addRule(String tagName, TagRule rule)
          Adds a TagRule that will be called for
 TagRule getRule(String tagName)
           
 void handleText(CharSequence text, TagProcessorContext context)
           
 boolean shouldProcessTag(String tagName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

State

public State()
Method Detail

addRule

public void addRule(String tagName,
                    TagRule rule)
Adds a TagRule that will be called for

Parameters:
rule -

shouldProcessTag

public boolean shouldProcessTag(String tagName)

getRule

public TagRule getRule(String tagName)

handleText

public void handleText(CharSequence text,
                       TagProcessorContext context)
                throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.