org.codehaus.waffle.bind
Class DefaultStringTransmuter

java.lang.Object
  extended by org.codehaus.waffle.bind.DefaultStringTransmuter
All Implemented Interfaces:
StringTransmuter

public class DefaultStringTransmuter
extends java.lang.Object
implements StringTransmuter

This implementation uses the ValueConverterFinder and its resulting ValueConverter to transform a String value into the specified type.

Author:
Michael Ward

Constructor Summary
DefaultStringTransmuter(ValueConverterFinder valueConverterFinder)
           
 
Method Summary
 java.lang.Object transmute(java.lang.String value, java.lang.reflect.Type toType)
          Convert (transmute) the string value into the Type requested
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStringTransmuter

public DefaultStringTransmuter(ValueConverterFinder valueConverterFinder)
Method Detail

transmute

public java.lang.Object transmute(java.lang.String value,
                                  java.lang.reflect.Type toType)
Description copied from interface: StringTransmuter
Convert (transmute) the string value into the Type requested

Specified by:
transmute in interface StringTransmuter
Parameters:
value - the String value
toType - the Object Type
Returns:
The converted Object


Copyright © 2008. All Rights Reserved.