Tabnine Logo
Formater
Code IndexAdd Tabnine to your IDE (free)

How to use
Formater
in
org.tinygroup.format

Best Java code snippets using org.tinygroup.format.Formater (Showing top 11 results out of 315)

origin: org.tinygroup/org.tinygroup.i18n

public String format(String message, Context context) {
  return formater.format(context, message);
}
origin: org.tinygroup/org.tinygroup.database

private void initFormater() {
  formatter = new FormaterImpl();
  PatternDefine define = new DefaultPatternDefine();
  define.setPrefixPatternString("#{");
  define.setPostfixPatternString("}");
  define.setPatternString("([#][{]([^#{}]*)[}])");
  formatter.setPatternHandle(define);
  DialectReplaceFormater replace = new DialectReplaceFormater(this);
  formatter.addFormatProvider("", replace);
}
origin: org.tinygroup/org.tinygroup.i18n

public String format(String message, Context context) {
  return formater.format(context, message);
}
origin: org.tinygroup/org.tinygroup.weblayerbase

public static String format(String testString, HttpServletRequest request) {
  provider.setRequest(request);
  return formatter.format(null, testString);
}
origin: org.tinygroup/weblayer

public static String format(String testString, HttpServletRequest request) {
  provider.setRequest(request);
  return formater.format(null, testString);
}
origin: org.tinygroup/org.tinygroup.i18n

public String getMessage(String code, Context context, Locale locale) {
  String string = I18nMessageFactory.getMessage(locale, code);
  return formater.format(context, string);
}
origin: org.tinygroup/org.tinygroup.i18n

public String getMessage(String code, Context context, Locale locale) {
  String string = getMessage(code, locale);
  return formater.format(context, string);
}
origin: org.tinygroup/org.tinygroup.database

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;
}
origin: org.tinygroup/ientity

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;
}
 
origin: org.tinygroup/org.tinygroup.ientity

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;
}

origin: org.tinygroup/org.tinygroup.i18n

public String getMessage(String code, Context context) {
  String string = I18nMessageFactory.getMessage(LocaleUtil.getContext()
      .getLocale(), code);
  return formater.format(context, string);
}
org.tinygroup.formatFormater

Most used methods

  • format
  • addFormatProvider
  • setPatternHandle

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Runner (org.openjdk.jmh.runner)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now