org.sitemesh.tagprocessor
Class State
java.lang.Object
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
State
public State()
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.