org.springframework.web.bind
Class ServletRequestUtils.FloatParser

java.lang.Object
  extended by org.springframework.web.bind.ServletRequestUtils.ParameterParser<java.lang.Float>
      extended by org.springframework.web.bind.ServletRequestUtils.FloatParser
Enclosing class:
ServletRequestUtils

private static class ServletRequestUtils.FloatParser
extends ServletRequestUtils.ParameterParser<java.lang.Float>


Constructor Summary
private ServletRequestUtils.FloatParser()
           
 
Method Summary
protected  java.lang.Float doParse(java.lang.String parameter)
           
protected  java.lang.String getType()
           
 float parseFloat(java.lang.String name, java.lang.String parameter)
           
 float[] parseFloats(java.lang.String name, java.lang.String[] values)
           
 
Methods inherited from class org.springframework.web.bind.ServletRequestUtils.ParameterParser
parse, validateRequiredParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletRequestUtils.FloatParser

private ServletRequestUtils.FloatParser()
Method Detail

getType

protected java.lang.String getType()
Specified by:
getType in class ServletRequestUtils.ParameterParser<java.lang.Float>

doParse

protected java.lang.Float doParse(java.lang.String parameter)
                           throws java.lang.NumberFormatException
Specified by:
doParse in class ServletRequestUtils.ParameterParser<java.lang.Float>
Throws:
java.lang.NumberFormatException

parseFloat

public float parseFloat(java.lang.String name,
                        java.lang.String parameter)
                 throws ServletRequestBindingException
Throws:
ServletRequestBindingException

parseFloats

public float[] parseFloats(java.lang.String name,
                           java.lang.String[] values)
                    throws ServletRequestBindingException
Throws:
ServletRequestBindingException