public abstract class SingleInSingleOutXMLTransformer extends Object implements XMLTransformer
XMLTransformer with one XML input (named "source"), one XML output (named "result"), and
a "parameters" port with QName/String pairs.XMLTransformer.InputType, XMLTransformer.OutputType
| Constructor and Description |
|---|
SingleInSingleOutXMLTransformer() |
| Modifier and Type | Method and Description |
|---|---|
SingleInSingleOutXMLTransformer |
andThen(SingleInSingleOutXMLTransformer after,
Buffer<?,?> buffer,
boolean concurrent)
Returns a composed transformer that runs this transformation with as input the output of the
before transformation, and the parameters being passed to both. |
Runnable |
transform(Map<QName,InputValue<?>> input,
Map<QName,OutputValue<?>> output) |
abstract Runnable |
transform(XMLInputValue<?> source,
XMLOutputValue<?> result,
InputValue<?> params) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transform, validateInput, validateOutput
public Runnable transform(Map<QName,InputValue<?>> input, Map<QName,OutputValue<?>> output)
transform in interface XMLTransformer
input - Supplier of XDM values as a map from port name (QName) to InputValue object. If the map returns null for a certain key it means that port is
not connected. If the map itself is null it means no input ports are connected.output - Consumer of XDM values as a map from port name (QName) to OutputValue object. If the map returns null for a certain key it means that port is
not connected. If the map itself is null it means no output ports are connected.Runnable that executes the transformation. Transformations can be run
inside threads to keep the buffers between transformers small. If not run inside
threads, the transformations must be executed in the correct order. Runnable.run() may throw a TransformerException if an input could not be
read, the transformation failed, or an output could not be written.public abstract Runnable transform(XMLInputValue<?> source, XMLOutputValue<?> result, InputValue<?> params)
public SingleInSingleOutXMLTransformer andThen(SingleInSingleOutXMLTransformer after, Buffer<?,?> buffer, boolean concurrent)
before transformation, and the parameters being passed to both.buffer - The Buffer instance to use for connecting the transformers.concurrent - Whether to run the transformations concurrently, or to run the
after transformation only when this transformation has completed.Copyright © 2010–2025 The DAISY Consortium. All rights reserved.