|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transformer<I,O>
Defines a functor interface implemented by classes that transform one object into another.
ATransformer
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.
Method Summary | |
---|---|
O |
transform(I input)
Transforms the input object (leaving it unchanged) into some output object. |
Method Detail |
---|
O transform(I input)
input
- the object to be transformed, should be left unchanged
java.lang.ClassCastException
- (runtime) if the input is the wrong
class
java.lang.IllegalArgumentException
- (runtime) if the input is invalid
FunctorException
- (runtime) if the transform cannot be
completed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |