|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.ogsadai.client.toolkit.activity.RequestComponent
uk.org.ogsadai.client.toolkit.activity.Activity
uk.org.ogsadai.client.toolkit.activity.transform.XSLTransform
This activity performs an XSL transformation on the data output by another activity.
This activity has one required input - the XML document to be transformed and provided by another activity - one optional input - the XSLT document (if this input is not provided then the document must be provided inline). The activity has one output - the transformed document.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.lang.String |
mXSLTInput
XSLT document if passed inline, null otherwise. |
private static int |
XML_INPUT_INDEX
Index of XML input. |
private static int |
XSLT_INPUT_INDEX
Index of XSLT input. |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
XSLTransform()
Constructor. |
Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getOutput()
Gets the activity's only output - the transformed data. |
void |
setXMLInput(ActivityOutput input)
Sets the input of this activity to be the output from another activity that will provide the data to transformed. |
void |
setXSLTInput(ActivityOutput input)
Sets the input of this activity to be the output from another activity that will provide the data to transformed. |
void |
setXSLTInput(org.w3c.dom.Document input)
Sets the XSLT document to be passed to the service. |
void |
setXSLTInput(java.lang.String input)
Sets the XSLT document to be passed to the service. |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, getSession, setDataService, setSession |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final int XML_INPUT_INDEX
private static final int XSLT_INPUT_INDEX
private java.lang.String mXSLTInput
null
otherwise.
Constructor Detail |
public XSLTransform()
setXMLInput
should be called to set the activity that
provides input to this activity and
setXSLTInput
to set source of the XSLT document.
Method Detail |
public void setXMLInput(ActivityOutput input)
input
- Output from another activity.
java.lang.IllegalArgumentException
- If input
is null
.public void setXSLTInput(ActivityOutput input)
If either of the other two setXSLTInput
methods
are called then the XSLT document used will be the one provided
to the method called.
input
- Output from another activity.
java.lang.IllegalArgumentException
- If input
is null
.public void setXSLTInput(org.w3c.dom.Document input)
input
- XSLT document.
java.lang.IllegalArgumentException
- If input
is null
or does not seem
to be an XML document.public void setXSLTInput(java.lang.String input)
input
- XSLT document.
java.lang.IllegalArgumentException
- If input
is null
or does not seem
to be an XML document.public ActivityOutput getOutput()
protected java.lang.String generateXML()
RequestComponent
generateXML
in class Activity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |