< prev index next >

jaxws/src/jdk.xml.bind/share/classes/com/sun/xml/internal/xsom/impl/parser/state/SimpleType_Union.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 import java.util.Vector;



  44 
  45 
  46 class SimpleType_Union extends NGCCHandler {
  47     private Locator locator;
  48     private AnnotationImpl annotation;
  49     private String __text;
  50     private UName memberTypeName;
  51     private String name;
  52     private Set finalSet;
  53     private ForeignAttributesImpl fa;
  54     private SimpleTypeImpl anonymousMemberType;
  55     protected final NGCCRuntimeEx $runtime;
  56     private int $_ngcc_current_state;
  57     protected String $uri;
  58     protected String $localName;
  59     protected String $qname;
  60 
  61     public final NGCCRuntime getRuntime() {
  62         return($runtime);
  63     }


 343             break;
 344         default:
 345             {
 346                 unexpectedLeaveAttribute($__qname);
 347             }
 348             break;
 349         }
 350     }
 351 
 352     public void text(String $value) throws SAXException {
 353         int $ai;
 354         switch($_ngcc_current_state) {
 355         case 4:
 356             {
 357                 $_ngcc_current_state = 2;
 358                 $runtime.sendText(super._cookie, $value);
 359             }
 360             break;
 361         case 9:
 362             {


 363                 NGCCHandler h = new qname(this, super._source, $runtime, 187);
 364                 spawnChildFromText(h, $value);
 365             }
 366             break;
 367         case 10:
 368             {
 369                 __text = $value;
 370                 $_ngcc_current_state = 9;
 371                 action3();
 372             }
 373             break;
 374         case 0:
 375             {
 376                 revertToParentFromText(result, super._cookie, $value);
 377             }
 378             break;
 379         case 7:
 380             {
 381                 if(($ai = $runtime.getAttributeIndex("","memberTypes"))>=0) {
 382                     $runtime.consumeAttribute($ai);
 383                     $runtime.sendText(super._cookie, $value);
 384                 }
 385                 else {
 386                     $_ngcc_current_state = 6;
 387                     $runtime.sendText(super._cookie, $value);
 388                 }
 389             }
 390             break;
 391         case 8:
 392             {


 393                 NGCCHandler h = new qname(this, super._source, $runtime, 188);
 394                 spawnChildFromText(h, $value);
 395             }
 396             break;
 397         case 2:
 398             {
 399                 $_ngcc_current_state = 1;
 400                 $runtime.sendText(super._cookie, $value);
 401             }
 402             break;
 403         }
 404     }
 405 
 406     public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
 407         switch($__cookie__) {
 408         case 183:
 409             {
 410                 annotation = ((AnnotationImpl)$__result__);
 411                 $_ngcc_current_state = 2;
 412             }


   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.xsom.impl.*;
  30 import com.sun.xml.internal.xsom.impl.parser.*;
  31 import com.sun.xml.internal.xsom.parser.*;






  32 
  33 import java.util.*;
  34 import org.xml.sax.Attributes;
  35 import org.xml.sax.Locator;
  36 import org.xml.sax.SAXException;
  37 
  38 
  39 class SimpleType_Union extends NGCCHandler {
  40     private Locator locator;
  41     private AnnotationImpl annotation;
  42     private String __text;
  43     private UName memberTypeName;
  44     private String name;
  45     private Set finalSet;
  46     private ForeignAttributesImpl fa;
  47     private SimpleTypeImpl anonymousMemberType;
  48     protected final NGCCRuntimeEx $runtime;
  49     private int $_ngcc_current_state;
  50     protected String $uri;
  51     protected String $localName;
  52     protected String $qname;
  53 
  54     public final NGCCRuntime getRuntime() {
  55         return($runtime);
  56     }


 336             break;
 337         default:
 338             {
 339                 unexpectedLeaveAttribute($__qname);
 340             }
 341             break;
 342         }
 343     }
 344 
 345     public void text(String $value) throws SAXException {
 346         int $ai;
 347         switch($_ngcc_current_state) {
 348         case 4:
 349             {
 350                 $_ngcc_current_state = 2;
 351                 $runtime.sendText(super._cookie, $value);
 352             }
 353             break;
 354         case 9:
 355             {
 356                 // <xs:simpleType> -> <xs:union> with first type in 'memberTypes' attribute is $value
 357                 // Whitespaces in types list are collapsed and there is no need to handle it here
 358                 NGCCHandler h = new qname(this, super._source, $runtime, 187);
 359                 spawnChildFromText(h, $value);
 360             }
 361             break;
 362         case 10:
 363             {
 364                 __text = $value;
 365                 $_ngcc_current_state = 9;
 366                 action3();
 367             }
 368             break;
 369         case 0:
 370             {
 371                 revertToParentFromText(result, super._cookie, $value);
 372             }
 373             break;
 374         case 7:
 375             {
 376                 if(($ai = $runtime.getAttributeIndex("","memberTypes"))>=0) {
 377                     $runtime.consumeAttribute($ai);
 378                     $runtime.sendText(super._cookie, $value);
 379                 }
 380                 else {
 381                     $_ngcc_current_state = 6;
 382                     $runtime.sendText(super._cookie, $value);
 383                 }
 384             }
 385             break;
 386         case 8:
 387             {
 388                 // <xs:simpleType> -> <xs:union> with additional type in 'memberTypes' attribute is $value
 389                 // Whitespaces in types list are collapsed and there is no need to handle it here
 390                 NGCCHandler h = new qname(this, super._source, $runtime, 188);
 391                 spawnChildFromText(h, $value);
 392             }
 393             break;
 394         case 2:
 395             {
 396                 $_ngcc_current_state = 1;
 397                 $runtime.sendText(super._cookie, $value);
 398             }
 399             break;
 400         }
 401     }
 402 
 403     public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
 404         switch($__cookie__) {
 405         case 183:
 406             {
 407                 annotation = ((AnnotationImpl)$__result__);
 408                 $_ngcc_current_state = 2;
 409             }


< prev index next >