| org.apache.cocoon.selection.NamedPatternsSelector
All known Subclasses: org.apache.cocoon.selection.HostSelector, org.apache.cocoon.selection.BrowserSelector,
NamedPatternsSelector | abstract public class NamedPatternsSelector extends AbstractLogEnabled implements Configurable,ThreadSafe,Selector(Code) | | Abstract class for selectors that select a value when it matches
some patterns associated to the select expression.
See Also: BrowserSelector See Also: HostSelector author: Sylvain Wallez version: CVS $Id: NamedPatternsSelector.java 433543 2006-08-22 06:22:54Z crossley $ |
checkPatterns | protected boolean checkPatterns(String expression, String value)(Code) | | Checks if value is a substring of one of the patterns associated
to expression
Parameters: expression - the expression that is selected Parameters: value - the value to check true if value matches one of the patterns |
configure | protected void configure(Configuration conf, String confName, String nameAttr, String valueAttr) throws ConfigurationException(Code) | | Setup the association from expressions to a list of patterns. The configuration
should look like :
<pre>
<map:selector name="foo" src="...">
<confName nameAttr="expression" valueAttr="pattern"/>
... others (expression, pattern) associations ...
</map:selector>
</pre>
Parameters: conf - the configuration Parameters: confName - the name of children of conf that will be used tobuild associations Parameters: nameAttr - the name of the attribute that holds the expression Parameters: valueAttr - the name of the attribute that holds the pattern |
|
|