< prev index next >

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


 366             break;
 367         case 2:
 368             {
 369                 $_ngcc_current_state = 1;
 370                 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
 371             }
 372             break;
 373         default:
 374             {
 375                 unexpectedLeaveAttribute($__qname);
 376             }
 377             break;
 378         }
 379     }
 380 
 381     public void text(String $value) throws SAXException {
 382         int $ai;
 383         switch($_ngcc_current_state) {
 384         case 8:
 385             {

 386                 NGCCHandler h = new qname(this, super._source, $runtime, 160);
 387                 spawnChildFromText(h, $value);
 388             }
 389             break;
 390         case 12:
 391             {
 392                 if(($ai = $runtime.getAttributeIndex("","base"))>=0) {
 393                     NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 166, fa);
 394                     spawnChildFromText(h, $value);
 395                 }
 396             }
 397             break;
 398         case 10:
 399             {
 400                 $_ngcc_current_state = 5;
 401                 $runtime.sendText(super._cookie, $value);
 402             }
 403             break;
 404         case 4:
 405             {
 406                 action1();
 407                 $_ngcc_current_state = 2;


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

  30 import org.xml.sax.Attributes;
  31 import com.sun.xml.internal.xsom.impl.parser.NGCCRuntimeEx;
  32 import com.sun.xml.internal.bind.WhiteSpaceProcessor;
  33 
  34 import com.sun.xml.internal.xsom.*;
  35 import com.sun.xml.internal.xsom.parser.*;
  36 import com.sun.xml.internal.xsom.impl.*;
  37 import com.sun.xml.internal.xsom.impl.parser.*;
  38 import org.xml.sax.Locator;
  39 import java.util.*;



  40 
  41 
  42 
  43 class SimpleType_Restriction extends NGCCHandler {
  44     private Locator locator;
  45     private AnnotationImpl annotation;
  46     private String name;
  47     private UName baseTypeName;
  48     private Set finalSet;
  49     private ForeignAttributesImpl fa;
  50     private XSFacet facet;
  51     protected final NGCCRuntimeEx $runtime;
  52     private int $_ngcc_current_state;
  53     protected String $uri;
  54     protected String $localName;
  55     protected String $qname;
  56 
  57     public final NGCCRuntime getRuntime() {
  58         return($runtime);
  59     }


 364             break;
 365         case 2:
 366             {
 367                 $_ngcc_current_state = 1;
 368                 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
 369             }
 370             break;
 371         default:
 372             {
 373                 unexpectedLeaveAttribute($__qname);
 374             }
 375             break;
 376         }
 377     }
 378 
 379     public void text(String $value) throws SAXException {
 380         int $ai;
 381         switch($_ngcc_current_state) {
 382         case 8:
 383             {
 384                 // <xs:simpleType> -> <xs:restriction> with attribute 'base' = $value
 385                 NGCCHandler h = new qname(this, super._source, $runtime, 160);
 386                 spawnChildFromText(h, WhiteSpaceProcessor.collapse($value));
 387             }
 388             break;
 389         case 12:
 390             {
 391                 if(($ai = $runtime.getAttributeIndex("","base"))>=0) {
 392                     NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 166, fa);
 393                     spawnChildFromText(h, $value);
 394                 }
 395             }
 396             break;
 397         case 10:
 398             {
 399                 $_ngcc_current_state = 5;
 400                 $runtime.sendText(super._cookie, $value);
 401             }
 402             break;
 403         case 4:
 404             {
 405                 action1();
 406                 $_ngcc_current_state = 2;


< prev index next >