net.sf.morph.integration.commons.collections
Class DecoratedConverterToTransformerAdapter

java.lang.Object
  extended by net.sf.morph.integration.commons.collections.DecoratedConverterToTransformerAdapter
All Implemented Interfaces:
org.apache.commons.collections.Transformer

public class DecoratedConverterToTransformerAdapter
extends java.lang.Object
implements org.apache.commons.collections.Transformer

Adapts a Morph DecoratedConverter to the org.apache.commons.collections.Transformer interface.

Since:
Morph 1.1
Author:
mbenson

Constructor Summary
DecoratedConverterToTransformerAdapter()
          Create a new DecoratedConverterToTransformerAdapterTestCase.
DecoratedConverterToTransformerAdapter(java.lang.Class destinationClass)
          Create a new DecoratedConverterToTransformerAdapter.
DecoratedConverterToTransformerAdapter(DecoratedConverter delegate)
          Create a new DecoratedConverterToTransformerAdapterTestCase.
DecoratedConverterToTransformerAdapter(DecoratedConverter delegate, java.lang.Class destinationClass)
          Create a new DecoratedConverterToTransformerAdapter.
 
Method Summary
 DecoratedConverter getDelegate()
          Get the DecoratedConverter delegate.
 java.lang.Class getDestinationClass()
          Get the Class destinationClass.
 java.util.Map getDestinationClassMap()
          Get the Map destinationClassMap.
 java.util.Locale getLocale()
          Get the Locale locale.
 void setDelegate(DecoratedConverter delegate)
          Set the DecoratedConverter delegate.
 void setDestinationClass(java.lang.Class destinationClass)
          Set the Class destinationClass.
 void setDestinationClassMap(java.util.Map destinationClassMap)
          Set the Map destinationClassMap.
 void setLocale(java.util.Locale locale)
          Set the Locale locale.
 java.lang.Object transform(java.lang.Object source)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecoratedConverterToTransformerAdapter

public DecoratedConverterToTransformerAdapter()
Create a new DecoratedConverterToTransformerAdapterTestCase.


DecoratedConverterToTransformerAdapter

public DecoratedConverterToTransformerAdapter(DecoratedConverter delegate)
Create a new DecoratedConverterToTransformerAdapterTestCase.

Parameters:
delegate -

DecoratedConverterToTransformerAdapter

public DecoratedConverterToTransformerAdapter(DecoratedConverter delegate,
                                              java.lang.Class destinationClass)
Create a new DecoratedConverterToTransformerAdapter.

Parameters:
delegate -
destinationClass -

DecoratedConverterToTransformerAdapter

public DecoratedConverterToTransformerAdapter(java.lang.Class destinationClass)
Create a new DecoratedConverterToTransformerAdapter.

Parameters:
destinationClass -
Method Detail

transform

public java.lang.Object transform(java.lang.Object source)

Specified by:
transform in interface org.apache.commons.collections.Transformer
See Also:
Transformer.transform(java.lang.Object)

getDelegate

public DecoratedConverter getDelegate()
Get the DecoratedConverter delegate.

Returns:
DecoratedConverter

setDelegate

public void setDelegate(DecoratedConverter delegate)
Set the DecoratedConverter delegate.

Parameters:
delegate - DecoratedConverter

getDestinationClass

public java.lang.Class getDestinationClass()
Get the Class destinationClass.

Returns:
Class

setDestinationClass

public void setDestinationClass(java.lang.Class destinationClass)
Set the Class destinationClass.

Parameters:
destinationClass - Class

getDestinationClassMap

public java.util.Map getDestinationClassMap()
Get the Map destinationClassMap.

Returns:
Map

setDestinationClassMap

public void setDestinationClassMap(java.util.Map destinationClassMap)
Set the Map destinationClassMap.

Parameters:
destinationClassMap - Map

getLocale

public java.util.Locale getLocale()
Get the Locale locale.

Returns:
Locale

setLocale

public void setLocale(java.util.Locale locale)
Set the Locale locale.

Parameters:
locale - Locale


Copyright © 2004-2008.