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 notation extends NGCCHandler {
46 private String name;
47 private String pub;
48 private ForeignAttributesImpl fa;
49 private String sys;
50 private AnnotationImpl ann;
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 }
60
61 public notation(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
418 else {
419 $_ngcc_current_state = 2;
420 $runtime.sendText(super._cookie, $value);
421 }
422 }
423 break;
424 case 8:
425 {
426 if(($ai = $runtime.getAttributeIndex("","public"))>=0) {
427 $runtime.consumeAttribute($ai);
428 $runtime.sendText(super._cookie, $value);
429 }
430 else {
431 $_ngcc_current_state = 4;
432 $runtime.sendText(super._cookie, $value);
433 }
434 }
435 break;
436 case 13:
437 {
438 name = $value;
439 $_ngcc_current_state = 12;
440 }
441 break;
442 case 6:
443 {
444 sys = $value;
445 $_ngcc_current_state = 5;
446 }
447 break;
448 case 0:
449 {
450 revertToParentFromText(makeResult(), super._cookie, $value);
451 }
452 break;
453 }
454 }
455
456 public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
457 switch($__cookie__) {
458 case 209:
|
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.*;
30 import com.sun.xml.internal.xsom.impl.*;
31 import com.sun.xml.internal.xsom.impl.parser.NGCCRuntimeEx;
32 import com.sun.xml.internal.xsom.parser.*;
33
34 import org.xml.sax.Attributes;
35 import org.xml.sax.Locator;
36 import org.xml.sax.SAXException;
37
38
39
40 class notation extends NGCCHandler {
41 private String name;
42 private String pub;
43 private ForeignAttributesImpl fa;
44 private String sys;
45 private AnnotationImpl ann;
46 protected final NGCCRuntimeEx $runtime;
47 private int $_ngcc_current_state;
48 protected String $uri;
49 protected String $localName;
50 protected String $qname;
51
52 public final NGCCRuntime getRuntime() {
53 return($runtime);
54 }
55
56 public notation(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
413 else {
414 $_ngcc_current_state = 2;
415 $runtime.sendText(super._cookie, $value);
416 }
417 }
418 break;
419 case 8:
420 {
421 if(($ai = $runtime.getAttributeIndex("","public"))>=0) {
422 $runtime.consumeAttribute($ai);
423 $runtime.sendText(super._cookie, $value);
424 }
425 else {
426 $_ngcc_current_state = 4;
427 $runtime.sendText(super._cookie, $value);
428 }
429 }
430 break;
431 case 13:
432 {
433 name = $runtime.collapse($value);
434 $_ngcc_current_state = 12;
435 }
436 break;
437 case 6:
438 {
439 sys = $value;
440 $_ngcc_current_state = 5;
441 }
442 break;
443 case 0:
444 {
445 revertToParentFromText(makeResult(), super._cookie, $value);
446 }
447 break;
448 }
449 }
450
451 public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
452 switch($__cookie__) {
453 case 209:
|