com.waveset.object
Class WorkflowComponentVisitor

java.lang.Object
  extended bycom.waveset.object.WorkflowComponentVisitor

public class WorkflowComponentVisitor
extends java.lang.Object

Class for visiting WorkflowComponents


Field Summary
static java.lang.String code_id
           
 
Constructor Summary
WorkflowComponentVisitor(FormItemVisitor formItemVisitor)
          Create a WorkflowComponentVisitor which uses the given FormItemVisitor to traverse all form items in the tree.
 
Method Summary
 FormItemVisitor getFormItemVisitor()
          Retrieves the form item visitor which we delegate to for each top-level FormItem which we find in the tree.
 void setFormItemVisitor(FormItemVisitor visitor)
          Sets the form item visitor which we delegate to for each top-level FormItem which we find in the tree.
protected  void visitAction(WFProcess.Action component)
          Called when a WFProcess.Action is encountered
protected  void visitActionResult(WFProcess.ActionResult component)
          Called when a WFProcess.ActionResult is encountered
protected  void visitActivity(WFProcess.Activity component)
          Called when a WFProcess.Activity is encountered
protected  void visitArgument(WFProcess.Argument component)
          Called when a WFProcess.Argument is encountered
protected  void visitExNode(ExNode node)
          Called when a top-level ExNode is encountered.
protected  void visitFormItem(FormItem item)
          Called when a top-level FormItem is encountered.
protected  void visitIteration(WFProcess.Iteration component)
          Called when a WFProcess.Iteration is encountered
protected  void visitReturn(WFProcess.Return component)
          Called when a WFProcess.Return is encountered
protected  void visitTransition(WFProcess.Transition component)
          Called when a WFProcess.Transition is encountered
protected  void visitVariable(Variable component)
          Called when a Variable is encountered
protected  void visitWFProcess(WFProcess component)
          Called when a WFProcess is encountered
 void visitWorkflowComponent(WorkflowComponent component)
          Called to visit a workflow component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Constructor Detail

WorkflowComponentVisitor

public WorkflowComponentVisitor(FormItemVisitor formItemVisitor)
Create a WorkflowComponentVisitor which uses the given FormItemVisitor to traverse all form items in the tree. If the FormItemVisitor has an ExNodeVisitor, the ExNodeVisitor will receive ExNode events.

Method Detail

getFormItemVisitor

public FormItemVisitor getFormItemVisitor()
Retrieves the form item visitor which we delegate to for each top-level FormItem which we find in the tree. If the FormItemVisitor has an ExNodeVisitor, the ExNodeVisitor will receive ExNode events.


setFormItemVisitor

public void setFormItemVisitor(FormItemVisitor visitor)
Sets the form item visitor which we delegate to for each top-level FormItem which we find in the tree. If the FormItemVisitor has an ExNodeVisitor, the ExNodeVisitor will receive ExNode events.


visitExNode

protected void visitExNode(ExNode node)
Called when a top-level ExNode is encountered. This implementation delegates to the ExNodeVisitor of the FormItemVisitor if one is set.


visitFormItem

protected void visitFormItem(FormItem item)
Called when a top-level FormItem is encountered. This implementation delegates to the FormItemVisitor is one is set.


visitWorkflowComponent

public void visitWorkflowComponent(WorkflowComponent component)
Called to visit a workflow component.


visitWFProcess

protected void visitWFProcess(WFProcess component)
Called when a WFProcess is encountered


visitActivity

protected void visitActivity(WFProcess.Activity component)
Called when a WFProcess.Activity is encountered


visitAction

protected void visitAction(WFProcess.Action component)
Called when a WFProcess.Action is encountered


visitIteration

protected void visitIteration(WFProcess.Iteration component)
Called when a WFProcess.Iteration is encountered


visitArgument

protected void visitArgument(WFProcess.Argument component)
Called when a WFProcess.Argument is encountered


visitReturn

protected void visitReturn(WFProcess.Return component)
Called when a WFProcess.Return is encountered


visitActionResult

protected void visitActionResult(WFProcess.ActionResult component)
Called when a WFProcess.ActionResult is encountered


visitTransition

protected void visitTransition(WFProcess.Transition component)
Called when a WFProcess.Transition is encountered


visitVariable

protected void visitVariable(Variable component)
Called when a Variable is encountered