org.codehaus.waffle.bind
Interface StringTransmuter

All Known Implementing Classes:
DefaultStringTransmuter

public interface StringTransmuter

Not to be confused with the ValueConverter this interface is used to simplify converting (transmuting) a String value into a given type.

Author:
Michael Ward

Method Summary
<T> T
transmute(java.lang.String value, java.lang.Class<T> toType)
          Convert (transmute) the string value into the Type requested
 

Method Detail

transmute

<T> T transmute(java.lang.String value,
                java.lang.Class<T> toType)
Convert (transmute) the string value into the Type requested

Parameters:
value - the String value
toType - the Object type
Returns:
The converted Object


Copyright © 2008. All Rights Reserved.