com.googlecode.sarasvati.env
Class FloatAttributeConverter

java.lang.Object
  extended by com.googlecode.sarasvati.env.AbstractStringValueOfAttributeConverter
      extended by com.googlecode.sarasvati.env.FloatAttributeConverter
All Implemented Interfaces:
AttributeConverter

public final class FloatAttributeConverter
extends AbstractStringValueOfAttributeConverter

Attribute converter for String <--> Float

Author:
Paul Lorenz

Constructor Summary
FloatAttributeConverter()
           
 
Method Summary
 Object stringToObject(String string, Class<?> object)
          Converts the given string to a Float
 
Methods inherited from class com.googlecode.sarasvati.env.AbstractStringValueOfAttributeConverter
objectToString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatAttributeConverter

public FloatAttributeConverter()
Method Detail

stringToObject

public Object stringToObject(String string,
                             Class<?> object)
Converts the given string to a Float

Parameters:
string - The string to be converted into an object
object - The type to transform the string into
Returns:
The object produced from the string
See Also:
AttributeConverter.stringToObject(java.lang.String, java.lang.Class)