public class FormatterNumber extends Object implements Formatter
| Constructor and Description |
|---|
FormatterNumber(String args)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static String |
cleanStringNumber(String sValue,
char decimalCharUsed,
char groupCharUsed)
Simplifie une chaine réprésentant un nombre.
|
protected String |
cleanStringNumber(String value,
DecimalFormatSymbols decimalFormatSymbols)
Simplifie une chaine réprésentant un nombre.
|
protected DecimalFormatSymbols |
getDecimalFormatSymbols() |
String |
getPattern() |
protected void |
initParameters(String args) |
Object |
stringToValue(String strValue,
DataType dataType) |
String |
valueToString(Object objValue,
DataType dataType) |
public FormatterNumber(String args)
args - args used to initialize the formatterpublic final String getPattern()
protected final void initParameters(String args)
args - argsprotected DecimalFormatSymbols getDecimalFormatSymbols()
public final Object stringToValue(String strValue, DataType dataType) throws FormatterException
stringToValue in interface FormatterFormatterExceptionprotected String cleanStringNumber(String value, DecimalFormatSymbols decimalFormatSymbols)
value - Chaine saisiedecimalFormatSymbols - symboles décimaux utiliséesprotected static final String cleanStringNumber(String sValue, char decimalCharUsed, char groupCharUsed)
sValue - Chaine saisiedecimalCharUsed - caractère décimal utiliségroupCharUsed - caractère de millier utilisépublic final String valueToString(Object objValue, DataType dataType)
valueToString in interface FormatterCopyright © 2019. All Rights Reserved.