org.apache.oodt.cas.workflow.util
Class GenericWorkflowObjectFactory

java.lang.Object
  extended by org.apache.oodt.cas.workflow.util.GenericWorkflowObjectFactory

public final class GenericWorkflowObjectFactory
extends Object

Version:
$Revision$

Generic Workflow object construction utilities.

Author:
mattmann

Field Summary
static Logger LOG
           
 
Method Summary
static WorkflowCondition copyCondition(WorkflowCondition c)
           
static List copyConditions(List conditionList)
          Creates copies of each WorkflowCondition within the specified List of WorkflowConditions specified by conditionList.
static WorkflowTask copyTask(WorkflowTask t)
           
static List copyTasks(List taskList)
          Creates copies of each WorkflowTask within the specified List of WorkflowTasks specified by taskList.
static Workflow copyWorkflow(Workflow w)
          Creates an exact copy of the specified Workflow w, allocating new memory for the new object, and then returning it.
static List copyWorkflows(List workflows)
           
static WorkflowConditionInstance getConditionObjectFromClassName(String className)
           Constructs a WorkflowConditionInstance from the given implementation class name.
static WorkflowTaskInstance getTaskObjectFromClassName(String className)
           Constructs a WorkflowTaskInstance from the given implementation class name.
static WorkflowInstanceRepository getWorkflowInstanceRepositoryFromClassName(String serviceFactory)
           
static Workflow getWorkflowObjectFromClassName(String className)
           Constructs a Workflow instance from the given implementation class name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static Logger LOG
Method Detail

getWorkflowInstanceRepositoryFromClassName

public static WorkflowInstanceRepository getWorkflowInstanceRepositoryFromClassName(String serviceFactory)

getTaskObjectFromClassName

public static WorkflowTaskInstance getTaskObjectFromClassName(String className)

Constructs a WorkflowTaskInstance from the given implementation class name.

Parameters:
className - The String name of the class (including package qualifiers) that implements the WorkflowTaskInstance interface to construct.
Returns:
A new WorkflowTaskInstance implementation specified by its class name.

getConditionObjectFromClassName

public static WorkflowConditionInstance getConditionObjectFromClassName(String className)

Constructs a WorkflowConditionInstance from the given implementation class name.

Parameters:
className - The String name of the class (including package qualifiers) that implements the WorkflowConditionInstance interface to construct.
Returns:
A new WorkflowConditionInstance implementation specified by its class name.

getWorkflowObjectFromClassName

public static Workflow getWorkflowObjectFromClassName(String className)

Constructs a Workflow instance from the given implementation class name.

Parameters:
className - The String name of the class (including package qualifiers) that implements the Workflow interface to construct.
Returns:
A new Workflow implementation specified by its class name.

copyWorkflows

public static List copyWorkflows(List workflows)

copyWorkflow

public static Workflow copyWorkflow(Workflow w)

Creates an exact copy of the specified Workflow w, allocating new memory for the new object, and then returning it. The Workflow's WorkflowTasks and WorkflowConditions on those tasks are also constructed anew, and copied from their original instances.

Parameters:
w - The Workflow object to create a copy of.
Returns:
A copy of the specified Workflow.

copyTasks

public static List copyTasks(List taskList)

Creates copies of each WorkflowTask within the specified List of WorkflowTasks specified by taskList. The new List of WorkflowTasks is returned.

Parameters:
taskList - The original List of WorkflowTasks to copy.
Returns:
A new List of WorkflowTasks, copied from the original one specified.

copyTask

public static WorkflowTask copyTask(WorkflowTask t)

copyConditions

public static List copyConditions(List conditionList)

Creates copies of each WorkflowCondition within the specified List of WorkflowConditions specified by conditionList. The new List of WorkflowConditions is returned.

Parameters:
conditionList - The original List of WorkflowConditions to copy.
Returns:
A new List of WorkflowConditions, copied from the original one specified.

copyCondition

public static WorkflowCondition copyCondition(WorkflowCondition c)


Copyright © 1999-2011 Apache OODT. All Rights Reserved.