org.gvsig.tools.evaluator
Class AndEvaluator

java.lang.Object
  extended by org.gvsig.tools.evaluator.AbstractEvaluator
      extended by org.gvsig.tools.evaluator.AndEvaluator
All Implemented Interfaces:
Evaluator

public class AndEvaluator
extends AbstractEvaluator

This evaluator is a set of evaluators that are applied used the and operator. It means that the evaluate method only returns true if all the evaluators return true.

A condition to use this type of evaluators is that the evaluate method of all the single evaluators has to return a boolean value.

Version:
$Id$
Author:
gvSIG Team

Constructor Summary
AndEvaluator(Evaluator evaluator)
           
 
Method Summary
 void addEvaluator(Evaluator evaluator)
           
 Object evaluate(EvaluatorData data)
          Evaluate with the data passed as parameter.
 String getName()
          Get the symbolic name of the evaluator.
 String getSQL()
          Get a SQL representation of the evaluator.
 
Methods inherited from class org.gvsig.tools.evaluator.AbstractEvaluator
getDescription, getFieldsInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndEvaluator

public AndEvaluator(Evaluator evaluator)
Method Detail

evaluate

public Object evaluate(EvaluatorData data)
                throws EvaluatorException
Description copied from interface: Evaluator
Evaluate with the data passed as parameter.

Returns:
the result of the evaluation.
Throws:
EvaluatorException

getName

public String getName()
Description copied from interface: Evaluator
Get the symbolic name of the evaluator.

Returns:
evaluator's name

addEvaluator

public void addEvaluator(Evaluator evaluator)

getSQL

public String getSQL()
Description copied from interface: Evaluator
Get a SQL representation of the evaluator.

Specified by:
getSQL in interface Evaluator
Overrides:
getSQL in class AbstractEvaluator
Returns:
the SQL string or null if not supported.


Copyright © 2004-2011 gvSIG. All Rights Reserved.