Example #1
0
  private void action4() throws SAXException {

    if ("prohibited".equals(use)) owner.addProhibitedAttribute(attDeclName);
    else
      owner.addAttributeUse(
          attDeclName,
          new AttributeUseImpl(
              $runtime.document,
              annotation,
              locator,
              fa,
              decl,
              $runtime.createXmlString(defaultValue),
              $runtime.createXmlString(fixedValue),
              "required".equals(use)));
  }
 public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
   int $ai;
   $uri = $__uri;
   $localName = $__local;
   $qname = $__qname;
   switch ($_ngcc_current_state) {
     case 0:
       {
         revertToParentFromLeaveAttribute(result, super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 8:
       {
         if (($__uri.equals("") && $__local.equals("memberTypes"))) {
           $_ngcc_current_state = 6;
         } else {
           unexpectedLeaveAttribute($__qname);
         }
       }
       break;
     case 7:
       {
         $_ngcc_current_state = 6;
         $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 4:
       {
         $_ngcc_current_state = 2;
         $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 2:
       {
         $_ngcc_current_state = 1;
         $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     default:
       {
         unexpectedLeaveAttribute($__qname);
       }
       break;
   }
 }
Example #3
0
  private void action7() throws SAXException {

    locator = $runtime.copyLocator();
    use = null;
    defaultValue = null;
    fixedValue = null;
    decl = null;
    annotation = null;
  }
 public void text(String $value) throws SAXException {
   int $ai;
   switch ($_ngcc_current_state) {
     case 0:
       {
         revertToParentFromText(result, super._cookie, $value);
       }
       break;
     case 8:
       {
         NGCCHandler h = new qname(this, super._source, $runtime, 668);
         spawnChildFromText(h, $value);
       }
       break;
     case 10:
       {
         __text = $value;
         $_ngcc_current_state = 9;
         action3();
       }
       break;
     case 9:
       {
         NGCCHandler h = new qname(this, super._source, $runtime, 667);
         spawnChildFromText(h, $value);
       }
       break;
     case 7:
       {
         if (($ai = $runtime.getAttributeIndex("", "memberTypes")) >= 0) {
           $runtime.consumeAttribute($ai);
           $runtime.sendText(super._cookie, $value);
         } else {
           $_ngcc_current_state = 6;
           $runtime.sendText(super._cookie, $value);
         }
       }
       break;
     case 4:
       {
         $_ngcc_current_state = 2;
         $runtime.sendText(super._cookie, $value);
       }
       break;
     case 2:
       {
         $_ngcc_current_state = 1;
         $runtime.sendText(super._cookie, $value);
       }
       break;
   }
 }
 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;
   }
 }
 public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs)
     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("annotation"))
             || ($__uri.equals("http://www.w3.org/2001/XMLSchema")
                 && $__local.equals("simpleType")))) {
           NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 665, fa);
           spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
         } else {
           unexpectedEnterElement($__qname);
         }
       }
       break;
     case 0:
       {
         revertToParentFromEnterElement(result, super._cookie, $__uri, $__local, $__qname, $attrs);
       }
       break;
     case 12:
       {
         if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("union"))) {
           $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
           action4();
           $_ngcc_current_state = 7;
         } else {
           unexpectedEnterElement($__qname);
         }
       }
       break;
     case 1:
       {
         if (($__uri.equals("http://www.w3.org/2001/XMLSchema")
             && $__local.equals("simpleType"))) {
           NGCCHandler h = new simpleType(this, super._source, $runtime, 659);
           spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
         } else {
           unexpectedEnterElement($__qname);
         }
       }
       break;
     case 7:
       {
         if (($ai = $runtime.getAttributeIndex("", "memberTypes")) >= 0) {
           $runtime.consumeAttribute($ai);
           $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
         } else {
           $_ngcc_current_state = 6;
           $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
         }
       }
       break;
     case 4:
       {
         if (($__uri.equals("http://www.w3.org/2001/XMLSchema")
             && $__local.equals("annotation"))) {
           NGCCHandler h =
               new annotation(
                   this,
                   super._source,
                   $runtime,
                   663,
                   annotation,
                   AnnotationContext.SIMPLETYPE_DECL);
           spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
         } else {
           $_ngcc_current_state = 2;
           $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
         }
       }
       break;
     case 2:
       {
         if (($__uri.equals("http://www.w3.org/2001/XMLSchema")
             && $__local.equals("simpleType"))) {
           NGCCHandler h = new simpleType(this, super._source, $runtime, 660);
           spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
         } else {
           $_ngcc_current_state = 1;
           $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
         }
       }
       break;
     default:
       {
         unexpectedEnterElement($__qname);
       }
       break;
   }
 }
 private void action4() throws SAXException {
   uloc = $runtime.copyLocator();
 }
 private void action3() throws SAXException {
   $runtime.processList(__text);
 }
 /**
  * Gets the parser implemented as a ContentHandler.
  *
  * <p>One can feed XML Schema as SAX events to this interface to parse a schema. To parse multiple
  * schema files, feed multiple sets of events.
  *
  * <p>If you don't send a complete event sequence from a startDocument event to an endDocument
  * event, the state of XSOMParser can become unstable. This sometimes happen when you encounter an
  * error while generating SAX events. Don't call the getResult method in that case.
  *
  * <p>This way of reading XML Schema can be useful when XML Schema is not available as a
  * stand-alone XML document. For example, one can feed XML Schema inside a WSDL document.
  */
 public ContentHandler getParserHandler() {
   NGCCRuntimeEx runtime = context.newNGCCRuntime();
   Schema s = new Schema(runtime, false, null);
   runtime.setRootHandler(s);
   return runtime;
 }
Example #10
0
 private void action3() throws SAXException {
   locator = $runtime.copyLocator();
 }
Example #11
0
 public void text(String $value) throws SAXException {
   int $ai;
   switch ($_ngcc_current_state) {
     case 31:
       {
         defaultValue = $value;
         $_ngcc_current_state = 30;
       }
       break;
     case 1:
       {
         $_ngcc_current_state = 0;
         $runtime.sendText(super._cookie, $value);
       }
       break;
     case 8:
       {
         action2();
         $_ngcc_current_state = 7;
         $runtime.sendText(super._cookie, $value);
       }
       break;
     case 3:
       {
         if (($ai = $runtime.getAttributeIndex("", "processContents")) >= 0) {
           NGCCHandler h = new wildcardBody(this, super._source, $runtime, 290, wloc);
           spawnChildFromText(h, $value);
         } else {
           if (($ai = $runtime.getAttributeIndex("", "namespace")) >= 0) {
             NGCCHandler h = new wildcardBody(this, super._source, $runtime, 290, wloc);
             spawnChildFromText(h, $value);
           }
         }
       }
       break;
     case 17:
       {
         if (($ai = $runtime.getAttributeIndex("", "form")) >= 0) {
           NGCCHandler h =
               new attributeDeclBody(
                   this, super._source, $runtime, 315, locator, true, defaultValue, fixedValue);
           spawnChildFromText(h, $value);
         } else {
           if (($ai = $runtime.getAttributeIndex("", "name")) >= 0) {
             NGCCHandler h =
                 new attributeDeclBody(
                     this, super._source, $runtime, 315, locator, true, defaultValue, fixedValue);
             spawnChildFromText(h, $value);
           } else {
             if (($ai = $runtime.getAttributeIndex("", "ref")) >= 0) {
               $runtime.consumeAttribute($ai);
               $runtime.sendText(super._cookie, $value);
             }
           }
         }
       }
       break;
     case 33:
       {
         if (($ai = $runtime.getAttributeIndex("", "use")) >= 0) {
           $runtime.consumeAttribute($ai);
           $runtime.sendText(super._cookie, $value);
         } else {
           $_ngcc_current_state = 29;
           $runtime.sendText(super._cookie, $value);
         }
       }
       break;
     case 25:
       {
         if (($ai = $runtime.getAttributeIndex("", "fixed")) >= 0) {
           $runtime.consumeAttribute($ai);
           $runtime.sendText(super._cookie, $value);
         } else {
           $_ngcc_current_state = 17;
           $runtime.sendText(super._cookie, $value);
         }
       }
       break;
     case 22:
       {
         NGCCHandler h = new qname(this, super._source, $runtime, 311);
         spawnChildFromText(h, $value);
       }
       break;
     case 29:
       {
         if (($ai = $runtime.getAttributeIndex("", "default")) >= 0) {
           $runtime.consumeAttribute($ai);
           $runtime.sendText(super._cookie, $value);
         } else {
           $_ngcc_current_state = 25;
           $runtime.sendText(super._cookie, $value);
         }
       }
       break;
     case 12:
       {
         NGCCHandler h = new qname(this, super._source, $runtime, 300);
         spawnChildFromText(h, $value);
       }
       break;
     case 35:
       {
         use = $value;
         $_ngcc_current_state = 34;
       }
       break;
     case 27:
       {
         fixedValue = $value;
         $_ngcc_current_state = 26;
       }
       break;
     case 9:
       {
         $_ngcc_current_state = 8;
         $runtime.sendText(super._cookie, $value);
       }
       break;
     case 16:
       {
         action4();
         $_ngcc_current_state = 15;
         $runtime.sendText(super._cookie, $value);
       }
       break;
     case 5:
       {
         $_ngcc_current_state = 1;
         $runtime.sendText(super._cookie, $value);
       }
       break;
     case 13:
       {
         if (($ai = $runtime.getAttributeIndex("", "ref")) >= 0) {
           $runtime.consumeAttribute($ai);
           $runtime.sendText(super._cookie, $value);
         }
       }
       break;
     case 19:
       {
         $_ngcc_current_state = 18;
         $runtime.sendText(super._cookie, $value);
       }
       break;
     case 0:
       {
         revertToParentFromText(this, super._cookie, $value);
       }
       break;
   }
 }
Example #12
0
 public void leaveAttribute(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.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 8:
       {
         action2();
         $_ngcc_current_state = 7;
         $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 34:
       {
         if (($__uri.equals("") && $__local.equals("use"))) {
           $_ngcc_current_state = 29;
         } else {
           unexpectedLeaveAttribute($__qname);
         }
       }
       break;
     case 26:
       {
         if (($__uri.equals("") && $__local.equals("fixed"))) {
           $_ngcc_current_state = 17;
         } else {
           unexpectedLeaveAttribute($__qname);
         }
       }
       break;
     case 11:
       {
         if (($__uri.equals("") && $__local.equals("ref"))) {
           $_ngcc_current_state = 9;
         } else {
           unexpectedLeaveAttribute($__qname);
         }
       }
       break;
     case 33:
       {
         $_ngcc_current_state = 29;
         $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 21:
       {
         if (($__uri.equals("") && $__local.equals("ref"))) {
           $_ngcc_current_state = 19;
         } else {
           unexpectedLeaveAttribute($__qname);
         }
       }
       break;
     case 25:
       {
         $_ngcc_current_state = 17;
         $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 30:
       {
         if (($__uri.equals("") && $__local.equals("default"))) {
           $_ngcc_current_state = 25;
         } else {
           unexpectedLeaveAttribute($__qname);
         }
       }
       break;
     case 29:
       {
         $_ngcc_current_state = 25;
         $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 9:
       {
         $_ngcc_current_state = 8;
         $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 16:
       {
         action4();
         $_ngcc_current_state = 15;
         $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 5:
       {
         $_ngcc_current_state = 1;
         $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 19:
       {
         $_ngcc_current_state = 18;
         $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 0:
       {
         revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname);
       }
       break;
     default:
       {
         unexpectedLeaveAttribute($__qname);
       }
       break;
   }
 }
Example #13
0
 public void enterAttribute(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.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 8:
       {
         action2();
         $_ngcc_current_state = 7;
         $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 3:
       {
         if ((($__uri.equals("") && $__local.equals("namespace"))
             || ($__uri.equals("") && $__local.equals("processContents")))) {
           NGCCHandler h = new wildcardBody(this, super._source, $runtime, 290, wloc);
           spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
         } else {
           unexpectedEnterAttribute($__qname);
         }
       }
       break;
     case 17:
       {
         if ((($__uri.equals("") && $__local.equals("name"))
             || ($__uri.equals("") && $__local.equals("form")))) {
           NGCCHandler h =
               new attributeDeclBody(
                   this, super._source, $runtime, 315, locator, true, defaultValue, fixedValue);
           spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
         } else {
           if (($__uri.equals("") && $__local.equals("ref"))) {
             $_ngcc_current_state = 22;
           } else {
             unexpectedEnterAttribute($__qname);
           }
         }
       }
       break;
     case 33:
       {
         if (($__uri.equals("") && $__local.equals("use"))) {
           $_ngcc_current_state = 35;
         } else {
           $_ngcc_current_state = 29;
           $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
         }
       }
       break;
     case 25:
       {
         if (($__uri.equals("") && $__local.equals("fixed"))) {
           $_ngcc_current_state = 27;
         } else {
           $_ngcc_current_state = 17;
           $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
         }
       }
       break;
     case 29:
       {
         if (($__uri.equals("") && $__local.equals("default"))) {
           $_ngcc_current_state = 31;
         } else {
           $_ngcc_current_state = 25;
           $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
         }
       }
       break;
     case 9:
       {
         $_ngcc_current_state = 8;
         $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 16:
       {
         action4();
         $_ngcc_current_state = 15;
         $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 5:
       {
         $_ngcc_current_state = 1;
         $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 13:
       {
         if (($__uri.equals("") && $__local.equals("ref"))) {
           $_ngcc_current_state = 12;
         } else {
           unexpectedEnterAttribute($__qname);
         }
       }
       break;
     case 19:
       {
         $_ngcc_current_state = 18;
         $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
       }
       break;
     case 0:
       {
         revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname);
       }
       break;
     default:
       {
         unexpectedEnterAttribute($__qname);
       }
       break;
   }
 }
Example #14
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;
   }
 }