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

java.lang.Object
  extended by net.sf.doolin.util.PropertyItemConverter<S,T>
Type Parameters:
S - Type for the source
T - Expected type for the target
All Implemented Interfaces:
ItemConverter<S,T>

Deprecated. Use PropertyFunction instead

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

This class performs a conversion by extracting a property from the source?

Author:
Damien Coraboeuf
See Also:
Utils.getProperty(Object, String)

Constructor Summary
PropertyItemConverter(String propertyName)
          Deprecated. Constructor.
 
Method Summary
 T convert(S source)
          Deprecated. Convert a source to a target
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyItemConverter

public PropertyItemConverter(String propertyName)
Deprecated. 
Constructor.

Parameters:
propertyName - Name of the property to take from the source.
Method Detail

convert

public T convert(S source)
Deprecated. 
Description copied from interface: ItemConverter
Convert a source to a target

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


Copyright © 2011. All Rights Reserved.