net.sf.morph.transform.copiers
Class DisassemblerCopier
java.lang.Object
net.sf.morph.transform.transformers.BaseTransformer
net.sf.morph.transform.transformers.BaseCompositeTransformer
net.sf.morph.transform.copiers.AssemblyCopierSupport
net.sf.morph.transform.copiers.DisassemblerCopier
- All Implemented Interfaces:
- net.sf.composite.Component, net.sf.composite.Composite, net.sf.composite.SimpleComposite, net.sf.composite.StrictlyTypedComposite, Converter, Copier, DecoratedConverter, DecoratedCopier, DecoratedTransformer, ExplicitTransformer, Transformer
public class DisassemblerCopier
- extends AssemblyCopierSupport
- implements DecoratedCopier, DecoratedConverter
A copier that copies a source to multiple destination objects, implementing a "Disassembler."
- Since:
- Morph 1.1
- Author:
- Matt Benson
- See Also:
http://www.martinfowler.com/eaaCatalog/dataTransferObject.html
Methods inherited from class net.sf.morph.transform.transformers.BaseTransformer |
clone, convert, convert, convertImpl, copy, copy, createDefaultReflector, createNewInstance, createNewInstanceImpl, createReusableSource, equals, equals, equalsUnidirectionalTest, getDestinationClasses, getInstantiatingReflector, getLocale, getLog, getReflector, getReflector, getSourceClasses, getTransformableCallCache, getTransformerName, initialize, isAutomaticallyHandlingNulls, isCachingIsTransformableCalls, isImpreciseTransformation, isImpreciseTransformationImpl, isInitialized, isPerformingLogging, isTransformable, isTransformableImpl, setCachingIsTransformableCalls, setInitialized, setLog, setReflector, setTransformableCallCache, setTransformerName, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.morph.transform.Copier |
copy |
DisassemblerCopier
public DisassemblerCopier()
- Create a new DisassemblerCopier.
DisassemblerCopier
public DisassemblerCopier(java.lang.Object[] components)
- Create a new DisassemblerCopier.
- Parameters:
components
-
copyImpl
protected void copyImpl(java.lang.Object destination,
java.lang.Object source,
java.util.Locale locale,
java.lang.Integer preferredTransformationType)
throws java.lang.Exception
- Implementation of the copy method. By default, this method throws
UnsupportedOperationException.
- Overrides:
copyImpl
in class BaseTransformer
- Throws:
java.lang.Exception
- See Also:
BaseTransformer.copyImpl(java.lang.Object, java.lang.Object, java.util.Locale, java.lang.Integer)
getSourceClassesImpl
protected java.lang.Class[] getSourceClassesImpl()
throws java.lang.Exception
Transformer.getSourceClasses()
implementation template method.
- Specified by:
getSourceClassesImpl
in class BaseTransformer
- Returns:
- Class[]
- Throws:
java.lang.Exception
- See Also:
BaseTransformer.getSourceClassesImpl()
getDestinationClassesImpl
protected java.lang.Class[] getDestinationClassesImpl()
throws java.lang.Exception
Transformer.getDestinationClasses()
implementation template method.
- Specified by:
getDestinationClassesImpl
in class BaseTransformer
- Returns:
- Class[]
- Throws:
java.lang.Exception
- See Also:
BaseTransformer.getDestinationClassesImpl()
getClassConverter
public Converter getClassConverter()
- Get the Converter used to convert a Disassembly object to a destination class.
- Returns:
- the classConverter
setClassConverter
public void setClassConverter(Converter classConverter)
- Set the classConverter used to convert a Disassembly object to a destination class.
- Parameters:
classConverter
- the classConverter to set
Copyright © 2004-2008.