code: private static int convertStyle(String style) {
  
      if (style.equals(NlsFormatterManager.STYLE_SHORT)) {
        return DateFormat.SHORT;
      } else if (style.equals(NlsFormatterManager.STYLE_LONG)) {
        return DateFormat.LONG;
      } else if (style.equals(NlsFormatterManager.STYLE_MEDIUM)) {
        return DateFormat.MEDIUM;
      } else if (style.equals(NlsFormatterManager.STYLE_FULL)) {
        return DateFormat.FULL;
      } else {
        throw new IllegalArgumentException(style);
      }
    }
docs: This method converts the given {@link net.sf.mmm.util.nls.api.NlsFormatterPlugin#getStyle() style} to the
  according {@link DateFormat}-style constant.
  
  @param style is the {@link net.sf.mmm.util.nls.api.NlsFormatterPlugin#getStyle() style} to convert.
  @return the according {@link DateFormat}-style constant (e.g. {@link DateFormat#MEDIUM}).