org.eclipse.smila.processing.pipelets.xmlprocessing
Class XslTransformationPipelet
java.lang.Object
org.eclipse.smila.processing.pipelets.ATransformationPipelet
org.eclipse.smila.processing.pipelets.xmlprocessing.AXmlTransformationPipelet
org.eclipse.smila.processing.pipelets.xmlprocessing.XslTransformationPipelet
- All Implemented Interfaces:
- Pipelet
public class XslTransformationPipelet
- extends AXmlTransformationPipelet
Pipelet that performs an XSL transformation on an attribute or attachment value. The possible properties are:
- xslFile: the name of the XSLT file
- inputName: name of the Attribute/Attachment to apply the XSL transformation to
- outputName: name of the Attribute/Attachment to store the XSL transformation in
- inputType: the type (Attribute or Attachment of the inputName
- outputType: the type (Attribute or Attachment of the outputtName
Field Summary |
static java.lang.String |
PROP_PARAMETERS
The name of the property that indicates to add the attributes of the current record as XSLT parameters. |
static java.lang.String |
PROP_XSL_FILE
The name of the XSLT file used for the transformation. |
Methods inherited from class org.eclipse.smila.processing.pipelets.ATransformationPipelet |
configure, getInputName, getInputType, getOutputName, getOutputType, isReadFromAttribute, isStoreInAttribute, readInput, readStringInput, storeResult, storeResult, storeResults |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_XSL_FILE
public static final java.lang.String PROP_XSL_FILE
- The name of the XSLT file used for the transformation.
- See Also:
- Constant Field Values
PROP_PARAMETERS
public static final java.lang.String PROP_PARAMETERS
- The name of the property that indicates to add the attributes of the current record as XSLT parameters.
- See Also:
- Constant Field Values
XslTransformationPipelet
public XslTransformationPipelet()
processRecord
protected void processRecord(Blackboard blackboard,
ParameterAccessor paramAccessor,
java.lang.String id)
throws java.lang.Exception
- Description copied from class:
AXmlTransformationPipelet
- Processing of a single input record.
- Specified by:
processRecord
in class AXmlTransformationPipelet
- Parameters:
blackboard
- Blackboard service managing the records.paramAccessor
- Parameter accessor configured with pipelet configuration and current record. Should be used to access
pipelet parameters.id
- id of the record to process
- Throws:
java.lang.Exception