org.apache.lenya.workflow.impl
Class BooleanVariableAssignmentImpl

java.lang.Object
  extended by org.apache.lenya.workflow.impl.BooleanVariableAssignmentImpl
All Implemented Interfaces:
org.apache.lenya.workflow.Action, org.apache.lenya.workflow.BooleanVariableAssignment

public class BooleanVariableAssignmentImpl
extends java.lang.Object
implements org.apache.lenya.workflow.BooleanVariableAssignment

Implementation of a boolean variable assignment.


Constructor Summary
protected BooleanVariableAssignmentImpl(java.lang.String name, boolean value)
          Ctor.
 
Method Summary
 void execute(org.apache.lenya.workflow.Version resultingVersion)
           
 boolean getValue()
          Returns the value of this assignment.
 java.lang.String getVariable()
          Returns the variable of this assignment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanVariableAssignmentImpl

protected BooleanVariableAssignmentImpl(java.lang.String name,
                                        boolean value)
Ctor.

Parameters:
name - The variable name.
value - The value.
Method Detail

execute

public void execute(org.apache.lenya.workflow.Version resultingVersion)
             throws org.apache.lenya.workflow.WorkflowException
Specified by:
execute in interface org.apache.lenya.workflow.Action
Throws:
org.apache.lenya.workflow.WorkflowException
See Also:
Action.execute(org.apache.lenya.workflow.Version)

getValue

public boolean getValue()
Returns the value of this assignment.

Returns:
A boolean value.

getVariable

public java.lang.String getVariable()
Returns the variable of this assignment.

Returns:
A variable.


Copyright $ Apache Software Foundation. All Rights Reserved.