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 elementDeclBody extends NGCCHandler {
46 private Integer finalValue;
47 private String name;
48 private String nillable;
49 private String abstractValue;
50 private Integer blockValue;
51 private ForeignAttributesImpl fa;
52 private AnnotationImpl annotation;
53 private Locator locator;
54 private String defaultValue;
55 private IdentityConstraintImpl idc;
56 private boolean isGlobal;
57 private String fixedValue;
58 private UName typeName;
59 private UName substRef;
60 protected final NGCCRuntimeEx $runtime;
61 private int $_ngcc_current_state;
62 protected String $uri;
796 case 17:
797 {
798 if(($ai = $runtime.getAttributeIndex("","nillable"))>=0) {
799 $runtime.consumeAttribute($ai);
800 $runtime.sendText(super._cookie, $value);
801 }
802 else {
803 $_ngcc_current_state = 13;
804 $runtime.sendText(super._cookie, $value);
805 }
806 }
807 break;
808 case 34:
809 {
810 defaultValue = $value;
811 $_ngcc_current_state = 33;
812 }
813 break;
814 case 22:
815 {
816 name = $value;
817 $_ngcc_current_state = 21;
818 }
819 break;
820 case 28:
821 {
822 if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) {
823 $runtime.consumeAttribute($ai);
824 $runtime.sendText(super._cookie, $value);
825 }
826 else {
827 $_ngcc_current_state = 24;
828 $runtime.sendText(super._cookie, $value);
829 }
830 }
831 break;
832 case 32:
833 {
834 if(($ai = $runtime.getAttributeIndex("","default"))>=0) {
835 $runtime.consumeAttribute($ai);
836 $runtime.sendText(super._cookie, $value);
|
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 import java.util.*;
33
34 import org.xml.sax.Attributes;
35 import org.xml.sax.Locator;
36 import org.xml.sax.SAXException;
37
38
39 class elementDeclBody extends NGCCHandler {
40 private Integer finalValue;
41 private String name;
42 private String nillable;
43 private String abstractValue;
44 private Integer blockValue;
45 private ForeignAttributesImpl fa;
46 private AnnotationImpl annotation;
47 private Locator locator;
48 private String defaultValue;
49 private IdentityConstraintImpl idc;
50 private boolean isGlobal;
51 private String fixedValue;
52 private UName typeName;
53 private UName substRef;
54 protected final NGCCRuntimeEx $runtime;
55 private int $_ngcc_current_state;
56 protected String $uri;
790 case 17:
791 {
792 if(($ai = $runtime.getAttributeIndex("","nillable"))>=0) {
793 $runtime.consumeAttribute($ai);
794 $runtime.sendText(super._cookie, $value);
795 }
796 else {
797 $_ngcc_current_state = 13;
798 $runtime.sendText(super._cookie, $value);
799 }
800 }
801 break;
802 case 34:
803 {
804 defaultValue = $value;
805 $_ngcc_current_state = 33;
806 }
807 break;
808 case 22:
809 {
810 name = $runtime.collapse($value);
811 $_ngcc_current_state = 21;
812 }
813 break;
814 case 28:
815 {
816 if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) {
817 $runtime.consumeAttribute($ai);
818 $runtime.sendText(super._cookie, $value);
819 }
820 else {
821 $_ngcc_current_state = 24;
822 $runtime.sendText(super._cookie, $value);
823 }
824 }
825 break;
826 case 32:
827 {
828 if(($ai = $runtime.getAttributeIndex("","default"))>=0) {
829 $runtime.consumeAttribute($ai);
830 $runtime.sendText(super._cookie, $value);
|