net.sf.morph.transform
Interface Transformer

All Superinterfaces:
net.sf.composite.Component
All Known Subinterfaces:
Converter, Copier, DecoratedConverter, DecoratedCopier, DecoratedTransformer, ImpreciseTransformer, NodeCopier
All Known Implementing Classes:
ArbitraryObjectMappingConverter, ArbitraryTypeMappingConverter, ArrayCopier, AssemblerCopier, AssemblyCopierSupport, BaseCompositeTransformer, BasePropertyNameCopier, BaseReflectorTransformer, BaseToPrettyTextConverter, BaseTransformer, BeanToPrettyTextConverter, BeanUtilsConverter, BeanUtilsConverter, BooleanToTextConverter, ChainedTransformer, CombiningCopier, ConditionalCopier, ConstantConverter, ContainerCopier, ContainerOfBeansCopier, ContainerToPrettyTextConverter, ContainerToTraverserConverter, ConverterDecorator, CopierDecorator, CumulativeCopier, DefaultToBooleanConverter, DefaultToTextConverter, DisassemblerCopier, EvaluateExpressionConverter, IdentityConverter, ImmutableComponentArrayCopier, ImmutableTypesOnlyIdentityConverter, MapCopier, MultipleDestinationConverter, NOPCopier, NullConverter, NumberConverter, NumberToBooleanConverter, NumberToTextConverter, NumberToTimeConverter, ObjectToBooleanConverter, ObjectToClassConverter, ObjectToPrettyTextConverter, ObjectToTextConverter, PrimitiveWrapperConverter, PropertyExpressionMappingCopier, PropertyNameMappingCopier, PropertyNameMatchingCopier, SetExpressionCopier, SimpleDelegatingTransformer, TextConverter, TextToBooleanConverter, TextToClassConverter, TextToContainerCopier, TextToNumberConverter, TextToTimeConverter, TimeConverter, TimeToNumberConverter, TimeToTextConverter, TransformerDecorator, TransformerToDecoratedConverterAdapter, TypeChangingGraphTransformer

public interface Transformer
extends net.sf.composite.Component

Transforms information taken from a source and makes it available at a destination. Each source class is implicitly considered transformable to each destination class, unless this is an ExplicitTransformer.

For performance reasons, it is recommended that transformers be implemented in a threadsafe manner. All transformers provided out-of-the-box by the Morph framework are threadsafe.

Since:
Nov 26, 2004
Author:
Matt Sgarlata

Field Summary
static java.lang.Integer TRANSFORMATION_TYPE_CONVERT
           
static java.lang.Integer TRANSFORMATION_TYPE_COPY
           
 
Method Summary
 java.lang.Class[] getDestinationClasses()
          Defines the types of objects that can be used as information sources by this transformer.
 java.lang.Class[] getSourceClasses()
          Defines the types of objects that can be used as information sources by this transformer.
 

Field Detail

TRANSFORMATION_TYPE_CONVERT

static final java.lang.Integer TRANSFORMATION_TYPE_CONVERT

TRANSFORMATION_TYPE_COPY

static final java.lang.Integer TRANSFORMATION_TYPE_COPY
Method Detail

getSourceClasses

java.lang.Class[] getSourceClasses()
Defines the types of objects that can be used as information sources by this transformer. This can be thought of as the valid "output" types for the transformer.

Returns:
the types of objects that can be used as information sources by this transformer

getDestinationClasses

java.lang.Class[] getDestinationClasses()
Defines the types of objects that can be used as information sources by this transformer. This method can be thought of as specifying the valid "output" types for this transformer.

Returns:
the types of objects that can be used as information sources by this transformer


Copyright © 2004-2008.