net.sf.doolin.gui.wizard.rule.condition
Interface WizardRule

All Known Implementing Classes:
AbstractWizardRule, FinishWizardRule, FixedWizardRule, JEXLWizardRule

public interface WizardRule

Individual rule that is evaluated for a view. If this rule is evaluated to true, then its result will be used as the next view to navigate to. A special result if FINISH ( null) which means that the view can be finished.

Author:
Damien Coraboeuf

Field Summary
static String FINISH
          Special result (@{value}) which means that the view can be finished.
 
Method Summary
 boolean evaluate(Object model)
          Evaluates the rule against the wizard bean.
 String getResult()
          Gets the result of this rule, either the view the wizard can be navigated to or null if the wizard can be finished.
 

Field Detail

FINISH

static final String FINISH
Special result (@{value}) which means that the view can be finished.

Method Detail

evaluate

boolean evaluate(Object model)
Evaluates the rule against the wizard bean. If the evaluation returns true, the wizard can be navigated to the rule result (or Finish if this result is null).

Parameters:
model - Wizard bean
Returns:
Result of the evaluation

getResult

String getResult()
Gets the result of this rule, either the view the wizard can be navigated to or null if the wizard can be finished.

Returns:
Rule result


Copyright © 2011. All Rights Reserved.