< prev index next >

jaxws/src/jdk.xml.bind/share/classes/com/sun/xml/internal/xsom/impl/parser/state/attributeDeclBody.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 attributeDeclBody extends NGCCHandler {
  46     private String name;
  47     private ForeignAttributesImpl fa;
  48     private AnnotationImpl annotation;
  49     private Locator locator;
  50     private boolean isLocal;
  51     private String defaultValue;
  52     private UName typeName;
  53     private String fixedValue;
  54     protected final NGCCRuntimeEx $runtime;
  55     private int $_ngcc_current_state;
  56     protected String $uri;
  57     protected String $localName;
  58     protected String $qname;
  59 
  60     public final NGCCRuntime getRuntime() {
  61         return($runtime);


 441                         NGCCHandler h = new qualification(this, super._source, $runtime, 395);
 442                         spawnChildFromText(h, $value);
 443                     }
 444                 }
 445             }
 446             break;
 447         case 1:
 448             {
 449                 if(($ai = $runtime.getAttributeIndex("","type"))>=0) {
 450                     $runtime.consumeAttribute($ai);
 451                     $runtime.sendText(super._cookie, $value);
 452                 }
 453                 else {
 454                     $_ngcc_current_state = 0;
 455                     $runtime.sendText(super._cookie, $value);
 456                 }
 457             }
 458             break;
 459         case 11:
 460             {
 461                 name = $value;
 462                 $_ngcc_current_state = 10;
 463             }
 464             break;
 465         case 5:
 466             {
 467                 NGCCHandler h = new qname(this, super._source, $runtime, 381);
 468                 spawnChildFromText(h, $value);
 469             }
 470             break;
 471         }
 472     }
 473 
 474     public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
 475         switch($__cookie__) {
 476         case 388:
 477             {
 478                 annotation = ((AnnotationImpl)$__result__);
 479                 $_ngcc_current_state = 1;
 480             }
 481             break;


   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 org.xml.sax.Attributes;
  34 import org.xml.sax.Locator;
  35 import org.xml.sax.SAXException;


  36 
  37 
  38 
  39 class attributeDeclBody extends NGCCHandler {
  40     private String name;
  41     private ForeignAttributesImpl fa;
  42     private AnnotationImpl annotation;
  43     private Locator locator;
  44     private boolean isLocal;
  45     private String defaultValue;
  46     private UName typeName;
  47     private String fixedValue;
  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);


 435                         NGCCHandler h = new qualification(this, super._source, $runtime, 395);
 436                         spawnChildFromText(h, $value);
 437                     }
 438                 }
 439             }
 440             break;
 441         case 1:
 442             {
 443                 if(($ai = $runtime.getAttributeIndex("","type"))>=0) {
 444                     $runtime.consumeAttribute($ai);
 445                     $runtime.sendText(super._cookie, $value);
 446                 }
 447                 else {
 448                     $_ngcc_current_state = 0;
 449                     $runtime.sendText(super._cookie, $value);
 450                 }
 451             }
 452             break;
 453         case 11:
 454             {
 455                 name = $runtime.collapse($value);
 456                 $_ngcc_current_state = 10;
 457             }
 458             break;
 459         case 5:
 460             {
 461                 NGCCHandler h = new qname(this, super._source, $runtime, 381);
 462                 spawnChildFromText(h, $value);
 463             }
 464             break;
 465         }
 466     }
 467 
 468     public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
 469         switch($__cookie__) {
 470         case 388:
 471             {
 472                 annotation = ((AnnotationImpl)$__result__);
 473                 $_ngcc_current_state = 1;
 474             }
 475             break;


< prev index next >