Beispiel #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();
  }
Beispiel #2
0
 protected String decode(String a_string) {
   return StringKit.decode(a_string);
 }
Beispiel #3
0
 protected String encode(String a_string) {
   return StringKit.encode(a_string);
 }