net.sf.doolin.gui.wizard.rule.condition
Class JEXLWizardRule

java.lang.Object
  extended by net.sf.doolin.gui.wizard.rule.condition.AbstractWizardRule
      extended by net.sf.doolin.gui.wizard.rule.condition.JEXLWizardRule
All Implemented Interfaces:
WizardRule

public class JEXLWizardRule
extends AbstractWizardRule

This rule is based on a JEXL expression.

Author:
Damien Coraboeuf

Field Summary
 
Fields inherited from interface net.sf.doolin.gui.wizard.rule.condition.WizardRule
FINISH
 
Constructor Summary
JEXLWizardRule()
           
 
Method Summary
 boolean evaluate(Object model)
          Evaluates the JEXL expression to a boolean.
 String getCondition()
          Gets the JEXL expression
 String getModelName()
          Gets the name of the wizard bean in the JEXL expression
 void setCondition(String condition)
          Sets the JEXL expression
 void setModelName(String modelName)
          Sets the name of the wizard bean in the JEXL expression.
 
Methods inherited from class net.sf.doolin.gui.wizard.rule.condition.AbstractWizardRule
getResult, setResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JEXLWizardRule

public JEXLWizardRule()
Method Detail

evaluate

public boolean evaluate(Object model)
Evaluates the JEXL expression to a boolean.

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

getCondition

public String getCondition()
Gets the JEXL expression

Returns:
JEXL expression

getModelName

public String getModelName()
Gets the name of the wizard bean in the JEXL expression

Returns:
Bean name

setCondition

public void setCondition(String condition)
Sets the JEXL expression

Parameters:
condition - JEXL expression

setModelName

public void setModelName(String modelName)
Sets the name of the wizard bean in the JEXL expression. It is set by default to "model".

Parameters:
modelName - Bean name


Copyright © 2011. All Rights Reserved.