*/
public class NotFactory implements EvaluatorFactory {
private Log log = LogFactory.getLog(NotFactory.class);
public Evaluator create(OMElement e) throws EvaluatorException {
NotEvaluator not = new NotEvaluator();
OMElement ce = e.getFirstElement();
EvaluatorFactory ef = EvaluatorFactoryFinder.getInstance().
findEvaluatorFactory(ce.getLocalName());
if (ef == null) {
handleException("Invalid configuration element: " + ce.getLocalName());
return null;
}
Evaluator evaluator = ef.create(ce);
not.setEvaluator(evaluator);
return not;
}