Exemple #1
0
  public static boolean isIdentifier(String name) {
    if (StringKit.isBlank(name)) {
      throw new IllegalArgumentException("argument is blank");
    }

    Pattern pattern = Pattern.compile("[a-zA-Z0-9\\-\\_]+");
    Matcher matcher = pattern.matcher(name);
    return matcher.matches();
  }
Exemple #2
0
 protected String decode(String a_string) {
   return StringKit.decode(a_string);
 }
Exemple #3
0
 protected String encode(String a_string) {
   return StringKit.encode(a_string);
 }