net.sf.morph.transform
Interface ExplicitTransformer

All Known Subinterfaces:
DecoratedConverter, DecoratedCopier, DecoratedTransformer
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 ExplicitTransformer

A Transformer that explicitly states which of its source classes are transformable to which destination classes. In most cases, you can implicitly assume that a Transformer can transform all sources to all destinations. However, if the Transformer implements this interface, that is not the case.

Since:
Nov 26, 2004
Author:
Matt Sgarlata

Method Summary
 boolean isTransformable(java.lang.Class destinationType, java.lang.Class sourceType)
          Specifies which source classes are transformable to which destination classes.
 

Method Detail

isTransformable

boolean isTransformable(java.lang.Class destinationType,
                        java.lang.Class sourceType)
                        throws TransformationException
Specifies which source classes are transformable to which destination classes.

Parameters:
destinationType - the destination type to test
sourceType - the source type to test
Returns:
whether the destination type is transformable to the source type
Throws:
TransformationException - if it could not be determined if sourceType is transformable into destinationType


Copyright © 2004-2008.