public interface Transformer
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 invokation, returning a constant,
cloning and returning the string value.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
transform(java.lang.Object input)
Transforms the input object (leaving it unchanged) into some output object.
|
java.lang.Object transform(java.lang.Object 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