< prev index next >

jaxws/src/jdk.xml.bind/share/classes/com/sun/xml/internal/xsom/impl/parser/state/attributeGroupDecl.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 attributeGroupDecl extends NGCCHandler {
  46     private AnnotationImpl annotation;
  47     private String name;
  48     private ForeignAttributesImpl fa;
  49     protected final NGCCRuntimeEx $runtime;
  50     private int $_ngcc_current_state;
  51     protected String $uri;
  52     protected String $localName;
  53     protected String $qname;
  54 
  55     public final NGCCRuntime getRuntime() {
  56         return($runtime);
  57     }
  58 
  59     public attributeGroupDecl(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
  60         super(source, parent, cookie);
  61         $runtime = runtime;


 384             break;
 385         case 0:
 386             {
 387                 revertToParentFromText(result, super._cookie, $value);
 388             }
 389             break;
 390         case 7:
 391             {
 392                 if(($ai = $runtime.getAttributeIndex("","id"))>=0) {
 393                     $runtime.consumeAttribute($ai);
 394                     $runtime.sendText(super._cookie, $value);
 395                 }
 396                 else {
 397                     $_ngcc_current_state = 6;
 398                     $runtime.sendText(super._cookie, $value);
 399                 }
 400             }
 401             break;
 402         case 12:
 403             {
 404                 name = $value;

 405                 $_ngcc_current_state = 11;
 406             }
 407             break;
 408         case 9:
 409             {
 410                 $_ngcc_current_state = 8;
 411             }
 412             break;
 413         case 3:
 414             {
 415                 action0();
 416                 $_ngcc_current_state = 2;
 417                 $runtime.sendText(super._cookie, $value);
 418             }
 419             break;
 420         case 4:
 421             {
 422                 $_ngcc_current_state = 3;
 423                 $runtime.sendText(super._cookie, $value);
 424             }


   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 org.xml.sax.SAXException;

  31 import org.xml.sax.Attributes;
  32 import com.sun.xml.internal.xsom.impl.parser.NGCCRuntimeEx;
  33 
  34 import com.sun.xml.internal.xsom.parser.*;
  35 import com.sun.xml.internal.xsom.impl.*;
  36 import org.xml.sax.Locator;






  37 
  38 
  39 
  40 class attributeGroupDecl extends NGCCHandler {
  41     private AnnotationImpl annotation;
  42     private String name;
  43     private ForeignAttributesImpl fa;
  44     protected final NGCCRuntimeEx $runtime;
  45     private int $_ngcc_current_state;
  46     protected String $uri;
  47     protected String $localName;
  48     protected String $qname;
  49 
  50     public final NGCCRuntime getRuntime() {
  51         return($runtime);
  52     }
  53 
  54     public attributeGroupDecl(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
  55         super(source, parent, cookie);
  56         $runtime = runtime;


 379             break;
 380         case 0:
 381             {
 382                 revertToParentFromText(result, super._cookie, $value);
 383             }
 384             break;
 385         case 7:
 386             {
 387                 if(($ai = $runtime.getAttributeIndex("","id"))>=0) {
 388                     $runtime.consumeAttribute($ai);
 389                     $runtime.sendText(super._cookie, $value);
 390                 }
 391                 else {
 392                     $_ngcc_current_state = 6;
 393                     $runtime.sendText(super._cookie, $value);
 394                 }
 395             }
 396             break;
 397         case 12:
 398             {
 399                 // <xs:attributeGroup> with attribute 'name' = $value
 400                 name = WhiteSpaceProcessor.collapse($value);
 401                 $_ngcc_current_state = 11;
 402             }
 403             break;
 404         case 9:
 405             {
 406                 $_ngcc_current_state = 8;
 407             }
 408             break;
 409         case 3:
 410             {
 411                 action0();
 412                 $_ngcc_current_state = 2;
 413                 $runtime.sendText(super._cookie, $value);
 414             }
 415             break;
 416         case 4:
 417             {
 418                 $_ngcc_current_state = 3;
 419                 $runtime.sendText(super._cookie, $value);
 420             }


< prev index next >