public abstract class BasicRule extends java.lang.Object implements TagRule
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
acceptableTagNames |
protected HTMLProcessorContext |
context |
Modifier | Constructor and Description |
---|---|
protected |
BasicRule() |
protected |
BasicRule(java.lang.String acceptableTagName) |
protected |
BasicRule(java.lang.String[] acceptableTagNames) |
Modifier and Type | Method and Description |
---|---|
protected SitemeshBufferFragment.Builder |
currentBuffer() |
protected java.lang.String |
getCurrentBufferContent() |
abstract void |
process(Tag tag) |
void |
setContext(HTMLProcessorContext context) |
boolean |
shouldProcess(java.lang.String name)
Called by the HTMLProcessor to determine if a rule should be called for a given tag.
|
private final java.lang.String[] acceptableTagNames
protected HTMLProcessorContext context
protected BasicRule(java.lang.String[] acceptableTagNames)
protected BasicRule(java.lang.String acceptableTagName)
protected BasicRule()
public void setContext(HTMLProcessorContext context)
setContext
in interface TagRule
public boolean shouldProcess(java.lang.String name)
TagRule
shouldProcess
in interface TagRule
protected SitemeshBufferFragment.Builder currentBuffer()
protected java.lang.String getCurrentBufferContent()