1 16 package org.apache.cocoon.selection; 17 18 import org.apache.avalon.framework.logger.AbstractLogEnabled; 19 import org.apache.avalon.framework.parameters.Parameters; 20 21 import java.util.Map ; 22 23 30 public abstract class AbstractSwitchSelector extends AbstractLogEnabled 31 implements SwitchSelector { 32 33 43 public abstract Object getSelectorContext(Map objectModel, Parameters parameters); 44 45 51 public abstract boolean select(String expression, Object selectorContext); 52 53 59 public boolean select(String expr, Map objectModel, Parameters params) { 60 return select(expr, getSelectorContext(objectModel, params)); 61 } 62 } 63 64 65 | Popular Tags |