public void genKra(PW pw) {

    Iterator<KraClass> it = elements();
    while (it.hasNext()) {
      KraClass kr = (KraClass) it.next();
      kr.genKra(pw);
    }
  }
  public KraClass getElement(String name) {

    Iterator<KraClass> it;
    it = classList.iterator();

    while (it.hasNext()) {
      KraClass k = (KraClass) it.next();
      if (k.getName().equals(name)) {
        return k;
      }
    }

    return null;
  }
示例#3
0
 public void genKra(PW pw) {
   for (KraClass c : classList) c.genKra(pw);
 }