I
- the input type to the transformerO
- the output type from the transformerpublic 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 and 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 © 2010 - 2020 Adobe. All Rights Reserved