org.yawlfoundation.yawl.resourcing.util
Class DataSchemaBuilder

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.util.DataSchemaBuilder

public class DataSchemaBuilder
extends Object

Expands a data schema for a case start or a task to its base xsd types for use in the definition of a dynamic form. Author: Michael Adams Creation Date: 5/04/2010


Constructor Summary
DataSchemaBuilder(Map<String,org.jdom.Element> schemaMap)
          The constructor.
 
Method Summary
 String build(SpecificationData specData)
          Constructs the expanded data schema, using the user-defined-types map passed in via the constructor
 String build(TaskInformation taskInfo)
          Constructs the expanded data schema, using the user-defined-types map passed in via the constructor
 String buildSchema(String rootName, List<YParameter> parameters)
          Constructs the expanded data schema, using the user-defined-types map passed in via the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSchemaBuilder

public DataSchemaBuilder(Map<String,org.jdom.Element> schemaMap)
The constructor.

Parameters:
schemaMap - a map of user defined types of this particular specification
Method Detail

build

public String build(SpecificationData specData)
Constructs the expanded data schema, using the user-defined-types map passed in via the constructor

Parameters:
specData - the SpecificationData object for the spec to construct a schema for
Returns:
the constructed schema (as a string)

build

public String build(TaskInformation taskInfo)
Constructs the expanded data schema, using the user-defined-types map passed in via the constructor

Parameters:
taskInfo - the TaskInformation object for the task to construct a schema for
Returns:
the constructed schema (as a string)

buildSchema

public String buildSchema(String rootName,
                          List<YParameter> parameters)
Constructs the expanded data schema, using the user-defined-types map passed in via the constructor.

Parameters:
rootName - the name of the root element (task or root net name)
parameters - the List of parameters to build the schema for
Returns:
the constructed schema (as a string)


Copyright © 2004-2012 The YAWL Foundation.