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

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

public final class XmlStructFactory
extends Object

Version:
$Revsion$

A class for constructing Workflow Manager objects from XML Nodes and Elements.

Author:
mattmann

Field Summary
static Logger LOG
           
 
Method Summary
static Properties getConfiguration(Node node)
           Constructs a new WorkflowTaskConfiguration from the given XML node.
static List getRequiredMetFields(Node node)
           
static Workflow getWorkflow(Node node, HashMap tasks)
           Creates Workflows from the XML Node and the map of existing WorkflowTasks.
static WorkflowCondition getWorkflowCondition(Node node)
           Constructs a new WorkflowCondition from the given XML Node.
static WorkflowTask getWorkflowTask(Node node, HashMap conditions)
           Constructs a new WorkflowTask from the given XML node and HashMap of WorkflowConditions.
 
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

getWorkflow

public static Workflow getWorkflow(Node node,
                                   HashMap tasks)

Creates Workflows from the XML Node and the map of existing WorkflowTasks.

Parameters:
node - The XML node to construct the Workflow from.
tasks - The HashMap of existing WorkflowTasks.
Returns:
A new Workflow created from the XML node.

getWorkflowTask

public static WorkflowTask getWorkflowTask(Node node,
                                           HashMap conditions)

Constructs a new WorkflowTask from the given XML node and HashMap of WorkflowConditions.

Parameters:
node - The XML node to construct the WorkflowTask from.
conditions - The HashMap of WorkflowConditions to use when constructing the WorkflowTask.
Returns:
A new WorkflowTask created from the given XML node.

getWorkflowCondition

public static WorkflowCondition getWorkflowCondition(Node node)

Constructs a new WorkflowCondition from the given XML Node.

Parameters:
node - The XML node to construct the WorkflowCondition from.
Returns:
A new WorkflowCondition from the given XML node.

getRequiredMetFields

public static List getRequiredMetFields(Node node)
Parameters:
node -
Returns:

getConfiguration

public static Properties getConfiguration(Node node)

Constructs a new WorkflowTaskConfiguration from the given XML node.

Parameters:
node - The XML node to construct the WorkflowTaskConfiguration from.
Returns:
A new WorkflowTaskConfiguration constructed from the given XML node.


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