101 private void action3()throws SAXException { 102 XSSimpleType oldSt = $runtime.currentSchema.getSimpleType(newSt.getName()); 103 if(oldSt==null) { 104 $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_SIMPLETYPE,newSt.getName()) ); 105 } else { 106 newSt.redefine((SimpleTypeImpl)oldSt); 107 $runtime.currentSchema.addSimpleType(newSt,true); 108 } 109 } 110 111 private void action4()throws SAXException { 112 $runtime.includeSchema( schemaLocation ); 113 } 114 115 public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException { 116 int $ai; 117 $uri = $__uri; 118 $localName = $__local; 119 $qname = $__qname; 120 switch($_ngcc_current_state) { 121 case 2: 122 { 123 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { 124 NGCCHandler h = new annotation(this, super._source, $runtime, 581, null,AnnotationContext.SCHEMA); 125 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 126 } 127 else { 128 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { 129 NGCCHandler h = new simpleType(this, super._source, $runtime, 582); 130 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 131 } 132 else { 133 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) { 134 NGCCHandler h = new complexType(this, super._source, $runtime, 583); 135 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 136 } 137 else { 138 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group"))) { 139 NGCCHandler h = new group(this, super._source, $runtime, 584); 140 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 141 } 142 else { 143 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attributeGroup"))) { 144 NGCCHandler h = new attributeGroupDecl(this, super._source, $runtime, 585); 145 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 146 } 147 else { 148 $_ngcc_current_state = 1; 149 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 150 } 151 } 152 } 153 } 154 } 155 } 156 break; 157 case 15: 158 { 159 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("redefine"))) { 160 $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); 161 $_ngcc_current_state = 14; 162 } 163 else { 164 unexpectedEnterElement($__qname); 165 } 166 } 167 break; 168 case 0: 169 { 170 revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs); 171 } 172 break; 173 case 14: 174 { 175 if(($ai = $runtime.getAttributeIndex("","schemaLocation"))>=0) { 176 $runtime.consumeAttribute($ai); 177 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 178 } 179 else { 180 unexpectedEnterElement($__qname); 181 } 182 } 183 break; 184 case 1: 185 { 186 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { 187 NGCCHandler h = new annotation(this, super._source, $runtime, 576, null,AnnotationContext.SCHEMA); 188 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 189 } 190 else { 191 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { 192 NGCCHandler h = new simpleType(this, super._source, $runtime, 577); 193 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 194 } 195 else { 196 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) { 197 NGCCHandler h = new complexType(this, super._source, $runtime, 578); 198 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 199 } 200 else { 201 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group"))) { 202 NGCCHandler h = new group(this, super._source, $runtime, 579); 203 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 204 } 205 else { 206 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attributeGroup"))) { 207 NGCCHandler h = new attributeGroupDecl(this, super._source, $runtime, 580); 208 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 209 } 210 else { 211 unexpectedEnterElement($__qname); 212 } 213 } 214 } 215 } 216 } 217 } 218 break; 219 default: 220 { 221 unexpectedEnterElement($__qname); 222 } 223 break; 224 } 225 } 226 227 public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException { 228 int $ai; 229 $uri = $__uri; 230 $localName = $__local; 231 $qname = $__qname; 232 switch($_ngcc_current_state) { 233 case 2: 234 { 235 $_ngcc_current_state = 1; 236 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 237 } 238 break; 239 case 0: 240 { 241 revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname); 242 } 243 break; 244 case 14: 245 { 246 if(($ai = $runtime.getAttributeIndex("","schemaLocation"))>=0) { 247 $runtime.consumeAttribute($ai); 248 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 249 } 250 else { 251 unexpectedLeaveElement($__qname); 252 } 253 } 254 break; 255 case 1: 256 { 257 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("redefine"))) { 258 $runtime.onLeaveElementConsumed($__uri, $__local, $__qname); 259 $_ngcc_current_state = 0; 260 } 261 else { 262 unexpectedLeaveElement($__qname); 263 } 264 } 265 break; 266 default: 267 { 268 unexpectedLeaveElement($__qname); 269 } 270 break; 271 } 272 } 273 274 public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException { 275 int $ai; 276 $uri = $__uri; 277 $localName = $__local; 278 $qname = $__qname; 279 switch($_ngcc_current_state) { 280 case 2: 281 { 282 $_ngcc_current_state = 1; 283 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 284 } 285 break; 286 case 0: 287 { 288 revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname); 289 } 290 break; 291 case 14: 292 { 293 if(($__uri.equals("") && $__local.equals("schemaLocation"))) { 294 $_ngcc_current_state = 13; 295 } 296 else { 297 unexpectedEnterAttribute($__qname); 298 } 299 } 300 break; 301 default: 302 { 303 unexpectedEnterAttribute($__qname); 304 } 305 break; 306 } 307 } 308 309 public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException { 310 int $ai; 311 $uri = $__uri; 312 $localName = $__local; 313 $qname = $__qname; 314 switch($_ngcc_current_state) { 315 case 2: 316 { 317 $_ngcc_current_state = 1; 318 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 319 } 320 break; 321 case 12: 322 { 323 if(($__uri.equals("") && $__local.equals("schemaLocation"))) { 324 $_ngcc_current_state = 2; 325 } 326 else { 327 unexpectedLeaveAttribute($__qname); 328 } 329 } 330 break; 331 case 0: 332 { 333 revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname); 334 } 335 break; 336 default: 337 { 338 unexpectedLeaveAttribute($__qname); 339 } 340 break; 341 } 342 } 343 344 public void text(String $value) throws SAXException { 345 int $ai; 346 switch($_ngcc_current_state) { 347 case 2: 348 { 349 $_ngcc_current_state = 1; 350 $runtime.sendText(super._cookie, $value); 351 } 352 break; 353 case 13: 354 { 355 schemaLocation = $value; 356 $_ngcc_current_state = 12; 357 action4(); 358 } 359 break; 360 case 0: 361 { 362 revertToParentFromText(this, super._cookie, $value); 363 } 364 break; 365 case 14: 366 { 367 if(($ai = $runtime.getAttributeIndex("","schemaLocation"))>=0) { 368 $runtime.consumeAttribute($ai); 369 $runtime.sendText(super._cookie, $value); 370 } 371 } 372 break; 373 } 374 } 375 376 public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException { 377 switch($__cookie__) { 378 case 581: 379 { 380 $_ngcc_current_state = 1; 381 } 382 break; 383 case 582: 384 { 385 newSt = ((SimpleTypeImpl)$__result__); 386 action3(); 387 $_ngcc_current_state = 1; 388 } 389 break; 390 case 583: 391 { 392 newCt = ((ComplexTypeImpl)$__result__); 393 action2(); 394 $_ngcc_current_state = 1; 395 } 396 break; 397 case 584: 398 { 399 newGrp = ((ModelGroupDeclImpl)$__result__); 400 action1(); 401 $_ngcc_current_state = 1; 402 } 403 break; 404 case 585: 405 { 406 newAg = ((AttGroupDeclImpl)$__result__); 407 action0(); 408 $_ngcc_current_state = 1; 409 } 410 break; 411 case 576: 412 { 413 $_ngcc_current_state = 1; 414 } 415 break; 416 case 577: 417 { 418 newSt = ((SimpleTypeImpl)$__result__); 419 action3(); 420 $_ngcc_current_state = 1; 421 } 422 break; 423 case 578: 424 { 425 newCt = ((ComplexTypeImpl)$__result__); 426 action2(); 427 $_ngcc_current_state = 1; 428 } 429 break; 430 case 579: 431 { 432 newGrp = ((ModelGroupDeclImpl)$__result__); 433 action1(); 434 $_ngcc_current_state = 1; 435 } 436 break; 437 case 580: 438 { 439 newAg = ((AttGroupDeclImpl)$__result__); 440 action0(); 441 $_ngcc_current_state = 1; 442 } 443 break; 444 } 445 } 446 447 public boolean accepted() { 448 return(($_ngcc_current_state == 0)); 449 } 450 451 452 } | 101 private void action3()throws SAXException { 102 XSSimpleType oldSt = $runtime.currentSchema.getSimpleType(newSt.getName()); 103 if(oldSt==null) { 104 $runtime.reportError( Messages.format(Messages.ERR_UNDEFINED_SIMPLETYPE,newSt.getName()) ); 105 } else { 106 newSt.redefine((SimpleTypeImpl)oldSt); 107 $runtime.currentSchema.addSimpleType(newSt,true); 108 } 109 } 110 111 private void action4()throws SAXException { 112 $runtime.includeSchema( schemaLocation ); 113 } 114 115 public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException { 116 int $ai; 117 $uri = $__uri; 118 $localName = $__local; 119 $qname = $__qname; 120 switch($_ngcc_current_state) { 121 case 0: 122 { 123 revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs); 124 } 125 break; 126 case 1: 127 { 128 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { 129 NGCCHandler h = new annotation(this, super._source, $runtime, 684, null,AnnotationContext.SCHEMA); 130 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 131 } 132 else { 133 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { 134 NGCCHandler h = new simpleType(this, super._source, $runtime, 685); 135 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 136 } 137 else { 138 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) { 139 NGCCHandler h = new complexType(this, super._source, $runtime, 686); 140 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 141 } 142 else { 143 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group"))) { 144 NGCCHandler h = new group(this, super._source, $runtime, 687); 145 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 146 } 147 else { 148 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attributeGroup"))) { 149 NGCCHandler h = new attributeGroupDecl(this, super._source, $runtime, 688); 150 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 151 } 152 else { 153 unexpectedEnterElement($__qname); 154 } 155 } 156 } 157 } 158 } 159 } 160 break; 161 case 14: 162 { 163 if(($ai = $runtime.getAttributeIndex("","schemaLocation"))>=0) { 164 $runtime.consumeAttribute($ai); 165 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 166 } 167 else { 168 unexpectedEnterElement($__qname); 169 } 170 } 171 break; 172 case 2: 173 { 174 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { 175 NGCCHandler h = new annotation(this, super._source, $runtime, 689, null,AnnotationContext.SCHEMA); 176 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 177 } 178 else { 179 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { 180 NGCCHandler h = new simpleType(this, super._source, $runtime, 690); 181 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 182 } 183 else { 184 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) { 185 NGCCHandler h = new complexType(this, super._source, $runtime, 691); 186 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 187 } 188 else { 189 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group"))) { 190 NGCCHandler h = new group(this, super._source, $runtime, 692); 191 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 192 } 193 else { 194 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attributeGroup"))) { 195 NGCCHandler h = new attributeGroupDecl(this, super._source, $runtime, 693); 196 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 197 } 198 else { 199 $_ngcc_current_state = 1; 200 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 201 } 202 } 203 } 204 } 205 } 206 } 207 break; 208 case 15: 209 { 210 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("redefine"))) { 211 $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); 212 $_ngcc_current_state = 14; 213 } 214 else { 215 unexpectedEnterElement($__qname); 216 } 217 } 218 break; 219 default: 220 { 221 unexpectedEnterElement($__qname); 222 } 223 break; 224 } 225 } 226 227 public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException { 228 int $ai; 229 $uri = $__uri; 230 $localName = $__local; 231 $qname = $__qname; 232 switch($_ngcc_current_state) { 233 case 0: 234 { 235 revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname); 236 } 237 break; 238 case 1: 239 { 240 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("redefine"))) { 241 $runtime.onLeaveElementConsumed($__uri, $__local, $__qname); 242 $_ngcc_current_state = 0; 243 } 244 else { 245 unexpectedLeaveElement($__qname); 246 } 247 } 248 break; 249 case 14: 250 { 251 if(($ai = $runtime.getAttributeIndex("","schemaLocation"))>=0) { 252 $runtime.consumeAttribute($ai); 253 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 254 } 255 else { 256 unexpectedLeaveElement($__qname); 257 } 258 } 259 break; 260 case 2: 261 { 262 $_ngcc_current_state = 1; 263 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 264 } 265 break; 266 default: 267 { 268 unexpectedLeaveElement($__qname); 269 } 270 break; 271 } 272 } 273 274 public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException { 275 int $ai; 276 $uri = $__uri; 277 $localName = $__local; 278 $qname = $__qname; 279 switch($_ngcc_current_state) { 280 case 0: 281 { 282 revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname); 283 } 284 break; 285 case 14: 286 { 287 if(($__uri.equals("") && $__local.equals("schemaLocation"))) { 288 $_ngcc_current_state = 13; 289 } 290 else { 291 unexpectedEnterAttribute($__qname); 292 } 293 } 294 break; 295 case 2: 296 { 297 $_ngcc_current_state = 1; 298 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 299 } 300 break; 301 default: 302 { 303 unexpectedEnterAttribute($__qname); 304 } 305 break; 306 } 307 } 308 309 public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException { 310 int $ai; 311 $uri = $__uri; 312 $localName = $__local; 313 $qname = $__qname; 314 switch($_ngcc_current_state) { 315 case 0: 316 { 317 revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname); 318 } 319 break; 320 case 12: 321 { 322 if(($__uri.equals("") && $__local.equals("schemaLocation"))) { 323 $_ngcc_current_state = 2; 324 } 325 else { 326 unexpectedLeaveAttribute($__qname); 327 } 328 } 329 break; 330 case 2: 331 { 332 $_ngcc_current_state = 1; 333 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 334 } 335 break; 336 default: 337 { 338 unexpectedLeaveAttribute($__qname); 339 } 340 break; 341 } 342 } 343 344 public void text(String $value) throws SAXException { 345 int $ai; 346 switch($_ngcc_current_state) { 347 case 0: 348 { 349 revertToParentFromText(this, super._cookie, $value); 350 } 351 break; 352 case 14: 353 { 354 if(($ai = $runtime.getAttributeIndex("","schemaLocation"))>=0) { 355 $runtime.consumeAttribute($ai); 356 $runtime.sendText(super._cookie, $value); 357 } 358 } 359 break; 360 case 2: 361 { 362 $_ngcc_current_state = 1; 363 $runtime.sendText(super._cookie, $value); 364 } 365 break; 366 case 13: 367 { 368 schemaLocation = $value; 369 $_ngcc_current_state = 12; 370 action4(); 371 } 372 break; 373 } 374 } 375 376 public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException { 377 switch($__cookie__) { 378 case 689: 379 { 380 $_ngcc_current_state = 1; 381 } 382 break; 383 case 690: 384 { 385 newSt = ((SimpleTypeImpl)$__result__); 386 action3(); 387 $_ngcc_current_state = 1; 388 } 389 break; 390 case 691: 391 { 392 newCt = ((ComplexTypeImpl)$__result__); 393 action2(); 394 $_ngcc_current_state = 1; 395 } 396 break; 397 case 692: 398 { 399 newGrp = ((ModelGroupDeclImpl)$__result__); 400 action1(); 401 $_ngcc_current_state = 1; 402 } 403 break; 404 case 693: 405 { 406 newAg = ((AttGroupDeclImpl)$__result__); 407 action0(); 408 $_ngcc_current_state = 1; 409 } 410 break; 411 case 684: 412 { 413 $_ngcc_current_state = 1; 414 } 415 break; 416 case 685: 417 { 418 newSt = ((SimpleTypeImpl)$__result__); 419 action3(); 420 $_ngcc_current_state = 1; 421 } 422 break; 423 case 686: 424 { 425 newCt = ((ComplexTypeImpl)$__result__); 426 action2(); 427 $_ngcc_current_state = 1; 428 } 429 break; 430 case 687: 431 { 432 newGrp = ((ModelGroupDeclImpl)$__result__); 433 action1(); 434 $_ngcc_current_state = 1; 435 } 436 break; 437 case 688: 438 { 439 newAg = ((AttGroupDeclImpl)$__result__); 440 action0(); 441 $_ngcc_current_state = 1; 442 } 443 break; 444 } 445 } 446 447 public boolean accepted() { 448 return(($_ngcc_current_state == 0)); 449 } 450 451 452 } |