public class SiteMeshDecorateRule extends BasicBlockRule<org.sitemesh.content.tagrules.decorate.SiteMeshDecorateRule.Holder>
ContentProperty object will be created for the inline block.body property.decorator attribute will specify which decorator is used.Some content<sitemesh:decorate decorator='/mydecorator' title='foo' cheese='bar'>blah</sitemesh:decorate>This will apply the decorator named
/mydecorator, passing inContentPropertywith the following properties:body=blah title=foo cheese=bar
tagProcessorContext| Constructor and Description |
|---|
SiteMeshDecorateRule(SiteMeshContext siteMeshContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
processEnd(Tag tag,
org.sitemesh.content.tagrules.decorate.SiteMeshDecorateRule.Holder holder)
Called when a block is ended (i.e.
|
protected org.sitemesh.content.tagrules.decorate.SiteMeshDecorateRule.Holder |
processStart(Tag tag)
Called when a block is started (i.e.
|
processsetTagProcessorContextpublic SiteMeshDecorateRule(SiteMeshContext siteMeshContext)
protected org.sitemesh.content.tagrules.decorate.SiteMeshDecorateRule.Holder processStart(Tag tag) throws IOException
BasicBlockRule<opening> tag is encountered).processStart in class BasicBlockRule<org.sitemesh.content.tagrules.decorate.SiteMeshDecorateRule.Holder>tag - Opening tag.BasicBlockRule.processEnd(Tag, Object). May be null.IOExceptionprotected void processEnd(Tag tag, org.sitemesh.content.tagrules.decorate.SiteMeshDecorateRule.Holder holder) throws IOException
BasicBlockRule</closing> tag is encountered).processEnd in class BasicBlockRule<org.sitemesh.content.tagrules.decorate.SiteMeshDecorateRule.Holder>tag - Closing tag. This will not have any attributes available (as they are associated
with an opening tag. To get access to the attributes, the BasicBlockRule.processStart(Tag) method
should access them and return them as data.holder - Data returned from BasicBlockRule.processStart(Tag). May be null.IOExceptionCopyright © 2015. All Rights Reserved.