< prev index next >

jaxws/src/jdk.xml.bind/share/classes/com/sun/xml/internal/xsom/impl/parser/state/SimpleType_List.java

Print this page


   1 /*
   2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /* this file is generated by RelaxNGCC */
  27 package com.sun.xml.internal.xsom.impl.parser.state;
  28 import org.xml.sax.SAXException;
  29 import org.xml.sax.XMLReader;
  30 import org.xml.sax.Attributes;
  31 import com.sun.xml.internal.xsom.impl.parser.NGCCRuntimeEx;
  32 
  33     import com.sun.xml.internal.xsom.*;
  34     import com.sun.xml.internal.xsom.parser.*;
  35     import com.sun.xml.internal.xsom.impl.*;
  36     import com.sun.xml.internal.xsom.impl.parser.*;
  37     import org.xml.sax.Locator;
  38     import org.xml.sax.ContentHandler;
  39     import org.xml.sax.helpers.*;
  40     import java.util.*;
  41     import java.math.BigInteger;
  42 



  43 
  44 
  45 class SimpleType_List extends NGCCHandler {
  46     private Locator locator;
  47     private AnnotationImpl annotation;
  48     private String name;
  49     private UName itemTypeName;
  50     private Set finalSet;
  51     private ForeignAttributesImpl fa;
  52     protected final NGCCRuntimeEx $runtime;
  53     private int $_ngcc_current_state;
  54     protected String $uri;
  55     protected String $localName;
  56     protected String $qname;
  57 
  58     public final NGCCRuntime getRuntime() {
  59         return($runtime);
  60     }
  61 
  62     public SimpleType_List(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie, AnnotationImpl _annotation, Locator _locator, ForeignAttributesImpl _fa, String _name, Set _finalSet) {


 319             {
 320                 $_ngcc_current_state = 2;
 321                 $runtime.sendText(super._cookie, $value);
 322             }
 323             break;
 324         case 2:
 325             {
 326                 if(($ai = $runtime.getAttributeIndex("","itemType"))>=0) {
 327                     $runtime.consumeAttribute($ai);
 328                     $runtime.sendText(super._cookie, $value);
 329                 }
 330             }
 331             break;
 332         case 0:
 333             {
 334                 revertToParentFromText(result, super._cookie, $value);
 335             }
 336             break;
 337         case 5:
 338             {

 339                 NGCCHandler h = new qname(this, super._source, $runtime, 260);
 340                 spawnChildFromText(h, $value);
 341             }
 342             break;
 343         }
 344     }
 345 
 346     public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
 347         switch($__cookie__) {
 348         case 266:
 349             {
 350                 fa = ((ForeignAttributesImpl)$__result__);
 351                 $_ngcc_current_state = 7;
 352             }
 353             break;
 354         case 264:
 355             {
 356                 annotation = ((AnnotationImpl)$__result__);
 357                 $_ngcc_current_state = 2;
 358             }
 359             break;
 360         case 258:


   1 /*
   2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /* this file is generated by RelaxNGCC */
  27 package com.sun.xml.internal.xsom.impl.parser.state;




  28 
  29 import com.sun.xml.internal.bind.WhiteSpaceProcessor;
  30 import com.sun.xml.internal.xsom.impl.*;
  31 import com.sun.xml.internal.xsom.impl.parser.*;
  32 import com.sun.xml.internal.xsom.parser.*;
  33 import java.util.*;




  34 
  35 import org.xml.sax.Attributes;
  36 import org.xml.sax.Locator;
  37 import org.xml.sax.SAXException;
  38 
  39 
  40 class SimpleType_List extends NGCCHandler {
  41     private Locator locator;
  42     private AnnotationImpl annotation;
  43     private String name;
  44     private UName itemTypeName;
  45     private Set finalSet;
  46     private ForeignAttributesImpl fa;
  47     protected final NGCCRuntimeEx $runtime;
  48     private int $_ngcc_current_state;
  49     protected String $uri;
  50     protected String $localName;
  51     protected String $qname;
  52 
  53     public final NGCCRuntime getRuntime() {
  54         return($runtime);
  55     }
  56 
  57     public SimpleType_List(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie, AnnotationImpl _annotation, Locator _locator, ForeignAttributesImpl _fa, String _name, Set _finalSet) {


 314             {
 315                 $_ngcc_current_state = 2;
 316                 $runtime.sendText(super._cookie, $value);
 317             }
 318             break;
 319         case 2:
 320             {
 321                 if(($ai = $runtime.getAttributeIndex("","itemType"))>=0) {
 322                     $runtime.consumeAttribute($ai);
 323                     $runtime.sendText(super._cookie, $value);
 324                 }
 325             }
 326             break;
 327         case 0:
 328             {
 329                 revertToParentFromText(result, super._cookie, $value);
 330             }
 331             break;
 332         case 5:
 333             {
 334                 // <xs:simpleType> -> <xs:list> with attribute 'itemType' = $value
 335                 NGCCHandler h = new qname(this, super._source, $runtime, 260);
 336                 spawnChildFromText(h, WhiteSpaceProcessor.collapse($value));
 337             }
 338             break;
 339         }
 340     }
 341 
 342     public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
 343         switch($__cookie__) {
 344         case 266:
 345             {
 346                 fa = ((ForeignAttributesImpl)$__result__);
 347                 $_ngcc_current_state = 7;
 348             }
 349             break;
 350         case 264:
 351             {
 352                 annotation = ((AnnotationImpl)$__result__);
 353                 $_ngcc_current_state = 2;
 354             }
 355             break;
 356         case 258:


< prev index next >