org.apache.cocoon.selection
Class SessionAttributeSelector
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.selection.SessionAttributeSelector
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.Loggable, Selector, org.apache.avalon.framework.thread.ThreadSafe
- Direct Known Subclasses:
- SessionAttributeSelectorFactory, SessionStateSelector
- public class SessionAttributeSelector
- extends org.apache.avalon.framework.logger.AbstractLoggable
- implements org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.thread.ThreadSafe, Selector
A Selector
that matches a string against a configurable session
attribute's string represenation.
Global and local configuration
attribute-name | String identifying the session attribute. |
- Version:
- CVS $Id: SessionAttributeSelector.java,v 1.7 2002/02/22 07:03:54 cziegeler Exp $
- Author:
- Christian Haul, Sylvain Wallez
Fields inherited from interface org.apache.cocoon.selection.Selector |
ROLE |
Method Summary |
void |
configure(org.apache.avalon.framework.configuration.Configuration config)
|
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 |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultName
protected java.lang.String defaultName
SessionAttributeSelector
public SessionAttributeSelector()
configure
public void configure(org.apache.avalon.framework.configuration.Configuration config)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
select
public boolean select(java.lang.String expression,
java.util.Map objectModel,
org.apache.avalon.framework.parameters.Parameters parameters)
- Description copied from interface:
Selector
- Selectors test pattern against some objects in a
Map
model and signals success with the returned boolean value
- Specified by:
select
in interface Selector
- Following copied from interface:
org.apache.cocoon.selection.Selector
- 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.