Class MCRDecimalConverter
java.lang.Object
org.mycore.frontend.xeditor.validation.MCRDecimalConverter
Helper for decimal validators to convert string input into a decimal value for a given locale.
- Author:
- Frank Lützenkirchen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstring2double
(String value) Converts a given text string to a decimal number, using the given locale.
-
Constructor Details
-
MCRDecimalConverter
-
-
Method Details
-
string2double
Converts a given text string to a decimal number, using the given locale.- Parameters:
value
- the text strin- Returns:
- null, if the text contains illegal chars or can not be parsed
-