1 28 29 package org.jibx.binding.model; 30 31 44 45 public abstract class ModelVisitor 46 { 47 50 57 public boolean visit(ElementBase node) { 58 return true; 59 } 60 61 69 public boolean visit(NestingElementBase node) { 70 return visit((ElementBase)node); 71 } 72 73 81 public boolean visit(ContainerElementBase node) { 82 return visit((NestingElementBase)node); 83 } 84 85 93 public boolean visit(StructureElementBase node) { 94 return visit((ContainerElementBase)node); 95 } 96 97 105 public boolean visit(TemplateElementBase node) { 106 return visit((NestingElementBase)node); 107 } 108 109 112 119 public boolean visit(BindingElement node) { 120 return visit((NestingElementBase)node); 121 } 122 123 130 public boolean visit(CollectionElement node) { 131 return visit((StructureElementBase)node); 132 } 133 134 141 public boolean visit(FormatElement node) { 142 return visit((ElementBase)node); 143 } 144 145 152 public boolean visit(IncludeElement node) { 153 return visit((ElementBase)node); 154 } 155 156 163 public boolean visit(InputElement node) { 164 return visit((NestingElementBase)node); 165 } 166 167 174 public boolean visit(MappingElement node) { 175 return visit((TemplateElementBase)node); 176 } 177 178 185 public boolean visit(NamespaceElement node) { 186 return visit((ElementBase)node); 187 } 188 189 196 public boolean visit(OutputElement node) { 197 return visit((NestingElementBase)node); 198 } 199 200 207 public boolean visit(SplitElement node) { 208 return visit((NestingElementBase)node); 209 } 210 211 218 public boolean visit(StructureElement node) { 219 return visit((StructureElementBase)node); 220 } 221 222 229 public boolean visit(TemplateElement node) { 230 return visit((TemplateElementBase)node); 231 } 232 233 240 public boolean visit(ValueElement node) { 241 return visit((ElementBase)node); 242 } 243 244 247 252 public void exit(ElementBase node) {} 253 254 259 public void exit(NestingElementBase node) { 260 exit((ElementBase)node); 261 } 262 263 268 public void exit(ContainerElementBase node) { 269 exit((NestingElementBase)node); 270 } 271 272 277 public void exit(StructureElementBase node) { 278 exit((ContainerElementBase)node); 279 } 280 281 286 public void exit(TemplateElementBase node) { 287 exit((NestingElementBase)node); 288 } 289 290 293 298 public void exit(BindingElement node) { 299 exit((NestingElementBase)node); 300 } 301 302 307 public void exit(CollectionElement node) { 308 exit((StructureElementBase)node); 309 } 310 311 316 public void exit(IncludeElement node) { 317 exit((ElementBase)node); 318 } 319 320 325 public void exit(InputElement node) { 326 exit((NestingElementBase)node); 327 } 328 329 334 public void exit(MappingElement node) { 335 exit((TemplateElementBase)node); 336 } 337 338 343 public void exit(OutputElement node) { 344 exit((NestingElementBase)node); 345 } 346 347 352 public void exit(SplitElement node) { 353 exit((NestingElementBase)node); 354 } 355 356 361 public void exit(StructureElement node) { 362 exit((StructureElementBase)node); 363 } 364 365 370 public void exit(TemplateElement node) { 371 exit((TemplateElementBase)node); 372 } 373 374 379 public void exit(ValueElement node) { 380 exit((ElementBase)node); 381 } 382 } | Popular Tags |