Example #1
0
 public synchronized Enumeration getMultipleValues(StringProperty stringproperty) {
   jgl.HashMap hashmap = findTable(stringproperty);
   if (hashmap != null) {
     return hashmap.values(stringproperty);
   } else {
     return cEmptyArray.elements();
   }
 }
Example #2
0
 public synchronized Enumeration getMultipleValues(String s) {
   if (valuesTable != null) {
     StringProperty stringproperty = getPropertyObject(s);
     if (stringproperty != null) {
       return getMultipleValues(stringproperty);
     }
     HashMap hashmap = findTable(s);
     if (hashmap != null) {
       return hashmap.values(s);
     }
   }
   return cEmptyArray.elements();
 }
Example #3
0
 private static String getId(HashMap hashmap) {
   Object id = hashmap.get("_id");
   if (id != null) return (String) id;
   Enumeration<?> enumeration = hashmap.keys();
   while (enumeration.hasMoreElements()) {
     Object obj = enumeration.nextElement();
     if (obj instanceof StringProperty) {
       String key = ((StringProperty) obj).getName();
       if (key.equals("_id")) {
         Enumeration<?> enumeration1 = hashmap.values(obj);
         while (enumeration1.hasMoreElements()) {
           Object obj1 = enumeration1.nextElement();
           return (String) obj1;
         }
       }
     }
   }
   return null;
 }
Example #4
0
  /**
   * CAUTION: Decompiled by hand.
   *
   * @param hashmap
   * @param hashmap1
   * @param i
   * @param j
   */
  static void resolveTemplateReferences(HashMap hashmap, HashMap hashmap1, int i, int j) {
    if (i > j) {
      LogManager.log("Error", "Loop detected in templates.config");
      return;
    }
    for (Enumeration enumeration = hashmap1.values("__template"); enumeration.hasMoreElements(); ) {
      String s = (String) enumeration.nextElement();
      HashMap hashmap2 = (HashMap) hashmap.get(s);
      if (hashmap2 != null) {
        resolveTemplateReferences(hashmap, hashmap2, i + 1, j);
        Enumeration enumeration1 = hashmap2.keys();
        while (enumeration1.hasMoreElements()) {
          String s1 = (String) enumeration1.nextElement();
          if (hashmap1.get(s1) == null) hashmap1.put(s1, hashmap2.get(s1));
        }
      }
    }

    hashmap1.remove("__template");
  }