org.apache.cocoon.selection
Interface Selector

All Superinterfaces:
org.apache.avalon.framework.component.Component
All Known Implementing Classes:
CookieSelector, HeaderSelector, NamedPatternsSelector, ParameterSelector, RequestAttributeSelector, RequestMethodSelector, RequestParameterSelector, SessionAttributeSelector

public interface Selector
extends org.apache.avalon.framework.component.Component

Version:
CVS $Id: Selector.java,v 1.4 2002/02/22 07:03:54 cziegeler Exp $
Author:
Giacomo Pati
, Leo Sutic

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 boolean select(java.lang.String expression, java.util.Map objectModel, org.apache.avalon.framework.parameters.Parameters parameters)
          Selectors test pattern against some objects in a Map model and signals success with the returned boolean value
 

Field Detail

ROLE

public static final java.lang.String ROLE
See Also:
Constant Field Values
Method Detail

select

public boolean select(java.lang.String expression,
                      java.util.Map objectModel,
                      org.apache.avalon.framework.parameters.Parameters parameters)
Selectors test pattern against some objects in a Map model and signals success with the returned boolean value

Parameters:
expression - The expression to test.
objectModel - The Map containing object of the calling environment which may be used to select values to test the expression.
parameters - The sitemap parameters, as specified by <parameter/> tags.
Returns:
boolean Signals successfull test.


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.