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