public String format(String message, Context context) { return formater.format(context, message); }
public String format(String message, Context context) { return formater.format(context, message); }
public static String format(String testString, HttpServletRequest request) { provider.setRequest(request); return formatter.format(null, testString); }
public static String format(String testString, HttpServletRequest request) { provider.setRequest(request); return formater.format(null, testString); }
public String getMessage(String code, Context context, Locale locale) { String string = I18nMessageFactory.getMessage(locale, code); return formater.format(context, string); }
public String getMessage(String code, Context context, Locale locale) { String string = getMessage(code, locale); return formater.format(context, string); }
public String getFunctionSql(String originalSql, String databaseType) { if (formatter == null) { initFormater(); } Context context = new ContextImpl(); context.put(DATABASE_TYPE, databaseType); String beforeFormater = originalSql; String afterFormater = formatter.format(context, beforeFormater); while (!beforeFormater.equals(afterFormater)) { beforeFormater = afterFormater; afterFormater = formatter.format(context, beforeFormater); } return afterFormater; }
public Object getValue(Bean bean, ViewServiceProcessor processor,Context context) { String propertyName=processor.getPropertyName(fieldId); Object value=null; if(pattren!=null&&pattren.trim().length()>0){ bean2Context(bean,context); value=formater.format(context, pattren); }else{ value=bean.get(propertyName); } return value; }
public Object getValue(Bean bean, ViewServiceProcessor processor,Context context) { String propertyName=processor.getPropertyName(fieldId); Object value=null; if(pattren!=null&&pattren.trim().length()>0){ bean2Context(bean,context); value=formater.format(context, pattren); }else{ value=bean.get(propertyName); } return value; }
public String getMessage(String code, Context context) { String string = I18nMessageFactory.getMessage(LocaleUtil.getContext() .getLocale(), code); return formater.format(context, string); }