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
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 |
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 writtensource
- the object from which information is read
- Throws:
TransformationException
- if source
or destination
are
null
Copyright © 2004-2008.