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.xsom.impl.*;
30 import com.sun.xml.internal.xsom.impl.parser.NGCCRuntimeEx;
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 attributeGroupDecl extends NGCCHandler {
40 private AnnotationImpl annotation;
41 private String name;
42 private ForeignAttributesImpl fa;
43 protected final NGCCRuntimeEx $runtime;
44 private int $_ngcc_current_state;
45 protected String $uri;
46 protected String $localName;
47 protected String $qname;
48
49 public final NGCCRuntime getRuntime() {
50 return($runtime);
51 }
52
53 public attributeGroupDecl(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
54 super(source, parent, cookie);
55 $runtime = runtime;
378 break;
379 case 0:
380 {
381 revertToParentFromText(result, super._cookie, $value);
382 }
383 break;
384 case 7:
385 {
386 if(($ai = $runtime.getAttributeIndex("","id"))>=0) {
387 $runtime.consumeAttribute($ai);
388 $runtime.sendText(super._cookie, $value);
389 }
390 else {
391 $_ngcc_current_state = 6;
392 $runtime.sendText(super._cookie, $value);
393 }
394 }
395 break;
396 case 12:
397 {
398 name = $runtime.collapse($value);
399 $_ngcc_current_state = 11;
400 }
401 break;
402 case 9:
403 {
404 $_ngcc_current_state = 8;
405 }
406 break;
407 case 3:
408 {
409 action0();
410 $_ngcc_current_state = 2;
411 $runtime.sendText(super._cookie, $value);
412 }
413 break;
414 case 4:
415 {
416 $_ngcc_current_state = 3;
417 $runtime.sendText(super._cookie, $value);
418 }
|