An instance of this class can be obtained with the {@link TransformerFactory#newTransformer TransformerFactory.newTransformer}method. This instance may then be used to process XML from a variety of sources and write the transformation output to a variety of sinks.
An object of this class may not be used in multiple threads running concurrently. Different Transformers may be used concurrently by different threads.
A Transformer
may be used multiple times. Parameters and output properties are preserved across transformations.
Transformer
converts the input object to the output object. The input object should be left unchanged. Transformers are typically used for type conversions, or extracting data from an object. Standard implementations of common transformers are provided by {@link TransformerUtils}. These include method invokation, returning a constant, cloning and returning the string value.
@author James Strachan
@author Matt Hall, John Watkinson, Stephen Colebourne
@version $Revision: 1.1 $ $Date: 2005/10/11 17:05:19 $
@since Commons Collections 1.0
Transformer
interface defines the middle of a rewriter pipeline.
This api is experimental and thus the classes and the interfaces returned are subject to change.
Transformer
can be chained together to covert message payloads from one object type to another.
Transformers can be chained in order to allow multiple consecutive output-/input stream transformers to be applied to a stream.
A transformer can be instantiated using its implementation-specific constructor, or by calling its default constructor and initializing it using the {@link #init(Map) init()} method. Dependingon the implementation, varying settings must be passed.
@author Philipp C. Heckel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|