1 19 20 package org.netbeans.modules.xml.schema.model.visitor; 21 22 import org.netbeans.modules.xml.schema.model.*; 23 24 30 public class DeepSchemaVisitor implements SchemaVisitor { 31 public void visit(LocalSimpleType type) { 32 visitChildren(type); 33 } 34 35 public void visit(Union u) { 36 visitChildren(u); 37 } 38 39 public void visit(Enumeration e) { 40 visitChildren(e); 41 } 42 43 public void visit(AttributeGroupReference agr) { 44 visitChildren(agr); 45 } 46 47 public void visit(GlobalAttributeGroup gag) { 48 visitChildren(gag); 49 } 50 51 public void visit(KeyRef kr) { 52 visitChildren(kr); 53 } 54 55 public void visit(GlobalSimpleType gst) { 56 visitChildren(gst); 57 } 58 59 public void visit(AnyElement any) { 60 visitChildren(any); 61 } 62 63 public void visit(Include include) { 64 visitChildren(include); 65 } 66 67 public void visit(MinInclusive mi) { 68 visitChildren(mi); 69 } 70 71 public void visit(Import im) { 72 visitChildren(im); 73 } 74 75 public void visit(Choice choice) { 76 visitChildren(choice); 77 } 78 79 public void visit(Unique u) { 80 visitChildren(u); 81 } 82 83 public void visit(MaxLength ml) { 84 visitChildren(ml); 85 } 86 87 public void visit(Redefine rd) { 88 visitChildren(rd); 89 } 90 91 public void visit(SimpleContentRestriction scr) { 92 visitChildren(scr); 93 } 94 95 public void visit(LocalElement le) { 96 visitChildren(le); 97 } 98 99 public void visit(ElementReference le) { 100 visitChildren(le); 101 } 102 103 public void visit(Selector s) { 104 visitChildren(s); 105 } 106 107 public void visit(Annotation ann) { 108 visitChildren(ann); 109 } 110 111 public void visit(ComplexExtension ce) { 112 visitChildren(ce); 113 } 114 115 public void visit(FractionDigits fd) { 116 visitChildren(fd); 117 } 118 119 public void visit(SimpleExtension se) { 120 visitChildren(se); 121 } 122 123 public void visit(Whitespace ws) { 124 visitChildren(ws); 125 } 126 127 public void visit(LocalComplexType type) { 128 visitChildren(type); 129 } 130 131 public void visit(TotalDigits td) { 132 visitChildren(td); 133 } 134 135 public void visit(MaxExclusive me) { 136 visitChildren(me); 137 } 138 139 public void visit(SimpleContent sc) { 140 visitChildren(sc); 141 } 142 143 public void visit(AnyAttribute anyAttr) { 144 visitChildren(anyAttr); 145 } 146 147 public void visit(GlobalAttribute ga) { 148 visitChildren(ga); 149 } 150 151 public void visit(All all) { 152 visitChildren(all); 153 } 154 155 public void visit(ComplexContentRestriction ccr) { 156 visitChildren(ccr); 157 } 158 159 public void visit(GroupReference gr) { 160 visitChildren(gr); 161 } 162 163 public void visit(Key key) { 164 visitChildren(key); 165 } 166 167 public void visit(List l) { 168 visitChildren(l); 169 } 170 171 public void visit(Pattern p) { 172 visitChildren(p); 173 } 174 175 public void visit(Documentation d) { 176 visitChildren(d); 177 } 178 179 public void visit(AppInfo d) { 180 visitChildren(d); 181 } 182 183 public void visit(Notation notation) { 184 visitChildren(notation); 185 } 186 187 public void visit(MinExclusive me) { 188 visitChildren(me); 189 } 190 191 public void visit(GlobalGroup gd) { 192 visitChildren(gd); 193 } 194 195 public void visit(MinLength ml) { 196 visitChildren(ml); 197 } 198 199 public void visit(Schema s) { 200 visitChildren(s); 201 } 202 203 public void visit(GlobalComplexType gct) { 204 visitChildren(gct); 205 } 206 207 public void visit(Sequence s) { 208 visitChildren(s); 209 } 210 211 public void visit(MaxInclusive mi) { 212 visitChildren(mi); 213 } 214 215 public void visit(SimpleTypeRestriction str) { 216 visitChildren(str); 217 } 218 219 public void visit(LocalAttribute la) { 220 visitChildren(la); 221 } 222 223 public void visit(AttributeReference la) { 224 visitChildren(la); 225 } 226 227 public void visit(ComplexContent cc) { 228 visitChildren(cc); 229 } 230 231 public void visit(GlobalElement ge) { 232 visitChildren(ge); 233 } 234 235 public void visit(Length length) { 236 visitChildren(length); 237 } 238 239 public void visit(Field f) { 240 visitChildren(f); 241 } 242 243 protected void visitChildren(SchemaComponent sc) { 244 for (SchemaComponent child: sc.getChildren()) { 245 child.accept(this); 246 } 247 } 248 } 249 | Popular Tags |