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

Print this page




  59         $runtime = runtime;
  60         this.owner = _owner;
  61         $_ngcc_current_state = 2;
  62     }
  63 
  64     public complexType_complexContent_body(NGCCRuntimeEx runtime, AttributesHolder _owner) {
  65         this(null, runtime, runtime, -1, _owner);
  66     }
  67 
  68     private void action0()throws SAXException {
  69         if(particle==null)
  70           particle = $runtime.parser.schemaSet.empty;
  71 }
  72 
  73     public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException {
  74         int $ai;
  75         $uri = $__uri;
  76         $localName = $__local;
  77         $qname = $__qname;
  78         switch($_ngcc_current_state) {
  79         case 0:
  80             {
  81                 revertToParentFromEnterElement(particle, super._cookie, $__uri, $__local, $__qname, $attrs);
  82             }
  83             break;
  84         case 1:
  85             {
  86                 if((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("anyAttribute")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attributeGroup"))))) {
  87                     NGCCHandler h = new attributeUses(this, super._source, $runtime, 674, owner);
  88                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
  89                 }
  90                 else {
  91                     NGCCHandler h = new attributeUses(this, super._source, $runtime, 674, owner);
  92                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
  93                 }
  94             }
  95             break;





  96         case 2:
  97             {
  98                 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")))))) {
  99                     NGCCHandler h = new particle(this, super._source, $runtime, 676);
 100                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
 101                 }
 102                 else {
 103                     $_ngcc_current_state = 1;
 104                     $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
 105                 }
 106             }
 107             break;
 108         default:
 109             {
 110                 unexpectedEnterElement($__qname);
 111             }
 112             break;
 113         }
 114     }
 115 
 116     public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException {
 117         int $ai;
 118         $uri = $__uri;
 119         $localName = $__local;
 120         $qname = $__qname;
 121         switch($_ngcc_current_state) {
 122         case 0:
 123             {
 124                 revertToParentFromLeaveElement(particle, super._cookie, $__uri, $__local, $__qname);

 125             }
 126             break;
 127         case 1:
 128             {
 129                 NGCCHandler h = new attributeUses(this, super._source, $runtime, 674, owner);
 130                 spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
 131             }
 132             break;
 133         case 2:
 134             {
 135                 $_ngcc_current_state = 1;
 136                 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
 137             }
 138             break;
 139         default:
 140             {
 141                 unexpectedLeaveElement($__qname);
 142             }
 143             break;
 144         }
 145     }
 146 
 147     public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
 148         int $ai;
 149         $uri = $__uri;
 150         $localName = $__local;
 151         $qname = $__qname;
 152         switch($_ngcc_current_state) {
 153         case 0:
 154             {
 155                 revertToParentFromEnterAttribute(particle, super._cookie, $__uri, $__local, $__qname);

 156             }
 157             break;
 158         case 1:
 159             {
 160                 NGCCHandler h = new attributeUses(this, super._source, $runtime, 674, owner);
 161                 spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
 162             }
 163             break;
 164         case 2:
 165             {
 166                 $_ngcc_current_state = 1;
 167                 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
 168             }
 169             break;
 170         default:
 171             {
 172                 unexpectedEnterAttribute($__qname);
 173             }
 174             break;
 175         }
 176     }
 177 
 178     public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
 179         int $ai;
 180         $uri = $__uri;
 181         $localName = $__local;
 182         $qname = $__qname;
 183         switch($_ngcc_current_state) {
 184         case 0:
 185             {
 186                 revertToParentFromLeaveAttribute(particle, super._cookie, $__uri, $__local, $__qname);

 187             }
 188             break;
 189         case 1:
 190             {
 191                 NGCCHandler h = new attributeUses(this, super._source, $runtime, 674, owner);
 192                 spawnChildFromLeaveAttribute(h, $__uri, $__local, $__qname);
 193             }
 194             break;
 195         case 2:
 196             {
 197                 $_ngcc_current_state = 1;
 198                 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
 199             }
 200             break;
 201         default:
 202             {
 203                 unexpectedLeaveAttribute($__qname);
 204             }
 205             break;
 206         }
 207     }
 208 
 209     public void text(String $value) throws SAXException {
 210         int $ai;
 211         switch($_ngcc_current_state) {
 212         case 0:
 213             {
 214                 revertToParentFromText(particle, super._cookie, $value);

 215             }
 216             break;
 217         case 1:
 218             {
 219                 NGCCHandler h = new attributeUses(this, super._source, $runtime, 674, owner);
 220                 spawnChildFromText(h, $value);
 221             }
 222             break;
 223         case 2:
 224             {
 225                 $_ngcc_current_state = 1;
 226                 $runtime.sendText(super._cookie, $value);
 227             }
 228             break;
 229         }
 230     }
 231 
 232     public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
 233         switch($__cookie__) {
 234         case 674:
 235             {
 236                 action0();
 237                 $_ngcc_current_state = 0;
 238             }
 239             break;
 240         case 676:
 241             {
 242                 particle = ((ParticleImpl)$__result__);
 243                 $_ngcc_current_state = 1;
 244             }
 245             break;
 246         }
 247     }
 248 
 249     public boolean accepted() {
 250         return(($_ngcc_current_state == 0));
 251     }
 252 
 253 
 254       private ContentTypeImpl particle;
 255 
 256 }


  59         $runtime = runtime;
  60         this.owner = _owner;
  61         $_ngcc_current_state = 2;
  62     }
  63 
  64     public complexType_complexContent_body(NGCCRuntimeEx runtime, AttributesHolder _owner) {
  65         this(null, runtime, runtime, -1, _owner);
  66     }
  67 
  68     private void action0()throws SAXException {
  69         if(particle==null)
  70           particle = $runtime.parser.schemaSet.empty;
  71 }
  72 
  73     public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException {
  74         int $ai;
  75         $uri = $__uri;
  76         $localName = $__local;
  77         $qname = $__qname;
  78         switch($_ngcc_current_state) {





  79         case 1:
  80             {
  81                 if((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attributeGroup")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("anyAttribute")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))))) {
  82                     NGCCHandler h = new attributeUses(this, super._source, $runtime, 1, owner);
  83                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
  84                 }
  85                 else {
  86                     NGCCHandler h = new attributeUses(this, super._source, $runtime, 1, owner);
  87                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
  88                 }
  89             }
  90             break;
  91         case 0:
  92             {
  93                 revertToParentFromEnterElement(particle, super._cookie, $__uri, $__local, $__qname, $attrs);
  94             }
  95             break;
  96         case 2:
  97             {
  98                 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")))))) {
  99                     NGCCHandler h = new particle(this, super._source, $runtime, 3);
 100                     spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
 101                 }
 102                 else {
 103                     $_ngcc_current_state = 1;
 104                     $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
 105                 }
 106             }
 107             break;
 108         default:
 109             {
 110                 unexpectedEnterElement($__qname);
 111             }
 112             break;
 113         }
 114     }
 115 
 116     public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException {
 117         int $ai;
 118         $uri = $__uri;
 119         $localName = $__local;
 120         $qname = $__qname;
 121         switch($_ngcc_current_state) {
 122         case 1:
 123             {
 124                 NGCCHandler h = new attributeUses(this, super._source, $runtime, 1, owner);
 125                 spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
 126             }
 127             break;
 128         case 0:
 129             {
 130                 revertToParentFromLeaveElement(particle, super._cookie, $__uri, $__local, $__qname);

 131             }
 132             break;
 133         case 2:
 134             {
 135                 $_ngcc_current_state = 1;
 136                 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
 137             }
 138             break;
 139         default:
 140             {
 141                 unexpectedLeaveElement($__qname);
 142             }
 143             break;
 144         }
 145     }
 146 
 147     public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
 148         int $ai;
 149         $uri = $__uri;
 150         $localName = $__local;
 151         $qname = $__qname;
 152         switch($_ngcc_current_state) {
 153         case 1:
 154             {
 155                 NGCCHandler h = new attributeUses(this, super._source, $runtime, 1, owner);
 156                 spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
 157             }
 158             break;
 159         case 0:
 160             {
 161                 revertToParentFromEnterAttribute(particle, super._cookie, $__uri, $__local, $__qname);

 162             }
 163             break;
 164         case 2:
 165             {
 166                 $_ngcc_current_state = 1;
 167                 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
 168             }
 169             break;
 170         default:
 171             {
 172                 unexpectedEnterAttribute($__qname);
 173             }
 174             break;
 175         }
 176     }
 177 
 178     public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
 179         int $ai;
 180         $uri = $__uri;
 181         $localName = $__local;
 182         $qname = $__qname;
 183         switch($_ngcc_current_state) {
 184         case 1:
 185             {
 186                 NGCCHandler h = new attributeUses(this, super._source, $runtime, 1, owner);
 187                 spawnChildFromLeaveAttribute(h, $__uri, $__local, $__qname);
 188             }
 189             break;
 190         case 0:
 191             {
 192                 revertToParentFromLeaveAttribute(particle, super._cookie, $__uri, $__local, $__qname);

 193             }
 194             break;
 195         case 2:
 196             {
 197                 $_ngcc_current_state = 1;
 198                 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
 199             }
 200             break;
 201         default:
 202             {
 203                 unexpectedLeaveAttribute($__qname);
 204             }
 205             break;
 206         }
 207     }
 208 
 209     public void text(String $value) throws SAXException {
 210         int $ai;
 211         switch($_ngcc_current_state) {
 212         case 1:
 213             {
 214                 NGCCHandler h = new attributeUses(this, super._source, $runtime, 1, owner);
 215                 spawnChildFromText(h, $value);
 216             }
 217             break;
 218         case 0:
 219             {
 220                 revertToParentFromText(particle, super._cookie, $value);

 221             }
 222             break;
 223         case 2:
 224             {
 225                 $_ngcc_current_state = 1;
 226                 $runtime.sendText(super._cookie, $value);
 227             }
 228             break;
 229         }
 230     }
 231 
 232     public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
 233         switch($__cookie__) {
 234         case 1:
 235             {
 236                 action0();
 237                 $_ngcc_current_state = 0;
 238             }
 239             break;
 240         case 3:
 241             {
 242                 particle = ((ParticleImpl)$__result__);
 243                 $_ngcc_current_state = 1;
 244             }
 245             break;
 246         }
 247     }
 248 
 249     public boolean accepted() {
 250         return(($_ngcc_current_state == 0));
 251     }
 252 
 253 
 254       private ContentTypeImpl particle;
 255 
 256 }