Class BlockExtractingRule
java.lang.Object
com.opensymphony.module.sitemesh.html.BasicRule
com.opensymphony.module.sitemesh.html.BlockExtractingRule
- All Implemented Interfaces:
TagRule
- Direct Known Subclasses:
ContentBlockExtractingRule,HeadExtractingRule,MSOfficeDocumentPropertiesRule,TitleExtractingRule
The Class BlockExtractingRule.
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBlockExtractingRule(boolean keepInBuffer) Instantiates a new block extracting rule.protectedBlockExtractingRule(boolean keepInBuffer, String acceptableTagName) Instantiates a new block extracting rule. -
Method Summary
Modifier and TypeMethodDescriptionprotected SitemeshBufferFragment.BuildercreateBuffer(SitemeshBuffer sitemeshBuffer) Creates the buffer.protected voidEnd.voidProcess.protected voidStart.Methods inherited from class com.opensymphony.module.sitemesh.html.BasicRule
currentBuffer, getCurrentBufferContent, setContext, shouldProcess
-
Constructor Details
-
BlockExtractingRule
Instantiates a new block extracting rule.- Parameters:
keepInBuffer- the keep in bufferacceptableTagName- the acceptable tag name
-
BlockExtractingRule
protected BlockExtractingRule(boolean keepInBuffer) Instantiates a new block extracting rule.- Parameters:
keepInBuffer- the keep in buffer
-
-
Method Details
-
process
Description copied from interface:TagRuleProcess.- Parameters:
tag- the tag
-
start
Start.- Parameters:
tag- the tag
-
end
End.- Parameters:
tag- the tag
-
createBuffer
Creates the buffer.- Parameters:
sitemeshBuffer- the sitemesh buffer- Returns:
- the sitemesh buffer fragment. builder
-