net.sf.morph.transform
Interface ImpreciseTransformer

All Superinterfaces:
net.sf.composite.Component, Transformer
All Known Implementing Classes:
BaseToPrettyTextConverter, BeanToPrettyTextConverter, BooleanToTextConverter, ChainedTransformer, ContainerToPrettyTextConverter, DefaultToBooleanConverter, DefaultToTextConverter, NumberConverter, NumberToTextConverter, ObjectToPrettyTextConverter, ObjectToTextConverter, SimpleDelegatingTransformer, TextConverter, TimeToTextConverter, TypeChangingGraphTransformer

public interface ImpreciseTransformer
extends Transformer

Defines a transformer whose operation may result in a loss of data precision.

Since:
Morph 1.1
Author:
mbenson

Field Summary
 
Fields inherited from interface net.sf.morph.transform.Transformer
TRANSFORMATION_TYPE_CONVERT, TRANSFORMATION_TYPE_COPY
 
Method Summary
 boolean isImpreciseTransformation(java.lang.Class destinationClass, java.lang.Class sourceClass)
          Learn whether the specified conversion might yield an imprecise result.
 
Methods inherited from interface net.sf.morph.transform.Transformer
getDestinationClasses, getSourceClasses
 

Method Detail

isImpreciseTransformation

boolean isImpreciseTransformation(java.lang.Class destinationClass,
                                  java.lang.Class sourceClass)
Learn whether the specified conversion might yield an imprecise result.

Parameters:
destinationClass - the destination type for the transformation
sourceClass - the source type for the transformation
Returns:
boolean true if the transformation might yield an imprecise result or
false, otherwise


Copyright © 2004-2008.