Esempio n. 1
0
  public void parseCodeGeneration() {

    // parse all <codeGeneration> elements
    List codeGenList = ParseUtils.parseDescendants(root, "codeGeneration", idMap);
    Iterator i = codeGenList.iterator();
    while (i.hasNext()) {
      Element cgelt = (Element) i.next();
      // It's the side effect that we're after here.
      new CodeGeneration(cgelt, idMap, objects);
    }
  }
Esempio n. 2
0
  public void parseCode() {

    // Parse all <code> and <parameter> elements
    List codeList = ParseUtils.parseDescendants(root, "code", idMap);
    Iterator i = codeList.iterator();
    while (i.hasNext()) {
      Element codeElt = (Element) i.next();
      String codeId = codeElt.getAttributeValue("id");
      if (objects.containsKey(codeId)) {
        System.out.println("Note: Shadowing definition of <code id=\"" + codeId + "\">");
      }
      objects.put(codeId, new Code(codeElt, idMap));
    }
  }