Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.lenya.workflow.impl
Class BooleanVariableCondition  view BooleanVariableCondition download BooleanVariableCondition.java

java.lang.Object
  extended byorg.apache.lenya.workflow.impl.AbstractCondition
      extended byorg.apache.lenya.workflow.impl.BooleanVariableCondition
All Implemented Interfaces:
org.apache.lenya.workflow.Condition

public class BooleanVariableCondition
extends AbstractCondition

Implementation of a boolean variable condition.


Field Summary
private static org.apache.log4j.Category log
           
private  boolean value
           
private  java.lang.String variableName
           
 
Fields inherited from class org.apache.lenya.workflow.impl.AbstractCondition
 
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.Situation situation, org.apache.lenya.workflow.WorkflowInstance instance)
          Returns if the condition is complied in a certain situation.
 void setExpression(java.lang.String expression)
          Sets the expression for this condition.
 
Methods inherited from class org.apache.lenya.workflow.impl.AbstractCondition
getExpression, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Category log

variableName

private java.lang.String variableName

value

private boolean value
Constructor Detail

BooleanVariableCondition

public BooleanVariableCondition()
Method Detail

getValue

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


getVariableName

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


setExpression

public void setExpression(java.lang.String expression)
                   throws org.apache.lenya.workflow.WorkflowException
Description copied from interface: org.apache.lenya.workflow.Condition
Sets the expression for this condition.

Specified by:
setExpression in interface org.apache.lenya.workflow.Condition
Overrides:
setExpression in class AbstractCondition

isComplied

public boolean isComplied(org.apache.lenya.workflow.Situation situation,
                          org.apache.lenya.workflow.WorkflowInstance instance)
                   throws org.apache.lenya.workflow.WorkflowException
Description copied from interface: org.apache.lenya.workflow.Condition
Returns if the condition is complied in a certain situation.