org.pietschy.command
Class DefaultConditionEvaluator

java.lang.Object
  extended by org.pietschy.command.DefaultConditionEvaluator
All Implemented Interfaces:
ConditionEvaluator

public class DefaultConditionEvaluator
extends java.lang.Object
implements ConditionEvaluator

Version:
$Revision: 1.5 $
Author:
andrewp

Constructor Summary
DefaultConditionEvaluator()
           
 
Method Summary
 boolean evaluate(java.lang.String expression)
          Evaluates the specified condition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConditionEvaluator

public DefaultConditionEvaluator()
Method Detail

evaluate

public boolean evaluate(java.lang.String expression)
                 throws EvaluationException
Description copied from interface: ConditionEvaluator
Evaluates the specified condition. The expressoin syntax is undefined and must be defined by each individual implementation.

Specified by:
evaluate in interface ConditionEvaluator
Parameters:
expression - the conditional expression as a string.
Returns:
true if the expression evaluates to true, false otherwise.
Throws:
EvaluationException
See Also:
DefaultConditionEvaluator