1 55 package org.jboss.axis.wsdl.symbolTable; 56 57 import java.io.IOException ; 58 import java.util.Vector ; 59 60 63 public class UndefinedDelegate implements Undefined 64 { 65 66 private Vector list; 67 private TypeEntry undefinedType; 68 69 72 UndefinedDelegate(TypeEntry te) 73 { 74 list = new Vector (); 75 undefinedType = te; 76 } 77 78 82 public void register(TypeEntry referrant) 83 { 84 list.add(referrant); 85 } 86 87 91 public void update(TypeEntry def) throws IOException 92 { 93 boolean done = false; 94 while (!done) 95 { 96 done = true; 98 for (int i = 0; i < list.size(); i++) 103 { 104 TypeEntry te = (TypeEntry)list.elementAt(i); 105 if (te.updateUndefined(undefinedType, def)) 106 done = false; } 108 } 109 TypeEntry uType = def.getUndefinedTypeRef(); 112 if (uType != null) 113 { 114 for (int i = 0; i < list.size(); i++) 115 { 116 TypeEntry te = (TypeEntry)list.elementAt(i); 117 ((Undefined)uType).register(te); 118 } 119 } 120 } 121 } 122 123 ; 124 | Popular Tags |