fr.ird.converter
Class FloatConverter

java.lang.Object
  extended by fr.ird.converter.FloatConverter
All Implemented Interfaces:
org.apache.commons.beanutils.Converter

public class FloatConverter
extends Object
implements org.apache.commons.beanutils.Converter

A float converter which is not dependant on user locale to obtain the locale dot representation.

It can transform 0.2 and also 0, 2.

Since:
1.3
Author:
tchemit

Constructor Summary
FloatConverter()
           
 
Method Summary
 Object convert(Class aClass, Object value)
           
 Class<?> getType()
           
protected  boolean isEnabled(Class<?> aClass)
           
protected  Float valueOf(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatConverter

public FloatConverter()
Method Detail

convert

public Object convert(Class aClass,
                      Object value)
Specified by:
convert in interface org.apache.commons.beanutils.Converter

valueOf

protected Float valueOf(String value)

isEnabled

protected boolean isEnabled(Class<?> aClass)

getType

public Class<?> getType()


Copyright © 2010-2011 IRD. All Rights Reserved.