| java.lang.Object org.apache.cocoon.selection.ParameterSelector
ParameterSelector | public class ParameterSelector implements ThreadSafe,Selector(Code) | | A Selector that matches a string in the parameters object passed to it.
<map:selector name="parameter" factory="org.apache.cocoon.selection.ParameterSelector"/>
<map:select type="parameter">
<map:parameter name="parameter-selector-test" value="{mySitemapParameter}"/>
<map:when test="myParameterValue">
<!-- executes iff {mySitemapParameter} == "myParameterValue" -->
<map:transform src="stylesheets/page/uk.xsl"/>
</map:when>
<map:otherwise>
<map:transform src="stylesheets/page/us.xsl"/>
</map:otherwise>
</map:select>
The purpose of this selector is to allow an action to set parameters
and to be able to select between different pipeline configurations
depending on those parameters.
author: Leo Sutic author: Sylvain Wallez version: CVS $Id: ParameterSelector.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public boolean | select(String expression, Map objectModel, Parameters parameters) |
select | public boolean select(String expression, Map objectModel, Parameters parameters)(Code) | | |
|
|