Fri, 23 Aug 2013 09:57:21 +0100
8022885: Update JAX-WS RI integration to 2.2.9-b14140
8013016: Rebase 8009009 against the latest jdk8/jaxws
Reviewed-by: alanb, chegar
ohair@286 | 1 | /* |
alanb@368 | 2 | * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
ohair@286 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
ohair@286 | 4 | * |
ohair@286 | 5 | * This code is free software; you can redistribute it and/or modify it |
ohair@286 | 6 | * under the terms of the GNU General Public License version 2 only, as |
ohair@286 | 7 | * published by the Free Software Foundation. Oracle designates this |
ohair@286 | 8 | * particular file as subject to the "Classpath" exception as provided |
ohair@286 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
ohair@286 | 10 | * |
ohair@286 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
ohair@286 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ohair@286 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ohair@286 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
ohair@286 | 15 | * accompanied this code). |
ohair@286 | 16 | * |
ohair@286 | 17 | * You should have received a copy of the GNU General Public License version |
ohair@286 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
ohair@286 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
ohair@286 | 20 | * |
ohair@286 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@286 | 22 | * or visit www.oracle.com if you need additional information or have any |
ohair@286 | 23 | * questions. |
ohair@286 | 24 | */ |
ohair@286 | 25 | |
ohair@286 | 26 | /* this file is generated by RelaxNGCC */ |
ohair@286 | 27 | package com.sun.tools.internal.jxc.gen.config; |
ohair@286 | 28 | import org.xml.sax.SAXException; |
ohair@286 | 29 | import org.xml.sax.XMLReader; |
ohair@286 | 30 | import org.xml.sax.Attributes; |
ohair@286 | 31 | import com.sun.tools.internal.jxc.NGCCRuntimeEx; |
ohair@286 | 32 | import javax.xml.parsers.SAXParserFactory; |
ohair@286 | 33 | import org.xml.sax.XMLReader; |
ohair@286 | 34 | |
ohair@286 | 35 | import java.util.List; |
ohair@286 | 36 | import java.util.ArrayList; |
ohair@286 | 37 | import java.io.File; |
ohair@286 | 38 | |
mkos@397 | 39 | /** |
mkos@397 | 40 | * <p><b> |
mkos@397 | 41 | * Auto-generated, do not edit. |
mkos@397 | 42 | * </b></p> |
mkos@397 | 43 | */ |
ohair@286 | 44 | public class Config extends NGCCHandler { |
ohair@286 | 45 | private String bd; |
ohair@286 | 46 | private Schema _schema; |
ohair@286 | 47 | protected final NGCCRuntimeEx $runtime; |
ohair@286 | 48 | private int $_ngcc_current_state; |
ohair@286 | 49 | protected String $uri; |
ohair@286 | 50 | protected String $localName; |
ohair@286 | 51 | protected String $qname; |
ohair@286 | 52 | |
ohair@286 | 53 | public final NGCCRuntime getRuntime() { |
ohair@286 | 54 | return($runtime); |
ohair@286 | 55 | } |
ohair@286 | 56 | |
ohair@286 | 57 | public Config(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) { |
ohair@286 | 58 | super(source, parent, cookie); |
ohair@286 | 59 | $runtime = runtime; |
ohair@286 | 60 | $_ngcc_current_state = 8; |
ohair@286 | 61 | } |
ohair@286 | 62 | |
ohair@286 | 63 | public Config(NGCCRuntimeEx runtime) { |
ohair@286 | 64 | this(null, runtime, runtime, -1); |
ohair@286 | 65 | } |
ohair@286 | 66 | |
ohair@286 | 67 | private void action0()throws SAXException { |
ohair@286 | 68 | this.schema.add (_schema); |
ohair@286 | 69 | } |
ohair@286 | 70 | |
ohair@286 | 71 | private void action1()throws SAXException { |
ohair@286 | 72 | baseDir = $runtime.getBaseDir(bd); |
ohair@286 | 73 | } |
ohair@286 | 74 | |
ohair@286 | 75 | public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException { |
ohair@286 | 76 | int $ai; |
ohair@286 | 77 | $uri = $__uri; |
ohair@286 | 78 | $localName = $__local; |
ohair@286 | 79 | $qname = $__qname; |
ohair@286 | 80 | switch($_ngcc_current_state) { |
mkos@397 | 81 | case 0: |
mkos@397 | 82 | { |
mkos@397 | 83 | revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs); |
mkos@397 | 84 | } |
mkos@397 | 85 | break; |
mkos@397 | 86 | case 1: |
alanb@368 | 87 | { |
alanb@368 | 88 | if(($__uri.equals("") && $__local.equals("schema"))) { |
mkos@397 | 89 | NGCCHandler h = new Schema(this, super._source, $runtime, 19, baseDir); |
alanb@368 | 90 | spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); |
alanb@368 | 91 | } |
alanb@368 | 92 | else { |
mkos@397 | 93 | unexpectedEnterElement($__qname); |
ohair@286 | 94 | } |
ohair@286 | 95 | } |
ohair@286 | 96 | break; |
alanb@368 | 97 | case 8: |
ohair@286 | 98 | { |
alanb@368 | 99 | if(($__uri.equals("") && $__local.equals("config"))) { |
alanb@368 | 100 | $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); |
alanb@368 | 101 | $_ngcc_current_state = 7; |
ohair@286 | 102 | } |
ohair@286 | 103 | else { |
ohair@286 | 104 | unexpectedEnterElement($__qname); |
ohair@286 | 105 | } |
ohair@286 | 106 | } |
ohair@286 | 107 | break; |
mkos@384 | 108 | case 4: |
ohair@286 | 109 | { |
mkos@384 | 110 | if(($__uri.equals("") && $__local.equals("classes"))) { |
mkos@397 | 111 | NGCCHandler h = new Classes(this, super._source, $runtime, 22); |
ohair@286 | 112 | spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); |
ohair@286 | 113 | } |
ohair@286 | 114 | else { |
mkos@384 | 115 | unexpectedEnterElement($__qname); |
ohair@286 | 116 | } |
ohair@286 | 117 | } |
ohair@286 | 118 | break; |
mkos@397 | 119 | case 2: |
mkos@384 | 120 | { |
mkos@384 | 121 | if(($__uri.equals("") && $__local.equals("schema"))) { |
mkos@397 | 122 | NGCCHandler h = new Schema(this, super._source, $runtime, 20, baseDir); |
ohair@286 | 123 | spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); |
ohair@286 | 124 | } |
ohair@286 | 125 | else { |
mkos@397 | 126 | $_ngcc_current_state = 1; |
mkos@397 | 127 | $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); |
ohair@286 | 128 | } |
ohair@286 | 129 | } |
ohair@286 | 130 | break; |
mkos@384 | 131 | case 7: |
mkos@384 | 132 | { |
mkos@384 | 133 | if(($ai = $runtime.getAttributeIndex("","baseDir"))>=0) { |
mkos@384 | 134 | $runtime.consumeAttribute($ai); |
mkos@384 | 135 | $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); |
mkos@384 | 136 | } |
mkos@384 | 137 | else { |
mkos@384 | 138 | unexpectedEnterElement($__qname); |
mkos@384 | 139 | } |
mkos@384 | 140 | } |
mkos@384 | 141 | break; |
ohair@286 | 142 | default: |
ohair@286 | 143 | { |
ohair@286 | 144 | unexpectedEnterElement($__qname); |
ohair@286 | 145 | } |
ohair@286 | 146 | break; |
ohair@286 | 147 | } |
ohair@286 | 148 | } |
ohair@286 | 149 | |
ohair@286 | 150 | public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException { |
ohair@286 | 151 | int $ai; |
ohair@286 | 152 | $uri = $__uri; |
ohair@286 | 153 | $localName = $__local; |
ohair@286 | 154 | $qname = $__qname; |
ohair@286 | 155 | switch($_ngcc_current_state) { |
mkos@384 | 156 | case 0: |
mkos@384 | 157 | { |
mkos@384 | 158 | revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname); |
mkos@384 | 159 | } |
mkos@384 | 160 | break; |
alanb@368 | 161 | case 1: |
ohair@286 | 162 | { |
alanb@368 | 163 | if(($__uri.equals("") && $__local.equals("config"))) { |
alanb@368 | 164 | $runtime.onLeaveElementConsumed($__uri, $__local, $__qname); |
alanb@368 | 165 | $_ngcc_current_state = 0; |
ohair@286 | 166 | } |
ohair@286 | 167 | else { |
ohair@286 | 168 | unexpectedLeaveElement($__qname); |
ohair@286 | 169 | } |
ohair@286 | 170 | } |
ohair@286 | 171 | break; |
mkos@397 | 172 | case 2: |
mkos@397 | 173 | { |
mkos@397 | 174 | $_ngcc_current_state = 1; |
mkos@397 | 175 | $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); |
mkos@397 | 176 | } |
mkos@397 | 177 | break; |
alanb@368 | 178 | case 7: |
ohair@286 | 179 | { |
alanb@368 | 180 | if(($ai = $runtime.getAttributeIndex("","baseDir"))>=0) { |
alanb@368 | 181 | $runtime.consumeAttribute($ai); |
alanb@368 | 182 | $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 183 | } |
ohair@286 | 184 | else { |
ohair@286 | 185 | unexpectedLeaveElement($__qname); |
ohair@286 | 186 | } |
ohair@286 | 187 | } |
ohair@286 | 188 | break; |
ohair@286 | 189 | default: |
ohair@286 | 190 | { |
ohair@286 | 191 | unexpectedLeaveElement($__qname); |
ohair@286 | 192 | } |
ohair@286 | 193 | break; |
ohair@286 | 194 | } |
ohair@286 | 195 | } |
ohair@286 | 196 | |
ohair@286 | 197 | public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException { |
ohair@286 | 198 | int $ai; |
ohair@286 | 199 | $uri = $__uri; |
ohair@286 | 200 | $localName = $__local; |
ohair@286 | 201 | $qname = $__qname; |
ohair@286 | 202 | switch($_ngcc_current_state) { |
mkos@397 | 203 | case 0: |
mkos@397 | 204 | { |
mkos@397 | 205 | revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname); |
mkos@397 | 206 | } |
mkos@397 | 207 | break; |
mkos@384 | 208 | case 2: |
mkos@384 | 209 | { |
mkos@384 | 210 | $_ngcc_current_state = 1; |
mkos@384 | 211 | $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); |
mkos@384 | 212 | } |
mkos@384 | 213 | break; |
ohair@286 | 214 | case 7: |
ohair@286 | 215 | { |
ohair@286 | 216 | if(($__uri.equals("") && $__local.equals("baseDir"))) { |
ohair@286 | 217 | $_ngcc_current_state = 6; |
ohair@286 | 218 | } |
ohair@286 | 219 | else { |
ohair@286 | 220 | unexpectedEnterAttribute($__qname); |
ohair@286 | 221 | } |
ohair@286 | 222 | } |
ohair@286 | 223 | break; |
ohair@286 | 224 | default: |
ohair@286 | 225 | { |
ohair@286 | 226 | unexpectedEnterAttribute($__qname); |
ohair@286 | 227 | } |
ohair@286 | 228 | break; |
ohair@286 | 229 | } |
ohair@286 | 230 | } |
ohair@286 | 231 | |
ohair@286 | 232 | public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException { |
ohair@286 | 233 | int $ai; |
ohair@286 | 234 | $uri = $__uri; |
ohair@286 | 235 | $localName = $__local; |
ohair@286 | 236 | $qname = $__qname; |
ohair@286 | 237 | switch($_ngcc_current_state) { |
mkos@397 | 238 | case 0: |
alanb@368 | 239 | { |
mkos@397 | 240 | revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname); |
alanb@368 | 241 | } |
alanb@368 | 242 | break; |
ohair@286 | 243 | case 5: |
ohair@286 | 244 | { |
ohair@286 | 245 | if(($__uri.equals("") && $__local.equals("baseDir"))) { |
ohair@286 | 246 | $_ngcc_current_state = 4; |
ohair@286 | 247 | } |
ohair@286 | 248 | else { |
ohair@286 | 249 | unexpectedLeaveAttribute($__qname); |
ohair@286 | 250 | } |
ohair@286 | 251 | } |
ohair@286 | 252 | break; |
mkos@397 | 253 | case 2: |
mkos@384 | 254 | { |
mkos@397 | 255 | $_ngcc_current_state = 1; |
mkos@397 | 256 | $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); |
mkos@384 | 257 | } |
mkos@384 | 258 | break; |
ohair@286 | 259 | default: |
ohair@286 | 260 | { |
ohair@286 | 261 | unexpectedLeaveAttribute($__qname); |
ohair@286 | 262 | } |
ohair@286 | 263 | break; |
ohair@286 | 264 | } |
ohair@286 | 265 | } |
ohair@286 | 266 | |
ohair@286 | 267 | public void text(String $value) throws SAXException { |
ohair@286 | 268 | int $ai; |
ohair@286 | 269 | switch($_ngcc_current_state) { |
mkos@397 | 270 | case 0: |
alanb@368 | 271 | { |
mkos@397 | 272 | revertToParentFromText(this, super._cookie, $value); |
alanb@368 | 273 | } |
alanb@368 | 274 | break; |
alanb@368 | 275 | case 6: |
alanb@368 | 276 | { |
alanb@368 | 277 | bd = $value; |
alanb@368 | 278 | $_ngcc_current_state = 5; |
alanb@368 | 279 | action1(); |
alanb@368 | 280 | } |
alanb@368 | 281 | break; |
mkos@397 | 282 | case 2: |
mkos@384 | 283 | { |
mkos@397 | 284 | $_ngcc_current_state = 1; |
mkos@397 | 285 | $runtime.sendText(super._cookie, $value); |
mkos@384 | 286 | } |
mkos@384 | 287 | break; |
ohair@286 | 288 | case 7: |
ohair@286 | 289 | { |
ohair@286 | 290 | if(($ai = $runtime.getAttributeIndex("","baseDir"))>=0) { |
ohair@286 | 291 | $runtime.consumeAttribute($ai); |
ohair@286 | 292 | $runtime.sendText(super._cookie, $value); |
ohair@286 | 293 | } |
ohair@286 | 294 | } |
ohair@286 | 295 | break; |
ohair@286 | 296 | } |
ohair@286 | 297 | } |
ohair@286 | 298 | |
ohair@286 | 299 | public void onChildCompleted(Object result, int cookie, boolean needAttCheck)throws SAXException { |
ohair@286 | 300 | switch(cookie) { |
mkos@397 | 301 | case 19: |
ohair@286 | 302 | { |
ohair@286 | 303 | this._schema = ((Schema)result); |
ohair@286 | 304 | action0(); |
ohair@286 | 305 | $_ngcc_current_state = 1; |
ohair@286 | 306 | } |
ohair@286 | 307 | break; |
mkos@397 | 308 | case 22: |
alanb@368 | 309 | { |
alanb@368 | 310 | this.classes = ((Classes)result); |
alanb@368 | 311 | $_ngcc_current_state = 2; |
alanb@368 | 312 | } |
alanb@368 | 313 | break; |
mkos@397 | 314 | case 20: |
ohair@286 | 315 | { |
ohair@286 | 316 | this._schema = ((Schema)result); |
ohair@286 | 317 | action0(); |
ohair@286 | 318 | $_ngcc_current_state = 1; |
ohair@286 | 319 | } |
ohair@286 | 320 | break; |
ohair@286 | 321 | } |
ohair@286 | 322 | } |
ohair@286 | 323 | |
ohair@286 | 324 | public boolean accepted() { |
ohair@286 | 325 | return(($_ngcc_current_state == 0)); |
ohair@286 | 326 | } |
ohair@286 | 327 | |
ohair@286 | 328 | |
ohair@286 | 329 | private File baseDir; |
ohair@286 | 330 | private Classes classes; |
ohair@286 | 331 | private List schema = new ArrayList(); |
ohair@286 | 332 | public Classes getClasses() { return this.classes;} |
ohair@286 | 333 | public File getBaseDir() { return baseDir;} |
ohair@286 | 334 | public List getSchema() { return this.schema;} |
ohair@286 | 335 | |
ohair@286 | 336 | } |