src/share/jaxws_classes/com/sun/xml/internal/xsom/impl/parser/state/modelGroupBody.java

Print this page




  80       if(compositor==null)
  81         throw new InternalError("unable to process "+compositorName);
  82 
  83       result = new ModelGroupImpl( $runtime.document, annotation, locator, fa, compositor,
  84             (ParticleImpl[])particles.toArray(new ParticleImpl[0]));
  85 
  86 }
  87 
  88     private void action1()throws SAXException {
  89 
  90         particles.add(childParticle);
  91 
  92 }
  93 
  94     public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException {
  95         int $ai;
  96         $uri = $__uri;
  97         $localName = $__local;
  98         $qname = $__qname;
  99         switch($_ngcc_current_state) {
 100         case 2:
 101             {
 102                 if((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("any")) || (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("all")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("choice"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("sequence"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element")))))) {
 103                     NGCCHandler h = new particle(this, super._source, $runtime, 515);





 104                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
 105                 }
 106                 else {
 107                     $_ngcc_current_state = 1;
 108                     $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
 109                 }
 110             }
 111             break;
 112         case 6:
 113             {
 114                 if((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("any")) || (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("all")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("choice"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("sequence"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))))))) {
 115                     NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 520, null);
 116                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
 117                 }
 118                 else {
 119                     NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 520, null);
 120                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
 121                 }
 122             }
 123             break;
 124         case 1:
 125             {
 126                 if((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("any")) || (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("all")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("choice"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("sequence"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element")))))) {
 127                     NGCCHandler h = new particle(this, super._source, $runtime, 514);
 128                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
 129                 }
 130                 else {
 131                     action0();
 132                     $_ngcc_current_state = 0;
 133                     $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
 134                 }
 135             }
 136             break;
 137         case 0:
 138             {
 139                 revertToParentFromEnterElement(result, super._cookie, $__uri, $__local, $__qname, $attrs);
 140             }
 141             break;
 142         case 4:
 143             {
 144                 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) {
 145                     NGCCHandler h = new annotation(this, super._source, $runtime, 518, null,AnnotationContext.MODELGROUP);
 146                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
 147                 }
 148                 else {
 149                     $_ngcc_current_state = 2;

 150                     $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
 151                 }
 152             }
 153             break;
 154         default:
 155             {
 156                 unexpectedEnterElement($__qname);
 157             }
 158             break;
 159         }
 160     }
 161 
 162     public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException {
 163         int $ai;
 164         $uri = $__uri;
 165         $localName = $__local;
 166         $qname = $__qname;
 167         switch($_ngcc_current_state) {











 168         case 2:
 169             {
 170                 $_ngcc_current_state = 1;
 171                 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
 172             }
 173             break;
 174         case 6:
 175             {
 176                 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 520, null);
 177                 spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
 178             }
 179             break;
 180         case 1:
 181             {
 182                 action0();
 183                 $_ngcc_current_state = 0;
 184                 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
 185             }
 186             break;
 187         case 0:
 188             {
 189                 revertToParentFromLeaveElement(result, super._cookie, $__uri, $__local, $__qname);
 190             }
 191             break;
 192         case 4:
 193             {
 194                 $_ngcc_current_state = 2;
 195                 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
 196             }
 197             break;
 198         default:
 199             {
 200                 unexpectedLeaveElement($__qname);
 201             }
 202             break;
 203         }
 204     }
 205 
 206     public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
 207         int $ai;
 208         $uri = $__uri;
 209         $localName = $__local;
 210         $qname = $__qname;
 211         switch($_ngcc_current_state) {











 212         case 2:
 213             {
 214                 $_ngcc_current_state = 1;
 215                 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
 216             }
 217             break;
 218         case 6:
 219             {
 220                 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 520, null);
 221                 spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
 222             }
 223             break;
 224         case 1:
 225             {
 226                 action0();
 227                 $_ngcc_current_state = 0;
 228                 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
 229             }
 230             break;
 231         case 0:
 232             {
 233                 revertToParentFromEnterAttribute(result, super._cookie, $__uri, $__local, $__qname);
 234             }
 235             break;
 236         case 4:
 237             {
 238                 $_ngcc_current_state = 2;
 239                 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
 240             }
 241             break;
 242         default:
 243             {
 244                 unexpectedEnterAttribute($__qname);
 245             }
 246             break;
 247         }
 248     }
 249 
 250     public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
 251         int $ai;
 252         $uri = $__uri;
 253         $localName = $__local;
 254         $qname = $__qname;
 255         switch($_ngcc_current_state) {











 256         case 2:
 257             {
 258                 $_ngcc_current_state = 1;
 259                 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
 260             }
 261             break;
 262         case 6:
 263             {
 264                 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 520, null);
 265                 spawnChildFromLeaveAttribute(h, $__uri, $__local, $__qname);
 266             }
 267             break;
 268         case 1:
 269             {
 270                 action0();
 271                 $_ngcc_current_state = 0;
 272                 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
 273             }
 274             break;
 275         case 0:
 276             {
 277                 revertToParentFromLeaveAttribute(result, super._cookie, $__uri, $__local, $__qname);
 278             }
 279             break;
 280         case 4:
 281             {
 282                 $_ngcc_current_state = 2;
 283                 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
 284             }
 285             break;
 286         default:
 287             {
 288                 unexpectedLeaveAttribute($__qname);
 289             }
 290             break;
 291         }
 292     }
 293 
 294     public void text(String $value) throws SAXException {
 295         int $ai;
 296         switch($_ngcc_current_state) {











 297         case 2:
 298             {
 299                 $_ngcc_current_state = 1;
 300                 $runtime.sendText(super._cookie, $value);
 301             }
 302             break;
 303         case 6:
 304             {
 305                 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 520, null);
 306                 spawnChildFromText(h, $value);
 307             }
 308             break;
 309         case 1:
 310             {
 311                 action0();
 312                 $_ngcc_current_state = 0;
 313                 $runtime.sendText(super._cookie, $value);
 314             }
 315             break;
 316         case 0:
 317             {
 318                 revertToParentFromText(result, super._cookie, $value);
 319             }
 320             break;
 321         case 4:
 322             {
 323                 $_ngcc_current_state = 2;
 324                 $runtime.sendText(super._cookie, $value);
 325             }
 326             break;
 327         }
 328     }
 329 
 330     public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
 331         switch($__cookie__) {
 332         case 520:






 333             {
 334                 fa = ((ForeignAttributesImpl)$__result__);
 335                 $_ngcc_current_state = 4;
 336             }
 337             break;
 338         case 515:
 339             {
 340                 childParticle = ((ParticleImpl)$__result__);
 341                 action1();
 342                 $_ngcc_current_state = 1;
 343             }
 344             break;
 345         case 514:
 346             {
 347                 childParticle = ((ParticleImpl)$__result__);
 348                 action1();
 349                 $_ngcc_current_state = 1;
 350             }
 351             break;
 352         case 518:
 353             {
 354                 annotation = ((AnnotationImpl)$__result__);
 355                 $_ngcc_current_state = 2;
 356             }
 357             break;
 358         }
 359     }
 360 
 361     public boolean accepted() {
 362         return((($_ngcc_current_state == 0) || (($_ngcc_current_state == 4) || (($_ngcc_current_state == 1) || ($_ngcc_current_state == 2)))));
 363     }
 364 
 365 
 366                 private ModelGroupImpl result;
 367 
 368                 private final List particles = new ArrayList();
 369 
 370 }


  80       if(compositor==null)
  81         throw new InternalError("unable to process "+compositorName);
  82 
  83       result = new ModelGroupImpl( $runtime.document, annotation, locator, fa, compositor,
  84             (ParticleImpl[])particles.toArray(new ParticleImpl[0]));
  85 
  86 }
  87 
  88     private void action1()throws SAXException {
  89 
  90         particles.add(childParticle);
  91 
  92 }
  93 
  94     public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException {
  95         int $ai;
  96         $uri = $__uri;
  97         $localName = $__local;
  98         $qname = $__qname;
  99         switch($_ngcc_current_state) {
 100         case 0:
 101             {
 102                 revertToParentFromEnterElement(result, super._cookie, $__uri, $__local, $__qname, $attrs);
 103             }
 104             break;
 105         case 4:
 106             {
 107                 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) {
 108                     NGCCHandler h = new annotation(this, super._source, $runtime, 174, null,AnnotationContext.MODELGROUP);
 109                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
 110                 }
 111                 else {
 112                     $_ngcc_current_state = 2;
 113                     $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
 114                 }
 115             }
 116             break;
 117         case 2:
 118             {
 119                 if((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element")) || (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("all")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("choice"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("sequence"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("any")))))) {
 120                     NGCCHandler h = new particle(this, super._source, $runtime, 171);
 121                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
 122                 }
 123                 else {
 124                     $_ngcc_current_state = 1;
 125                     $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
 126                 }
 127             }
 128             break;
 129         case 6:
 130             {
 131                 if((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element")) || (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("all")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("choice"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("sequence"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("any"))))))) {
 132                     NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 176, null);
 133                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
 134                 }
 135                 else {
 136                     NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 176, null);
 137                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);


 138                 }




 139             }
 140             break;
 141         case 1:
 142             {
 143                 if((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element")) || (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("all")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("choice"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("sequence"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("any")))))) {
 144                     NGCCHandler h = new particle(this, super._source, $runtime, 170);
 145                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
 146                 }
 147                 else {
 148                     action0();
 149                     $_ngcc_current_state = 0;
 150                     $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
 151                 }
 152             }
 153             break;
 154         default:
 155             {
 156                 unexpectedEnterElement($__qname);
 157             }
 158             break;
 159         }
 160     }
 161 
 162     public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException {
 163         int $ai;
 164         $uri = $__uri;
 165         $localName = $__local;
 166         $qname = $__qname;
 167         switch($_ngcc_current_state) {
 168         case 0:
 169             {
 170                 revertToParentFromLeaveElement(result, super._cookie, $__uri, $__local, $__qname);
 171             }
 172             break;
 173         case 4:
 174             {
 175                 $_ngcc_current_state = 2;
 176                 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
 177             }
 178             break;
 179         case 2:
 180             {
 181                 $_ngcc_current_state = 1;
 182                 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
 183             }
 184             break;
 185         case 6:
 186             {
 187                 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 176, null);
 188                 spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
 189             }
 190             break;
 191         case 1:
 192             {
 193                 action0();
 194                 $_ngcc_current_state = 0;
 195                 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
 196             }
 197             break;











 198         default:
 199             {
 200                 unexpectedLeaveElement($__qname);
 201             }
 202             break;
 203         }
 204     }
 205 
 206     public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
 207         int $ai;
 208         $uri = $__uri;
 209         $localName = $__local;
 210         $qname = $__qname;
 211         switch($_ngcc_current_state) {
 212         case 0:
 213             {
 214                 revertToParentFromEnterAttribute(result, super._cookie, $__uri, $__local, $__qname);
 215             }
 216             break;
 217         case 4:
 218             {
 219                 $_ngcc_current_state = 2;
 220                 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
 221             }
 222             break;
 223         case 2:
 224             {
 225                 $_ngcc_current_state = 1;
 226                 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
 227             }
 228             break;
 229         case 6:
 230             {
 231                 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 176, null);
 232                 spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
 233             }
 234             break;
 235         case 1:
 236             {
 237                 action0();
 238                 $_ngcc_current_state = 0;
 239                 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
 240             }
 241             break;











 242         default:
 243             {
 244                 unexpectedEnterAttribute($__qname);
 245             }
 246             break;
 247         }
 248     }
 249 
 250     public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
 251         int $ai;
 252         $uri = $__uri;
 253         $localName = $__local;
 254         $qname = $__qname;
 255         switch($_ngcc_current_state) {
 256         case 0:
 257             {
 258                 revertToParentFromLeaveAttribute(result, super._cookie, $__uri, $__local, $__qname);
 259             }
 260             break;
 261         case 4:
 262             {
 263                 $_ngcc_current_state = 2;
 264                 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
 265             }
 266             break;
 267         case 2:
 268             {
 269                 $_ngcc_current_state = 1;
 270                 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
 271             }
 272             break;
 273         case 6:
 274             {
 275                 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 176, null);
 276                 spawnChildFromLeaveAttribute(h, $__uri, $__local, $__qname);
 277             }
 278             break;
 279         case 1:
 280             {
 281                 action0();
 282                 $_ngcc_current_state = 0;
 283                 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
 284             }
 285             break;











 286         default:
 287             {
 288                 unexpectedLeaveAttribute($__qname);
 289             }
 290             break;
 291         }
 292     }
 293 
 294     public void text(String $value) throws SAXException {
 295         int $ai;
 296         switch($_ngcc_current_state) {
 297         case 0:
 298             {
 299                 revertToParentFromText(result, super._cookie, $value);
 300             }
 301             break;
 302         case 4:
 303             {
 304                 $_ngcc_current_state = 2;
 305                 $runtime.sendText(super._cookie, $value);
 306             }
 307             break;
 308         case 2:
 309             {
 310                 $_ngcc_current_state = 1;
 311                 $runtime.sendText(super._cookie, $value);
 312             }
 313             break;
 314         case 6:
 315             {
 316                 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 176, null);
 317                 spawnChildFromText(h, $value);
 318             }
 319             break;
 320         case 1:
 321             {
 322                 action0();
 323                 $_ngcc_current_state = 0;
 324                 $runtime.sendText(super._cookie, $value);
 325             }
 326             break;











 327         }
 328     }
 329 
 330     public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
 331         switch($__cookie__) {
 332         case 174:
 333             {
 334                 annotation = ((AnnotationImpl)$__result__);
 335                 $_ngcc_current_state = 2;
 336             }
 337             break;
 338         case 176:
 339             {
 340                 fa = ((ForeignAttributesImpl)$__result__);
 341                 $_ngcc_current_state = 4;
 342             }
 343             break;
 344         case 171:
 345             {
 346                 childParticle = ((ParticleImpl)$__result__);
 347                 action1();
 348                 $_ngcc_current_state = 1;
 349             }
 350             break;
 351         case 170:
 352             {
 353                 childParticle = ((ParticleImpl)$__result__);
 354                 action1();
 355                 $_ngcc_current_state = 1;
 356             }
 357             break;






 358         }
 359     }
 360 
 361     public boolean accepted() {
 362         return((($_ngcc_current_state == 1) || (($_ngcc_current_state == 2) || (($_ngcc_current_state == 4) || ($_ngcc_current_state == 0)))));
 363     }
 364 
 365 
 366                 private ModelGroupImpl result;
 367 
 368                 private final List particles = new ArrayList();
 369 
 370 }