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 identityConstraint extends NGCCHandler {
46 private String name;
47 private UName ref;
48 private ForeignAttributesImpl fa;
49 private AnnotationImpl ann;
50 private XPathImpl field;
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 identityConstraint(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
62 super(source, parent, cookie);
454 $_ngcc_current_state = 8;
455 }
456 else {
457 unexpectedLeaveAttribute($__qname);
458 }
459 }
460 break;
461 default:
462 {
463 unexpectedLeaveAttribute($__qname);
464 }
465 break;
466 }
467 }
468
469 public void text(String $value) throws SAXException {
470 int $ai;
471 switch($_ngcc_current_state) {
472 case 15:
473 {
474 name = $value;
475 $_ngcc_current_state = 14;
476 }
477 break;
478 case 16:
479 {
480 if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
481 $runtime.consumeAttribute($ai);
482 $runtime.sendText(super._cookie, $value);
483 }
484 }
485 break;
486 case 0:
487 {
488 revertToParentFromText(makeResult(), super._cookie, $value);
489 }
490 break;
491 case 12:
492 {
493 NGCCHandler h = new qname(this, super._source, $runtime, 280);
494 spawnChildFromText(h, $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.*;
30 import com.sun.xml.internal.xsom.impl.*;
31 import com.sun.xml.internal.xsom.impl.parser.*;
32 import com.sun.xml.internal.xsom.parser.*;
33 import java.util.*;
34
35 import org.xml.sax.Attributes;
36 import org.xml.sax.SAXException;
37
38
39 class identityConstraint extends NGCCHandler {
40 private String name;
41 private UName ref;
42 private ForeignAttributesImpl fa;
43 private AnnotationImpl ann;
44 private XPathImpl field;
45 protected final NGCCRuntimeEx $runtime;
46 private int $_ngcc_current_state;
47 protected String $uri;
48 protected String $localName;
49 protected String $qname;
50
51 public final NGCCRuntime getRuntime() {
52 return($runtime);
53 }
54
55 public identityConstraint(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
56 super(source, parent, cookie);
448 $_ngcc_current_state = 8;
449 }
450 else {
451 unexpectedLeaveAttribute($__qname);
452 }
453 }
454 break;
455 default:
456 {
457 unexpectedLeaveAttribute($__qname);
458 }
459 break;
460 }
461 }
462
463 public void text(String $value) throws SAXException {
464 int $ai;
465 switch($_ngcc_current_state) {
466 case 15:
467 {
468 name = $runtime.collapse($value);
469 $_ngcc_current_state = 14;
470 }
471 break;
472 case 16:
473 {
474 if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
475 $runtime.consumeAttribute($ai);
476 $runtime.sendText(super._cookie, $value);
477 }
478 }
479 break;
480 case 0:
481 {
482 revertToParentFromText(makeResult(), super._cookie, $value);
483 }
484 break;
485 case 12:
486 {
487 NGCCHandler h = new qname(this, super._source, $runtime, 280);
488 spawnChildFromText(h, $value);
|