net.sf.doolin.util
Class MethodItemConverter<S,T>

java.lang.Object
  extended by net.sf.doolin.util.MethodItemConverter<S,T>
Type Parameters:
S - Type of the source object
T - Type of the target object
All Implemented Interfaces:
ItemConverter<S,T>

Deprecated. Use MethodFunction instead.

@Deprecated
public class MethodItemConverter<S,T>
extends Object
implements ItemConverter<S,T>

Converts a S object into a T object by calling a method on S.

Author:
Damien Coraboeuf

Constructor Summary
MethodItemConverter(String methodName)
          Deprecated. Constructor
 
Method Summary
 T convert(S source)
          Deprecated. Calls the method on the source object and casts the result to <T>.
 String getMethodName()
          Deprecated. Returns the method name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodItemConverter

public MethodItemConverter(String methodName)
Deprecated. 
Constructor

Parameters:
methodName - Method name
Method Detail

convert

public T convert(S source)
Deprecated. 
Calls the method on the source object and casts the result to <T>.

Specified by:
convert in interface ItemConverter<S,T>
Parameters:
source - Source object
Returns:
Target object

getMethodName

public String getMethodName()
Deprecated. 
Returns the method name

Returns:
Method name


Copyright © 2011. All Rights Reserved.