88 89 } 90 91 private void action2()throws SAXException { 92 93 baseType = new DelayedRef.SimpleType( 94 $runtime, rloc, $runtime.currentSchema, baseTypeName ); 95 96 } 97 98 private void action3()throws SAXException { 99 rloc=$runtime.copyLocator(); 100 } 101 102 public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException { 103 int $ai; 104 $uri = $__uri; 105 $localName = $__local; 106 $qname = $__qname; 107 switch($_ngcc_current_state) { 108 case 0: 109 { 110 revertToParentFromEnterElement(result, super._cookie, $__uri, $__local, $__qname, $attrs); 111 } 112 break; 113 case 12: 114 { 115 if(((($ai = $runtime.getAttributeIndex("","base"))>=0 && (((((((((((((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minExclusive")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxExclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("totalDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("fractionDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("length"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("enumeration"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("whiteSpace"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("pattern"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")))) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))))) { 116 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 445, fa); 117 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 118 } 119 else { 120 unexpectedEnterElement($__qname); 121 } 122 } 123 break; 124 case 13: 125 { 126 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("restriction"))) { 127 $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); 128 action3(); 129 $_ngcc_current_state = 12; 130 } 131 else { 132 unexpectedEnterElement($__qname); 133 } 134 } 135 break; 136 case 5: 137 { 138 if(($ai = $runtime.getAttributeIndex("","base"))>=0) { 139 $runtime.consumeAttribute($ai); 140 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 141 } 142 else { 143 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { 144 NGCCHandler h = new simpleType(this, super._source, $runtime, 437); 145 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 146 } 147 else { 148 unexpectedEnterElement($__qname); 149 } 150 } 151 } 152 break; 153 case 2: 154 { 155 if((((((((((((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minExclusive")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxExclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("totalDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("fractionDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("length"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("enumeration"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("whiteSpace"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("pattern")))) { 156 NGCCHandler h = new facet(this, super._source, $runtime, 433); 157 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 158 } 159 else { 160 $_ngcc_current_state = 1; 161 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 162 } 163 } 164 break; 165 case 1: 166 { 167 if((((((((((((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minExclusive")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxExclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("totalDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("fractionDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("length"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("enumeration"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("whiteSpace"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("pattern")))) { 168 NGCCHandler h = new facet(this, super._source, $runtime, 432); 169 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 170 } 171 else { 172 unexpectedEnterElement($__qname); 173 } 174 } 175 break; 176 case 4: 177 { 178 action1(); 179 $_ngcc_current_state = 2; 180 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 181 } 182 break; 183 case 10: 184 { 185 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { 186 NGCCHandler h = new annotation(this, super._source, $runtime, 443, annotation,AnnotationContext.SIMPLETYPE_DECL); 187 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 188 } 189 else { 190 $_ngcc_current_state = 5; 191 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 192 } 193 } 194 break; 195 default: 196 { 197 unexpectedEnterElement($__qname); 198 } 199 break; 200 } 201 } 202 203 public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException { 204 int $ai; 205 $uri = $__uri; 206 $localName = $__local; 207 $qname = $__qname; 208 switch($_ngcc_current_state) { 209 case 0: 210 { 211 revertToParentFromLeaveElement(result, super._cookie, $__uri, $__local, $__qname); 212 } 213 break; 214 case 12: 215 { 216 if((($ai = $runtime.getAttributeIndex("","base"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("restriction")))) { 217 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 445, fa); 218 spawnChildFromLeaveElement(h, $__uri, $__local, $__qname); 219 } 220 else { 221 unexpectedLeaveElement($__qname); 222 } 223 } 224 break; 225 case 5: 226 { 227 if(($ai = $runtime.getAttributeIndex("","base"))>=0) { 228 $runtime.consumeAttribute($ai); 229 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 230 } 231 else { 232 unexpectedLeaveElement($__qname); 233 } 234 } 235 break; 236 case 2: 237 { 238 $_ngcc_current_state = 1; 239 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 240 } 241 break; 242 case 1: 243 { 244 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("restriction"))) { 245 $runtime.onLeaveElementConsumed($__uri, $__local, $__qname); 246 $_ngcc_current_state = 0; 247 } 248 else { 249 unexpectedLeaveElement($__qname); 250 } 251 } 252 break; 253 case 4: 254 { 255 action1(); 256 $_ngcc_current_state = 2; 257 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 258 } 259 break; 260 case 10: 261 { 262 $_ngcc_current_state = 5; 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(result, super._cookie, $__uri, $__local, $__qname); 283 } 284 break; 285 case 12: 286 { 287 if(($__uri.equals("") && $__local.equals("base"))) { 288 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 445, fa); 289 spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname); 290 } 291 else { 292 unexpectedEnterAttribute($__qname); 293 } 294 } 295 break; 296 case 5: 297 { 298 if(($__uri.equals("") && $__local.equals("base"))) { 299 $_ngcc_current_state = 8; 300 } 301 else { 302 unexpectedEnterAttribute($__qname); 303 } 304 } 305 break; 306 case 2: 307 { 308 $_ngcc_current_state = 1; 309 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 310 } 311 break; 312 case 4: 313 { 314 action1(); 315 $_ngcc_current_state = 2; 316 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 317 } 318 break; 319 case 10: 320 { 321 $_ngcc_current_state = 5; 322 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 323 } 324 break; 325 default: 326 { 327 unexpectedEnterAttribute($__qname); 328 } 329 break; 330 } 331 } 332 333 public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException { 334 int $ai; 335 $uri = $__uri; 336 $localName = $__local; 337 $qname = $__qname; 338 switch($_ngcc_current_state) { 339 case 7: 340 { 341 if(($__uri.equals("") && $__local.equals("base"))) { 342 $_ngcc_current_state = 4; 343 } 344 else { 345 unexpectedLeaveAttribute($__qname); 346 } 347 } 348 break; 349 case 0: 350 { 351 revertToParentFromLeaveAttribute(result, super._cookie, $__uri, $__local, $__qname); 352 } 353 break; 354 case 2: 355 { 356 $_ngcc_current_state = 1; 357 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 358 } 359 break; 360 case 4: 361 { 362 action1(); 363 $_ngcc_current_state = 2; 364 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 365 } 366 break; 367 case 10: 368 { 369 $_ngcc_current_state = 5; 370 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 371 } 372 break; 373 default: 374 { 375 unexpectedLeaveAttribute($__qname); 376 } 377 break; 378 } 379 } 380 381 public void text(String $value) throws SAXException { 382 int $ai; 383 switch($_ngcc_current_state) { 384 case 0: 385 { 386 revertToParentFromText(result, super._cookie, $value); 387 } 388 break; 389 case 12: 390 { 391 if(($ai = $runtime.getAttributeIndex("","base"))>=0) { 392 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 445, fa); 393 spawnChildFromText(h, $value); 394 } 395 } 396 break; 397 case 8: 398 { 399 NGCCHandler h = new qname(this, super._source, $runtime, 439); 400 spawnChildFromText(h, $value); 401 } 402 break; 403 case 5: 404 { 405 if(($ai = $runtime.getAttributeIndex("","base"))>=0) { 406 $runtime.consumeAttribute($ai); 407 $runtime.sendText(super._cookie, $value); 408 } 409 } 410 break; 411 case 2: 412 { 413 $_ngcc_current_state = 1; 414 $runtime.sendText(super._cookie, $value); 415 } 416 break; 417 case 4: 418 { 419 action1(); 420 $_ngcc_current_state = 2; 421 $runtime.sendText(super._cookie, $value); 422 } 423 break; 424 case 10: 425 { 426 $_ngcc_current_state = 5; 427 $runtime.sendText(super._cookie, $value); 428 } 429 break; 430 } 431 } 432 433 public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException { 434 switch($__cookie__) { 435 case 439: 436 { 437 baseTypeName = ((UName)$__result__); 438 action2(); 439 $_ngcc_current_state = 7; 440 } 441 break; 442 case 445: 443 { 444 fa = ((ForeignAttributesImpl)$__result__); 445 $_ngcc_current_state = 10; 446 } 447 break; 448 case 437: 449 { 450 baseType = ((SimpleTypeImpl)$__result__); 451 $_ngcc_current_state = 4; 452 } 453 break; 454 case 443: 455 { 456 annotation = ((AnnotationImpl)$__result__); 457 $_ngcc_current_state = 5; 458 } 459 break; 460 case 433: 461 { 462 facet = ((XSFacet)$__result__); 463 action0(); 464 $_ngcc_current_state = 1; 465 } 466 break; 467 case 432: 468 { 469 facet = ((XSFacet)$__result__); 470 action0(); 471 $_ngcc_current_state = 1; 472 } 473 break; 474 } 475 } 476 477 public boolean accepted() { 478 return(($_ngcc_current_state == 0)); 479 } 480 481 482 /** computed simple type object */ 483 private RestrictionSimpleTypeImpl result; 484 485 // reference to the base type 486 private Ref.SimpleType baseType; 487 | 88 89 } 90 91 private void action2()throws SAXException { 92 93 baseType = new DelayedRef.SimpleType( 94 $runtime, rloc, $runtime.currentSchema, baseTypeName ); 95 96 } 97 98 private void action3()throws SAXException { 99 rloc=$runtime.copyLocator(); 100 } 101 102 public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException { 103 int $ai; 104 $uri = $__uri; 105 $localName = $__local; 106 $qname = $__qname; 107 switch($_ngcc_current_state) { 108 case 12: 109 { 110 if((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")) || ((($ai = $runtime.getAttributeIndex("","base"))>=0 && ((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType")) || (((((((((((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minExclusive")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxExclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("totalDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("fractionDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("length"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("enumeration"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("whiteSpace"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("pattern")))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))))) { 111 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 166, fa); 112 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 113 } 114 else { 115 unexpectedEnterElement($__qname); 116 } 117 } 118 break; 119 case 10: 120 { 121 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { 122 NGCCHandler h = new annotation(this, super._source, $runtime, 164, annotation,AnnotationContext.SIMPLETYPE_DECL); 123 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 124 } 125 else { 126 $_ngcc_current_state = 5; 127 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 128 } 129 } 130 break; 131 case 4: 132 { 133 action1(); 134 $_ngcc_current_state = 2; 135 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 136 } 137 break; 138 case 0: 139 { 140 revertToParentFromEnterElement(result, super._cookie, $__uri, $__local, $__qname, $attrs); 141 } 142 break; 143 case 5: 144 { 145 if(($ai = $runtime.getAttributeIndex("","base"))>=0) { 146 $runtime.consumeAttribute($ai); 147 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 148 } 149 else { 150 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { 151 NGCCHandler h = new simpleType(this, super._source, $runtime, 158); 152 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 153 } 154 else { 155 unexpectedEnterElement($__qname); 156 } 157 } 158 } 159 break; 160 case 1: 161 { 162 if((((((((((((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minExclusive")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxExclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("totalDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("fractionDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("length"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("enumeration"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("whiteSpace"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("pattern")))) { 163 NGCCHandler h = new facet(this, super._source, $runtime, 153); 164 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 165 } 166 else { 167 unexpectedEnterElement($__qname); 168 } 169 } 170 break; 171 case 2: 172 { 173 if((((((((((((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minExclusive")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxExclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("totalDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("fractionDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("length"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("enumeration"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("whiteSpace"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("pattern")))) { 174 NGCCHandler h = new facet(this, super._source, $runtime, 154); 175 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 176 } 177 else { 178 $_ngcc_current_state = 1; 179 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 180 } 181 } 182 break; 183 case 13: 184 { 185 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("restriction"))) { 186 $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); 187 action3(); 188 $_ngcc_current_state = 12; 189 } 190 else { 191 unexpectedEnterElement($__qname); 192 } 193 } 194 break; 195 default: 196 { 197 unexpectedEnterElement($__qname); 198 } 199 break; 200 } 201 } 202 203 public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException { 204 int $ai; 205 $uri = $__uri; 206 $localName = $__local; 207 $qname = $__qname; 208 switch($_ngcc_current_state) { 209 case 12: 210 { 211 if((($ai = $runtime.getAttributeIndex("","base"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("restriction")))) { 212 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 166, fa); 213 spawnChildFromLeaveElement(h, $__uri, $__local, $__qname); 214 } 215 else { 216 unexpectedLeaveElement($__qname); 217 } 218 } 219 break; 220 case 10: 221 { 222 $_ngcc_current_state = 5; 223 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 224 } 225 break; 226 case 4: 227 { 228 action1(); 229 $_ngcc_current_state = 2; 230 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 231 } 232 break; 233 case 0: 234 { 235 revertToParentFromLeaveElement(result, super._cookie, $__uri, $__local, $__qname); 236 } 237 break; 238 case 5: 239 { 240 if(($ai = $runtime.getAttributeIndex("","base"))>=0) { 241 $runtime.consumeAttribute($ai); 242 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 243 } 244 else { 245 unexpectedLeaveElement($__qname); 246 } 247 } 248 break; 249 case 1: 250 { 251 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("restriction"))) { 252 $runtime.onLeaveElementConsumed($__uri, $__local, $__qname); 253 $_ngcc_current_state = 0; 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 12: 281 { 282 if(($__uri.equals("") && $__local.equals("base"))) { 283 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 166, fa); 284 spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname); 285 } 286 else { 287 unexpectedEnterAttribute($__qname); 288 } 289 } 290 break; 291 case 10: 292 { 293 $_ngcc_current_state = 5; 294 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 295 } 296 break; 297 case 4: 298 { 299 action1(); 300 $_ngcc_current_state = 2; 301 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 302 } 303 break; 304 case 0: 305 { 306 revertToParentFromEnterAttribute(result, super._cookie, $__uri, $__local, $__qname); 307 } 308 break; 309 case 5: 310 { 311 if(($__uri.equals("") && $__local.equals("base"))) { 312 $_ngcc_current_state = 8; 313 } 314 else { 315 unexpectedEnterAttribute($__qname); 316 } 317 } 318 break; 319 case 2: 320 { 321 $_ngcc_current_state = 1; 322 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 323 } 324 break; 325 default: 326 { 327 unexpectedEnterAttribute($__qname); 328 } 329 break; 330 } 331 } 332 333 public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException { 334 int $ai; 335 $uri = $__uri; 336 $localName = $__local; 337 $qname = $__qname; 338 switch($_ngcc_current_state) { 339 case 7: 340 { 341 if(($__uri.equals("") && $__local.equals("base"))) { 342 $_ngcc_current_state = 4; 343 } 344 else { 345 unexpectedLeaveAttribute($__qname); 346 } 347 } 348 break; 349 case 10: 350 { 351 $_ngcc_current_state = 5; 352 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 353 } 354 break; 355 case 4: 356 { 357 action1(); 358 $_ngcc_current_state = 2; 359 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 360 } 361 break; 362 case 0: 363 { 364 revertToParentFromLeaveAttribute(result, super._cookie, $__uri, $__local, $__qname); 365 } 366 break; 367 case 2: 368 { 369 $_ngcc_current_state = 1; 370 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 371 } 372 break; 373 default: 374 { 375 unexpectedLeaveAttribute($__qname); 376 } 377 break; 378 } 379 } 380 381 public void text(String $value) throws SAXException { 382 int $ai; 383 switch($_ngcc_current_state) { 384 case 8: 385 { 386 NGCCHandler h = new qname(this, super._source, $runtime, 160); 387 spawnChildFromText(h, $value); 388 } 389 break; 390 case 12: 391 { 392 if(($ai = $runtime.getAttributeIndex("","base"))>=0) { 393 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 166, fa); 394 spawnChildFromText(h, $value); 395 } 396 } 397 break; 398 case 10: 399 { 400 $_ngcc_current_state = 5; 401 $runtime.sendText(super._cookie, $value); 402 } 403 break; 404 case 4: 405 { 406 action1(); 407 $_ngcc_current_state = 2; 408 $runtime.sendText(super._cookie, $value); 409 } 410 break; 411 case 0: 412 { 413 revertToParentFromText(result, super._cookie, $value); 414 } 415 break; 416 case 5: 417 { 418 if(($ai = $runtime.getAttributeIndex("","base"))>=0) { 419 $runtime.consumeAttribute($ai); 420 $runtime.sendText(super._cookie, $value); 421 } 422 } 423 break; 424 case 2: 425 { 426 $_ngcc_current_state = 1; 427 $runtime.sendText(super._cookie, $value); 428 } 429 break; 430 } 431 } 432 433 public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException { 434 switch($__cookie__) { 435 case 160: 436 { 437 baseTypeName = ((UName)$__result__); 438 action2(); 439 $_ngcc_current_state = 7; 440 } 441 break; 442 case 164: 443 { 444 annotation = ((AnnotationImpl)$__result__); 445 $_ngcc_current_state = 5; 446 } 447 break; 448 case 154: 449 { 450 facet = ((XSFacet)$__result__); 451 action0(); 452 $_ngcc_current_state = 1; 453 } 454 break; 455 case 166: 456 { 457 fa = ((ForeignAttributesImpl)$__result__); 458 $_ngcc_current_state = 10; 459 } 460 break; 461 case 158: 462 { 463 baseType = ((SimpleTypeImpl)$__result__); 464 $_ngcc_current_state = 4; 465 } 466 break; 467 case 153: 468 { 469 facet = ((XSFacet)$__result__); 470 action0(); 471 $_ngcc_current_state = 1; 472 } 473 break; 474 } 475 } 476 477 public boolean accepted() { 478 return(($_ngcc_current_state == 0)); 479 } 480 481 482 /** computed simple type object */ 483 private RestrictionSimpleTypeImpl result; 484 485 // reference to the base type 486 private Ref.SimpleType baseType; 487 |