org.apache.lenya.workflow.impl
Class BooleanVariableCondition

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.workflow.impl.AbstractCondition
          extended by org.apache.lenya.workflow.impl.BooleanVariableCondition
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, org.apache.lenya.workflow.Condition

public class BooleanVariableCondition
extends AbstractCondition

Implementation of a boolean variable condition.


Constructor Summary
BooleanVariableCondition()
           
 
Method Summary
protected  boolean getValue()
          Returns the variable value to check.
protected  java.lang.String getVariableName()
          Returns the variable name to check.
 boolean isComplied(org.apache.lenya.workflow.Workflow workflow, org.apache.lenya.workflow.Workflowable workflowable)
           
 void setExpression(java.lang.String expression)
           
 
Methods inherited from class org.apache.lenya.workflow.impl.AbstractCondition
getExpression, toString
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanVariableCondition

public BooleanVariableCondition()
Method Detail

getValue

protected boolean getValue()
Returns the variable value to check.

Returns:
A boolean value.

getVariableName

protected java.lang.String getVariableName()
Returns the variable name to check.

Returns:
A string.

setExpression

public void setExpression(java.lang.String expression)
                   throws org.apache.lenya.workflow.WorkflowException
Specified by:
setExpression in interface org.apache.lenya.workflow.Condition
Overrides:
setExpression in class AbstractCondition
Throws:
org.apache.lenya.workflow.WorkflowException
See Also:
Condition.setExpression(java.lang.String)

isComplied

public boolean isComplied(org.apache.lenya.workflow.Workflow workflow,
                          org.apache.lenya.workflow.Workflowable workflowable)
                   throws org.apache.lenya.workflow.WorkflowException
Throws:
org.apache.lenya.workflow.WorkflowException
See Also:
Condition.isComplied(org.apache.lenya.workflow.Workflow, org.apache.lenya.workflow.Workflowable)


Copyright © $ Apache Software Foundation. All Rights Reserved.