public class NumberTypeConverterSupport extends Object
| Constructor and Description |
|---|
NumberTypeConverterSupport() |
| Modifier and Type | Method and Description |
|---|---|
Locale |
getLocale()
Returns the Locale set on the object using setLocale().
|
protected NumberFormat[] |
getNumberFormats()
Fetches one or more NumberFormat instances that can be used to parse numbers
for the current locale.
|
protected Number |
parse(String input,
Collection<ValidationError> errors)
Parse the input using a NumberFormatter.
|
protected String |
preprocess(String input)
Pre-processes the String to give the NumberFormats a better shot at parsing the
input.
|
void |
setLocale(Locale locale)
Used by Stripes to tell the converter what locale the incoming text is in.
|
public void setLocale(Locale locale)
public Locale getLocale()
protected NumberFormat[] getNumberFormats()
protected Number parse(String input, Collection<ValidationError> errors)
protected String preprocess(String input)
input - the String as input by the user© Copyright 2005-2006, Stripes Development Team.