author | mkos |
Sun, 30 Dec 2012 00:00:00 +0100 | |
changeset 22678 | ac1ea46be942 |
parent 12009 | 4abb694f273a |
permissions | -rw-r--r-- |
12009 | 1 |
/* |
22678
ac1ea46be942
8029237: Update copyright year to match last edit in jaxws repository for 2012
mkos
parents:
12009
diff
changeset
|
2 |
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
12009 | 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 foreignAttributes extends NGCCHandler { |
|
46 |
private ForeignAttributesImpl current; |
|
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 foreignAttributes(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie, ForeignAttributesImpl _current) { |
|
58 |
super(source, parent, cookie); |
|
59 |
$runtime = runtime; |
|
60 |
this.current = _current; |
|
61 |
$_ngcc_current_state = 0; |
|
62 |
} |
|
63 |
||
64 |
public foreignAttributes(NGCCRuntimeEx runtime, ForeignAttributesImpl _current) { |
|
65 |
this(null, runtime, runtime, -1, _current); |
|
66 |
} |
|
67 |
||
68 |
public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException { |
|
69 |
int $ai; |
|
70 |
$uri = $__uri; |
|
71 |
$localName = $__local; |
|
72 |
$qname = $__qname; |
|
73 |
switch($_ngcc_current_state) { |
|
74 |
case 0: |
|
75 |
{ |
|
76 |
revertToParentFromEnterElement(makeResult(), super._cookie, $__uri, $__local, $__qname, $attrs); |
|
77 |
} |
|
78 |
break; |
|
79 |
default: |
|
80 |
{ |
|
81 |
unexpectedEnterElement($__qname); |
|
82 |
} |
|
83 |
break; |
|
84 |
} |
|
85 |
} |
|
86 |
||
87 |
public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException { |
|
88 |
int $ai; |
|
89 |
$uri = $__uri; |
|
90 |
$localName = $__local; |
|
91 |
$qname = $__qname; |
|
92 |
switch($_ngcc_current_state) { |
|
93 |
case 0: |
|
94 |
{ |
|
95 |
revertToParentFromLeaveElement(makeResult(), super._cookie, $__uri, $__local, $__qname); |
|
96 |
} |
|
97 |
break; |
|
98 |
default: |
|
99 |
{ |
|
100 |
unexpectedLeaveElement($__qname); |
|
101 |
} |
|
102 |
break; |
|
103 |
} |
|
104 |
} |
|
105 |
||
106 |
public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException { |
|
107 |
int $ai; |
|
108 |
$uri = $__uri; |
|
109 |
$localName = $__local; |
|
110 |
$qname = $__qname; |
|
111 |
switch($_ngcc_current_state) { |
|
112 |
case 0: |
|
113 |
{ |
|
114 |
revertToParentFromEnterAttribute(makeResult(), super._cookie, $__uri, $__local, $__qname); |
|
115 |
} |
|
116 |
break; |
|
117 |
default: |
|
118 |
{ |
|
119 |
unexpectedEnterAttribute($__qname); |
|
120 |
} |
|
121 |
break; |
|
122 |
} |
|
123 |
} |
|
124 |
||
125 |
public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException { |
|
126 |
int $ai; |
|
127 |
$uri = $__uri; |
|
128 |
$localName = $__local; |
|
129 |
$qname = $__qname; |
|
130 |
switch($_ngcc_current_state) { |
|
131 |
case 0: |
|
132 |
{ |
|
133 |
revertToParentFromLeaveAttribute(makeResult(), super._cookie, $__uri, $__local, $__qname); |
|
134 |
} |
|
135 |
break; |
|
136 |
default: |
|
137 |
{ |
|
138 |
unexpectedLeaveAttribute($__qname); |
|
139 |
} |
|
140 |
break; |
|
141 |
} |
|
142 |
} |
|
143 |
||
144 |
public void text(String $value) throws SAXException { |
|
145 |
int $ai; |
|
146 |
switch($_ngcc_current_state) { |
|
147 |
case 0: |
|
148 |
{ |
|
149 |
revertToParentFromText(makeResult(), super._cookie, $value); |
|
150 |
} |
|
151 |
break; |
|
152 |
} |
|
153 |
} |
|
154 |
||
155 |
public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException { |
|
156 |
switch($__cookie__) { |
|
157 |
} |
|
158 |
} |
|
159 |
||
160 |
public boolean accepted() { |
|
161 |
return(($_ngcc_current_state == 0)); |
|
162 |
} |
|
163 |
||
164 |
||
165 |
ForeignAttributesImpl makeResult() { |
|
166 |
return $runtime.parseForeignAttributes(current); |
|
167 |
} |
|
168 |
||
169 |
} |