1 16 package org.apache.axis.wsdl.symbolTable; 17 18 import java.io.IOException ; 19 import java.util.Vector ; 20 21 24 public class UndefinedDelegate implements Undefined { 25 26 27 private Vector list; 28 29 30 private TypeEntry undefinedType; 31 32 37 UndefinedDelegate(TypeEntry te) { 38 list = new Vector (); 39 undefinedType = te; 40 } 41 42 48 public void register(TypeEntry referrant) { 49 list.add(referrant); 50 } 51 52 59 public void update(TypeEntry def) throws IOException { 60 61 boolean done = false; 62 63 while (!done) { 64 done = true; 66 for (int i = 0; i < list.size(); i++) { 71 TypeEntry te = (TypeEntry) list.elementAt(i); 72 73 if (te.updateUndefined(undefinedType, def)) { 74 done = false; } 76 } 77 } 78 79 TypeEntry uType = def.getUndefinedTypeRef(); 82 83 if (uType != null) { 84 for (int i = 0; i < list.size(); i++) { 85 TypeEntry te = (TypeEntry) list.elementAt(i); 86 87 ((Undefined) uType).register(te); 88 } 89 } 90 } 91 } 92 | Popular Tags |