uk.org.ogsadai.activity.transform
Class XSLTransformActivity

java.lang.Object
  |
  +--uk.org.ogsadai.engine.Activity
        |
        +--uk.org.ogsadai.activity.transform.XSLTransformActivity

public class XSLTransformActivity
extends Activity

An Activity to perform XSL-Transforms. The activity has two inputs and one output. The first input is the XML to be transformed, the second is the XSLT document. The result of applying the transformation is written to the output.

Note that this implementation stores the entire transformed result in memory, so the size of transform possible depends on available memory. For streamed transforms, an STX (Streaming Transformations for XML) activity implementation may be preferable.

Author:
The OGSA-DAI Project Team

Field Summary
 
Fields inherited from class uk.org.ogsadai.engine.Activity
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs
 
Constructor Summary
XSLTransformActivity(org.w3c.dom.Element element)
          Constructs the Activity with the specified element.
 
Method Summary
 void initialise()
          This method can be overridden by subclasses to perform any initialisation they require before the process method iterations begin.
 void processBlock()
          Performs the actual XSL Transformation.
 
Methods inherited from class uk.org.ogsadai.engine.Activity
cleanUp, connectsTo, getActivityConfiguration, getName, getObservableStatus, getProperties, getStatus, hasActivityConfiguration, hasProperties, processFirst, setCompleted, setError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLTransformActivity

public XSLTransformActivity(org.w3c.dom.Element element)
                     throws ActivitySystemException,
                            ActivityUserException
Constructs the Activity with the specified element.

Parameters:
element - The activity Element.
Throws:
ActivityUserException - If there is a user problem.
ActivitySystemException - If there is a system problem.
Method Detail

initialise

public void initialise()
                throws ActivityUserException
Description copied from class: Activity
This method can be overridden by subclasses to perform any initialisation they require before the process method iterations begin. This might be used for setting up convenient fields to reference objects contained in the context. It shouldn't be used for opening resources. That should be done in processFirst.

Overrides:
initialise in class Activity
Throws:
ActivityUserException - If a user problem prevents the activity from initialising.

processBlock

public void processBlock()
Performs the actual XSL Transformation.

Specified by:
processBlock in class Activity