I
- the input type to the transformerO
- the output type from the transformerChainedTransformer
, CloneTransformer
, ClosureTransformer
, ConstantTransformer
, ExceptionTransformer
, FactoryTransformer
, IfTransformer
, InstantiateTransformer
, InvokerTransformer
, MapTransformer
, NOPTransformer
, PredicateTransformer
, StringValueTransformer
, SwitchTransformer
public interface Transformer<I,O>
A 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
TransformerUtils
. These include method invocation, returning a constant,
cloning and returning the string value.
Modifier and Type | Method | Description |
---|---|---|
O |
transform(I input) |
Transforms the input object (leaving it unchanged) into some output object.
|
O transform(I input)
input
- the object to be transformed, should be left unchangedjava.lang.ClassCastException
- (runtime) if the input is the wrong classjava.lang.IllegalArgumentException
- (runtime) if the input is invalidFunctorException
- (runtime) if the transform cannot be completedCopyright © 2001-2019 - Apache Software Foundation