Пример #1
0
 public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException {
   int $ai;
   $uri = $__uri;
   $localName = $__local;
   $qname = $__qname;
   switch ($_ngcc_current_state) {
     case 6:
       {
         if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("union"))) {
           NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 665, fa);
           spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
         } else {
           unexpectedLeaveElement($__qname);
         }
       }
       break;
     case 0:
       {
         revertToParentFromLeaveElement(result, super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 1:
       {
         if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("union"))) {
           $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
           $_ngcc_current_state = 0;
           action0();
         } else {
           unexpectedLeaveElement($__qname);
         }
       }
       break;
     case 7:
       {
         if (($ai = $runtime.getAttributeIndex("", "memberTypes")) >= 0) {
           $runtime.consumeAttribute($ai);
           $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
         } else {
           $_ngcc_current_state = 6;
           $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
         }
       }
       break;
     case 4:
       {
         $_ngcc_current_state = 2;
         $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 2:
       {
         $_ngcc_current_state = 1;
         $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     default:
       {
         unexpectedLeaveElement($__qname);
       }
       break;
   }
 }
Пример #2
0
 public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException {
   int $ai;
   $uri = $__uri;
   $localName = $__local;
   $qname = $__qname;
   switch ($_ngcc_current_state) {
     case 1:
       {
         $_ngcc_current_state = 0;
         $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 2:
       {
         if (($__uri.equals("http://www.w3.org/2001/XMLSchema")
             && $__local.equals("anyAttribute"))) {
           $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
           $_ngcc_current_state = 0;
         } else {
           unexpectedLeaveElement($__qname);
         }
       }
       break;
     case 8:
       {
         action2();
         $_ngcc_current_state = 7;
         $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 3:
       {
         if (((($ai = $runtime.getAttributeIndex("", "namespace")) >= 0
                 && ($__uri.equals("http://www.w3.org/2001/XMLSchema")
                     && $__local.equals("anyAttribute")))
             || ((($ai = $runtime.getAttributeIndex("", "processContents")) >= 0
                     && ($__uri.equals("http://www.w3.org/2001/XMLSchema")
                         && $__local.equals("anyAttribute")))
                 || ($__uri.equals("http://www.w3.org/2001/XMLSchema")
                     && $__local.equals("anyAttribute"))))) {
           NGCCHandler h = new wildcardBody(this, super._source, $runtime, 290, wloc);
           spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
         } else {
           unexpectedLeaveElement($__qname);
         }
       }
       break;
     case 17:
       {
         if (((($ai = $runtime.getAttributeIndex("", "name")) >= 0
                 && ($__uri.equals("http://www.w3.org/2001/XMLSchema")
                     && $__local.equals("attribute")))
             || (($ai = $runtime.getAttributeIndex("", "form")) >= 0
                 && ($__uri.equals("http://www.w3.org/2001/XMLSchema")
                     && $__local.equals("attribute"))))) {
           NGCCHandler h =
               new attributeDeclBody(
                   this, super._source, $runtime, 315, locator, true, defaultValue, fixedValue);
           spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
         } else {
           if (($ai = $runtime.getAttributeIndex("", "ref")) >= 0) {
             $runtime.consumeAttribute($ai);
             $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
           } else {
             unexpectedLeaveElement($__qname);
           }
         }
       }
       break;
     case 33:
       {
         if (($ai = $runtime.getAttributeIndex("", "use")) >= 0) {
           $runtime.consumeAttribute($ai);
           $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
         } else {
           $_ngcc_current_state = 29;
           $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
         }
       }
       break;
     case 15:
       {
         if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))) {
           $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
           $_ngcc_current_state = 1;
         } else {
           unexpectedLeaveElement($__qname);
         }
       }
       break;
     case 25:
       {
         if (($ai = $runtime.getAttributeIndex("", "fixed")) >= 0) {
           $runtime.consumeAttribute($ai);
           $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
         } else {
           $_ngcc_current_state = 17;
           $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
         }
       }
       break;
     case 29:
       {
         if (($ai = $runtime.getAttributeIndex("", "default")) >= 0) {
           $runtime.consumeAttribute($ai);
           $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
         } else {
           $_ngcc_current_state = 25;
           $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
         }
       }
       break;
     case 9:
       {
         $_ngcc_current_state = 8;
         $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 16:
       {
         action4();
         $_ngcc_current_state = 15;
         $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 5:
       {
         $_ngcc_current_state = 1;
         $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 13:
       {
         if (($ai = $runtime.getAttributeIndex("", "ref")) >= 0) {
           $runtime.consumeAttribute($ai);
           $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
         } else {
           unexpectedLeaveElement($__qname);
         }
       }
       break;
     case 7:
       {
         if (($__uri.equals("http://www.w3.org/2001/XMLSchema")
             && $__local.equals("attributeGroup"))) {
           $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
           $_ngcc_current_state = 1;
         } else {
           unexpectedLeaveElement($__qname);
         }
       }
       break;
     case 19:
       {
         $_ngcc_current_state = 18;
         $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 0:
       {
         revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 18:
       {
         if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))) {
           NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 306, null);
           spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
         } else {
           unexpectedLeaveElement($__qname);
         }
       }
       break;
     default:
       {
         unexpectedLeaveElement($__qname);
       }
       break;
   }
 }