|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taleo.integration.client.step.BaseStep
com.taleo.integration.client.step.BaseCustomStep
com.taleo.integration.client.customstep.BaseCustomStep
com.taleo.integration.client.customstep.xml.AbstractXslStep
public abstract class AbstractXslStep
Post-processing step to apply an XSL transformation to the result.
This step takes all parameters from its base class
BaseCustomStep
and the
following additional parameters:
If the XML file is very large, the following parameters can be used to apply XSL over individual records within the file and merging the result using a template.
<XML> [RECORD_OUTPUT] </XML>
This step differs from the TCC built-in XSL transformation step in four ways:
This class is dependent on:
Field Summary | |
---|---|
protected java.lang.String |
outputFile
The output file name. |
protected com.taleo.ws.integration.client.MessageFormat.Enum |
outputFormat
The output format. |
protected java.lang.String |
recordXPath
The record XPath. |
protected java.lang.String |
templateFile
The template filename. |
protected java.lang.String |
xslFile
The XSL file name. |
protected java.util.Properties |
xslParameters
The XSL parameters. |
Fields inherited from class com.taleo.integration.client.customstep.BaseCustomStep |
---|
parameterNames |
Fields inherited from class com.taleo.integration.client.step.BaseCustomStep |
---|
parameters |
Fields inherited from class com.taleo.integration.client.step.BaseStep |
---|
commType, ERROR_NULL_GLOBAL_CONFIG, ERROR_NULL_PIPELINE, ERROR_NULL_STEP_CONFIG, productCode, tempFolder, type, version |
Constructor Summary | |
---|---|
AbstractXslStep()
Constructor without arguments. |
Method Summary | |
---|---|
protected void |
execute(java.io.File inputFile,
java.io.File outputFile)
Execute the XSL transformation. |
java.lang.String |
getOutputFile()
Get the output file. |
com.taleo.ws.integration.client.MessageFormat.Enum |
getOutputFormat()
Get the output format. |
java.lang.String |
getRecordXPath()
Get the XPath expression for the records. |
java.lang.String |
getTemplateFile()
Get the template filename. |
java.lang.String |
getXslFile()
Get the XSL file. |
java.lang.String |
getXslParameter(java.lang.String name)
Get the XSL parameter by its name. |
void |
init(com.taleo.ws.integration.client.GlobalConfig config)
|
void |
setOutputFile(java.lang.String outputFile)
Set the output file. |
void |
setOutputFormat(com.taleo.ws.integration.client.MessageFormat.Enum outputFormat)
Set the output format. |
void |
setRecordXPath(java.lang.String recordXPath)
Set the XPath expression for the records. |
void |
setTemplateFile(java.lang.String templateFile)
Set the template filename. |
void |
setXslFile(java.lang.String xslFile)
Set the XSL file. |
void |
setXslParameter(java.lang.String name,
java.lang.String value)
Set the XSL parameter by its name. |
protected void |
validateParameterNames()
Validate the parameters names. |
Methods inherited from class com.taleo.integration.client.customstep.BaseCustomStep |
---|
createTempFile, createTempFile, getEncoding, getTempFolder, isActive, registerParameterName, setActive, setEncoding |
Methods inherited from class com.taleo.integration.client.step.BaseCustomStep |
---|
getDescription, getIdentifier, getName, getSupportedPipeline, getType, init |
Methods inherited from class com.taleo.integration.client.step.BaseStep |
---|
getAllProcessSupportPipeline, getCurrentFile, getCurrentFile, getCurrentMessage, getPostProcessSupportPipeline, getPreProcessSupportPipeline, isOriginalFile, validateLastStepType, validateMessageType, validatePipeline |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.taleo.integration.client.step.Step |
---|
execute, validatePipeline |
Field Detail |
---|
protected java.lang.String xslFile
protected java.lang.String outputFile
protected com.taleo.ws.integration.client.MessageFormat.Enum outputFormat
protected java.util.Properties xslParameters
protected java.lang.String recordXPath
protected java.lang.String templateFile
Constructor Detail |
---|
public AbstractXslStep()
Method Detail |
---|
protected void validateParameterNames()
Override the default method to allow for extra parameters to be passed to the XSL transformation.
validateParameterNames
in class BaseCustomStep
public java.lang.String getXslFile()
public void setXslFile(java.lang.String xslFile)
xslFile
- public java.lang.String getOutputFile()
public void setOutputFile(java.lang.String outputFile)
outputFile
- public com.taleo.ws.integration.client.MessageFormat.Enum getOutputFormat()
public void setOutputFormat(com.taleo.ws.integration.client.MessageFormat.Enum outputFormat)
outputFormat
- public java.lang.String getXslParameter(java.lang.String name)
name
-
public void setXslParameter(java.lang.String name, java.lang.String value)
name
- value
- public java.lang.String getRecordXPath()
public void setRecordXPath(java.lang.String recordXPath)
recordXPath
- public java.lang.String getTemplateFile()
public void setTemplateFile(java.lang.String templateFile)
templateFile
- public void init(com.taleo.ws.integration.client.GlobalConfig config)
init
in class BaseCustomStep
protected void execute(java.io.File inputFile, java.io.File outputFile) throws javax.xml.transform.TransformerException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, org.dom4j.DocumentException
inputFile
- The input file.outputFile
- The output file.
javax.xml.transform.TransformerException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
org.dom4j.DocumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |