Exemple #1
0
 public static FieldProperty fromQueryName(String q) {
   if (q == null || q.length() == 0) {
     return null;
   }
   for (FieldProperty prop : FieldProperty.values()) {
     if (prop.getName().equals(q)) {
       return prop;
     }
   }
   return null;
 }