com.opensymphony.module.sitemesh.html
Class BasicRule
java.lang.Object
com.opensymphony.module.sitemesh.html.BasicRule
- All Implemented Interfaces:
- TagRule
- Direct Known Subclasses:
- BlockExtractingRule, BodyTagRule, DivExtractingPageParser.TopLevelDivExtractingRule, FramesetRule, HtmlAttributesRule, MetaTagRule, ParameterExtractingRule, StateTransitionRule, TagReplaceRule
public abstract class BasicRule
- extends java.lang.Object
- implements TagRule
Constructor Summary |
protected |
BasicRule()
|
protected |
BasicRule(java.lang.String acceptableTagName)
|
protected |
BasicRule(java.lang.String[] acceptableTagNames)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
acceptableTagNames
private final java.lang.String[] acceptableTagNames
context
protected HTMLProcessorContext context
BasicRule
protected BasicRule(java.lang.String[] acceptableTagNames)
BasicRule
protected BasicRule(java.lang.String acceptableTagName)
BasicRule
protected BasicRule()
setContext
public void setContext(HTMLProcessorContext context)
- Specified by:
setContext
in interface TagRule
shouldProcess
public boolean shouldProcess(java.lang.String name)
- Description copied from interface:
TagRule
- Called by the HTMLProcessor to determine if a rule should be called for a given tag.
The name parameter will always be passed in lowercase.
- Specified by:
shouldProcess
in interface TagRule
process
public abstract void process(Tag tag)
- Specified by:
process
in interface TagRule
currentBuffer
protected CharArray currentBuffer()