org.apache.cocoon.selection
Class AbstractSwitchSelector

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.selection.AbstractSwitchSelector
All Implemented Interfaces:
Component, LogEnabled, ThreadSafe, Selector, SwitchSelector
Direct Known Subclasses:
AbstractRegexpSelector, AjaxRequestSelector, ExceptionSelector, MailCommandSelector, RequestParameterSelector, SimpleSelector

public abstract class AbstractSwitchSelector
extends AbstractLogEnabled
implements SwitchSelector

Abstract SwitchSelector class.

Version:
$Id: AbstractSwitchSelector.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Marcus Crafter, Sylvain Wallez

Field Summary
 
Fields inherited from interface org.apache.cocoon.selection.SwitchSelector
ROLE
 
Constructor Summary
AbstractSwitchSelector()
           
 
Method Summary
 boolean select(String expr, Map objectModel, Parameters params)
          Selectors test pattern against some objects in a Map model and signals success with the returned boolean value
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.selection.SwitchSelector
getSelectorContext, select
 

Constructor Detail

AbstractSwitchSelector

public AbstractSwitchSelector()
Method Detail

select

public boolean select(String expr,
                      Map objectModel,
                      Parameters params)
Selectors test pattern against some objects in a Map model and signals success with the returned boolean value

Specified by:
select in interface Selector
Parameters:
expr - The expression to test.
objectModel - The Map containing object of the calling environment which may be used to select values to test the expression.
params - The sitemap parameters, as specified by <parameter/> tags.
Returns:
Signals successful test.


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.