org.sitemesh.content.tagrules.html
Class ParameterExtractingRule
java.lang.Object
org.sitemesh.tagprocessor.BasicRule
org.sitemesh.content.tagrules.html.ParameterExtractingRule
- All Implemented Interfaces:
- TagRule
public class ParameterExtractingRule
- extends BasicRule
Extracts the contents of any elements that look like
<parameter name='x' value='y'> and write the contents
to a page property (page.x=y).
This is a cheap and cheerful mechanism for exporting values from content to decorators.
- Author:
- Joe Walnes
|
Method Summary |
void |
process(Tag tag)
Implementations can use this to do any necessary work on the Tag such as extracting
values or transforming it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterExtractingRule
public ParameterExtractingRule(ContentProperty propertyToExport)
process
public void process(Tag tag)
- Description copied from interface:
TagRule
- Implementations can use this to do any necessary work on the
Tag such as extracting
values or transforming it.
- Specified by:
process in interface TagRule- Specified by:
process in class BasicRule
Copyright © 2011. All Rights Reserved.