at.gv.egovernment.moa.spss.server.invoke
Class TransformationFactory

java.lang.Object
  |
  +--at.gv.egovernment.moa.spss.server.invoke.TransformationFactory

public class TransformationFactory
extends Object

A factory to create Transformation objects from Transform objects.

Version:
$Id$
Author:
Patrick Peck

Constructor Summary
protected TransformationFactory()
          Create a new TransformationFactory.
 
Method Summary
 iaik.server.modules.xml.Transformation createTransformation(at.gv.egovernment.moa.spss.api.common.Transform transform)
          Create a Transformation based on a Transform object.
 List createTransformationList(List transforms)
          Create a List of Transformations from a List of Transforms.
static TransformationFactory getInstance()
          Get the single instance of the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformationFactory

protected TransformationFactory()
Create a new TransformationFactory. Protected to disallow multiple instances.
Method Detail

getInstance

public static TransformationFactory getInstance()
Get the single instance of the factory.
Returns:
TransformationFactory The single instance.

createTransformation

public iaik.server.modules.xml.Transformation createTransformation(at.gv.egovernment.moa.spss.api.common.Transform transform)
                                                            throws MOAApplicationException
Create a Transformation based on a Transform object.
Parameters:
transform - The Transform object to extract transformation data from.
Returns:
The transformation contained in the transform object.
Throws:
MOAApplicationException - An error occured creating the Transformation. See exception message for details.

createTransformationList

public List createTransformationList(List transforms)
                              throws MOAApplicationException
Create a List of Transformations from a List of Transforms.
Parameters:
transforms - The List containing the Transforms.
Returns:
The List of Transformations corresponding to the transforms.
Throws:
MOAApplicationException - An error occurred building one of the transformations. See exception message for details.