@Test public void testFormat() { String tpl = "${bsType?string('承包□合作□挂靠√','123')}"; Map<String, Object> args = new HashMap<String, Object>(); args.put("bsType", true); Assert.assertEquals("承包□合作□挂靠√", FreeMarkerUtils.format(tpl, args)); }
public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); }
FreeMarkerUtils { public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); } }
FreeMarkerUtils { public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); } private  FreeMarkerUtils(); }
FreeMarkerUtils { public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); } private  FreeMarkerUtils(); static String format(String tpl, Map<String, Object> args); static String format(String tpl, Object args); }
FreeMarkerUtils { public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); } private  FreeMarkerUtils(); static String format(String tpl, Map<String, Object> args); static String format(String tpl, Object args);  }