com.jeta.open.rules
Interface JETARule

All Known Implementing Classes:
AbstractRule, EmptyRule, RuleGroup

public interface JETARule

This interface defines a generic rule for an application. Rules are generally used to check for valid inputs on GUIs. We provide a generic interface because the Rule system needs to be flexible. For example, rules can stand on their own or be composed of multiple sub-rules.


Method Summary
 RuleResult check(Object[] params)
          Runs the rule.
 

Method Detail

check

RuleResult check(Object[] params)
Runs the rule. If the rule succeeds, then null is returned. Otherwise an error message is returned.

Parameters:
params - an array of parameters needed by this rule. The rule defines the parameters that it needs.
Returns:
null or RuleResult.SUCCESS if the rule passes. Otherwise, return a RuleResult with a failed error code and an option error message


Copyright © 2005-2007 Jeff Tassin & Todd Viegut. All Rights Reserved.