net.sf.morph.transform
Interface DecoratedCopier

All Superinterfaces:
net.sf.composite.Component, Copier, DecoratedTransformer, ExplicitTransformer, Transformer
All Known Implementing Classes:
ArrayCopier, AssemblerCopier, BasePropertyNameCopier, ChainedTransformer, CombiningCopier, ConditionalCopier, ContainerCopier, ContainerOfBeansCopier, CopierDecorator, CumulativeCopier, DefaultToBooleanConverter, DefaultToTextConverter, DisassemblerCopier, ImmutableComponentArrayCopier, MapCopier, NOPCopier, PropertyExpressionMappingCopier, PropertyNameMappingCopier, PropertyNameMatchingCopier, SetExpressionCopier, SimpleDelegatingTransformer, TextToContainerCopier, TypeChangingGraphTransformer

public interface DecoratedCopier
extends Copier, DecoratedTransformer

An extension of the Copier interface that defines a few more convenient methods. All methods specified in this interface can be easily implemented using just the methods in the Copier interface. Thus, if you are defining your own copier you should implement the only Copier interface. If you extend from net.sf.morph.transform.converters.BaseCopier, your copier will implement this inteface automatically. If you don't want to extend from BaseCopier, you can easily expose this interface by using the CopierDecorator.

You should not directly implement this interface, because additional methods may be introduced in later versions of Morph. Instead, implement the Copier interface and use the CopierDecorator to expose this interface.

Since:
Dec 5, 2004
Author:
Matt Sgarlata

Field Summary
 
Fields inherited from interface net.sf.morph.transform.Transformer
TRANSFORMATION_TYPE_CONVERT, TRANSFORMATION_TYPE_COPY
 
Fields inherited from interface net.sf.morph.transform.Transformer
TRANSFORMATION_TYPE_CONVERT, TRANSFORMATION_TYPE_COPY
 
Method Summary
 void copy(java.lang.Object destination, java.lang.Object source)
           Copies information from the given source to the given destination.
 
Methods inherited from interface net.sf.morph.transform.Copier
copy
 
Methods inherited from interface net.sf.morph.transform.Transformer
getDestinationClasses, getSourceClasses
 
Methods inherited from interface net.sf.morph.transform.Transformer
getDestinationClasses, getSourceClasses
 
Methods inherited from interface net.sf.morph.transform.ExplicitTransformer
isTransformable
 

Method Detail

copy

void copy(java.lang.Object destination,
          java.lang.Object source)
          throws TransformationException

Copies information from the given source to the given destination.

Parameters:
destination - the object to which information is written
source - the object from which information is read
Throws:
TransformationException - if source or destination are null


Copyright © 2004-2008.