Class MCRDecimalConverter

java.lang.Object
org.mycore.frontend.xeditor.validation.MCRDecimalConverter

public class MCRDecimalConverter extends Object
Helper for decimal validators to convert string input into a decimal value for a given locale.
Author:
Frank Lützenkirchen
  • Constructor Details

    • MCRDecimalConverter

      public MCRDecimalConverter(String localeID)
  • Method Details

    • string2double

      public Double string2double(String value)
      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