uk.org.ogsadai.client.toolkit.activity.transform
Class XSLTransform

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.activity.RequestComponent
        |
        +--uk.org.ogsadai.client.toolkit.activity.Activity
              |
              +--uk.org.ogsadai.client.toolkit.activity.transform.XSLTransform

public class XSLTransform
extends Activity

This activity performs an XSL transformation. It has two inputs and one output. The first input document is transformed according to the XSLT definitions in the second input document. The output is the transformed text document.


Constructor Summary
XSLTransform()
          Constructs a request to perform an XSL transformation on data from another activity.
 
Method Summary
protected  java.lang.String generateXML()
          Generates the XML representing the activity.
 ActivityOutput getOutput()
          Gets the activity's only output.
 void setXMLInput(ActivityOutput input)
          Sets the name of the output that will provide the XML input to this activity.
 void setXSLTInput(ActivityOutput input)
          Sets the name of the output that will provide the XSLT input to this activity.
 void setXSLTInput(org.w3c.dom.Document input)
          Sets the XSLT input document to be passed to the service.
 void setXSLTInput(java.lang.String input)
          Sets the XSLT input document to be passed to the service.
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity
addInput, addOutput, addOutputs, getDataResourceID, getDataServiceStub, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setDataServiceStub, setInput
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLTransform

public XSLTransform()
Constructs a request to perform an XSL transformation on data from another activity.

Method Detail

setXMLInput

public void setXMLInput(ActivityOutput input)
Sets the name of the output that will provide the XML input to this activity.

Parameters:
input - input from another activity.
Throws:
java.lang.IllegalArgumentException - If the argument is null.

setXSLTInput

public void setXSLTInput(ActivityOutput input)
Sets the name of the output that will provide the XSLT input to this activity.

Parameters:
input - input from another activity.
Throws:
java.lang.IllegalArgumentException - If the argument is null.

setXSLTInput

public void setXSLTInput(org.w3c.dom.Document input)
Sets the XSLT input document to be passed to the service.

Parameters:
input - an XML document specifying the XSL transformation
Throws:
java.lang.IllegalArgumentException - If the argument is null or cannot be converted into a String.

setXSLTInput

public void setXSLTInput(java.lang.String input)
Sets the XSLT input document to be passed to the service.

Parameters:
input - a String containing the XSLT input document.
Throws:
java.lang.IllegalArgumentException - If the argument is null or empty.

getOutput

public ActivityOutput getOutput()
Gets the activity's only output.

Returns:
the activity output.

generateXML

protected java.lang.String generateXML()
Description copied from class: RequestComponent
Generates the XML representing the activity. This XML can then be inserted into a perform document that is sent to a data service.

Specified by:
generateXML in class Activity
Returns:
the XML for the activity