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 group extends NGCCHandler {
46 private AnnotationImpl annotation;
47 private String name;
48 private ModelGroupImpl term;
49 private ForeignAttributesImpl fa;
50 protected final NGCCRuntimeEx $runtime;
51 private int $_ngcc_current_state;
52 protected String $uri;
53 protected String $localName;
54 protected String $qname;
55
56 public final NGCCRuntime getRuntime() {
57 return($runtime);
58 }
59
60 public group(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
61 super(source, parent, cookie);
386 }
387 else {
388 $_ngcc_current_state = 10;
389 $runtime.sendText(super._cookie, $value);
390 }
391 }
392 break;
393 case 6:
394 {
395 $_ngcc_current_state = 5;
396 $runtime.sendText(super._cookie, $value);
397 }
398 break;
399 case 0:
400 {
401 revertToParentFromText(result, super._cookie, $value);
402 }
403 break;
404 case 9:
405 {
406 name = $value;
407 $_ngcc_current_state = 8;
408 }
409 break;
410 case 13:
411 {
412 $_ngcc_current_state = 12;
413 }
414 break;
415 }
416 }
417
418 public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
419 switch($__cookie__) {
420 case 357:
421 {
422 fa = ((ForeignAttributesImpl)$__result__);
423 action1();
424 $_ngcc_current_state = 4;
425 }
426 break;
|
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 group extends NGCCHandler {
40 private AnnotationImpl annotation;
41 private String name;
42 private ModelGroupImpl term;
43 private ForeignAttributesImpl fa;
44 protected final NGCCRuntimeEx $runtime;
45 private int $_ngcc_current_state;
46 protected String $uri;
47 protected String $localName;
48 protected String $qname;
49
50 public final NGCCRuntime getRuntime() {
51 return($runtime);
52 }
53
54 public group(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
55 super(source, parent, cookie);
380 }
381 else {
382 $_ngcc_current_state = 10;
383 $runtime.sendText(super._cookie, $value);
384 }
385 }
386 break;
387 case 6:
388 {
389 $_ngcc_current_state = 5;
390 $runtime.sendText(super._cookie, $value);
391 }
392 break;
393 case 0:
394 {
395 revertToParentFromText(result, super._cookie, $value);
396 }
397 break;
398 case 9:
399 {
400 name = $runtime.collapse($value);
401 $_ngcc_current_state = 8;
402 }
403 break;
404 case 13:
405 {
406 $_ngcc_current_state = 12;
407 }
408 break;
409 }
410 }
411
412 public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
413 switch($__cookie__) {
414 case 357:
415 {
416 fa = ((ForeignAttributesImpl)$__result__);
417 action1();
418 $_ngcc_current_state = 4;
419 }
420 break;
|