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 | /* |
ohair@286 | 2 | * Copyright (c) 1997, 2011, 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.xml.internal.xsom.impl.parser.state; |
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.xml.internal.xsom.impl.parser.NGCCRuntimeEx; |
ohair@286 | 32 | |
ohair@286 | 33 | import com.sun.xml.internal.xsom.*; |
ohair@286 | 34 | import com.sun.xml.internal.xsom.parser.*; |
ohair@286 | 35 | import com.sun.xml.internal.xsom.impl.*; |
ohair@286 | 36 | import com.sun.xml.internal.xsom.impl.parser.*; |
ohair@286 | 37 | import org.xml.sax.Locator; |
ohair@286 | 38 | import org.xml.sax.ContentHandler; |
ohair@286 | 39 | import org.xml.sax.helpers.*; |
ohair@286 | 40 | import java.util.*; |
ohair@286 | 41 | import java.math.BigInteger; |
ohair@286 | 42 | |
ohair@286 | 43 | |
ohair@286 | 44 | |
ohair@286 | 45 | class simpleType extends NGCCHandler { |
ohair@286 | 46 | private AnnotationImpl annotation; |
ohair@286 | 47 | private String name; |
ohair@286 | 48 | private ForeignAttributesImpl fa; |
ohair@286 | 49 | private String finalValue; |
ohair@286 | 50 | protected final NGCCRuntimeEx $runtime; |
ohair@286 | 51 | private int $_ngcc_current_state; |
ohair@286 | 52 | protected String $uri; |
ohair@286 | 53 | protected String $localName; |
ohair@286 | 54 | protected String $qname; |
ohair@286 | 55 | |
ohair@286 | 56 | public final NGCCRuntime getRuntime() { |
ohair@286 | 57 | return($runtime); |
ohair@286 | 58 | } |
ohair@286 | 59 | |
ohair@286 | 60 | public simpleType(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) { |
ohair@286 | 61 | super(source, parent, cookie); |
ohair@286 | 62 | $runtime = runtime; |
ohair@286 | 63 | $_ngcc_current_state = 19; |
ohair@286 | 64 | } |
ohair@286 | 65 | |
ohair@286 | 66 | public simpleType(NGCCRuntimeEx runtime) { |
ohair@286 | 67 | this(null, runtime, runtime, -1); |
ohair@286 | 68 | } |
ohair@286 | 69 | |
ohair@286 | 70 | private void action0()throws SAXException { |
ohair@286 | 71 | finalSet = makeFinalSet(finalValue); |
ohair@286 | 72 | } |
ohair@286 | 73 | |
ohair@286 | 74 | private void action1()throws SAXException { |
ohair@286 | 75 | locator=$runtime.copyLocator(); |
ohair@286 | 76 | } |
ohair@286 | 77 | |
ohair@286 | 78 | public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException { |
ohair@286 | 79 | int $ai; |
ohair@286 | 80 | $uri = $__uri; |
ohair@286 | 81 | $localName = $__local; |
ohair@286 | 82 | $qname = $__qname; |
ohair@286 | 83 | switch($_ngcc_current_state) { |
ohair@286 | 84 | case 15: |
ohair@286 | 85 | { |
ohair@286 | 86 | if(($ai = $runtime.getAttributeIndex("","final"))>=0) { |
ohair@286 | 87 | $runtime.consumeAttribute($ai); |
ohair@286 | 88 | $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); |
ohair@286 | 89 | } |
ohair@286 | 90 | else { |
ohair@286 | 91 | $_ngcc_current_state = 11; |
ohair@286 | 92 | $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); |
ohair@286 | 93 | } |
ohair@286 | 94 | } |
ohair@286 | 95 | break; |
ohair@286 | 96 | case 11: |
ohair@286 | 97 | { |
ohair@286 | 98 | if(($ai = $runtime.getAttributeIndex("","name"))>=0) { |
ohair@286 | 99 | $runtime.consumeAttribute($ai); |
ohair@286 | 100 | $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); |
ohair@286 | 101 | } |
ohair@286 | 102 | else { |
ohair@286 | 103 | $_ngcc_current_state = 10; |
ohair@286 | 104 | $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); |
ohair@286 | 105 | } |
ohair@286 | 106 | } |
ohair@286 | 107 | break; |
ohair@286 | 108 | case 19: |
ohair@286 | 109 | { |
ohair@286 | 110 | if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { |
ohair@286 | 111 | $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); |
ohair@286 | 112 | action1(); |
ohair@286 | 113 | $_ngcc_current_state = 15; |
ohair@286 | 114 | } |
ohair@286 | 115 | else { |
ohair@286 | 116 | unexpectedEnterElement($__qname); |
ohair@286 | 117 | } |
ohair@286 | 118 | } |
ohair@286 | 119 | break; |
mkos@397 | 120 | case 8: |
mkos@397 | 121 | { |
mkos@397 | 122 | if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { |
mkos@397 | 123 | NGCCHandler h = new annotation(this, super._source, $runtime, 89, null,AnnotationContext.SIMPLETYPE_DECL); |
mkos@397 | 124 | spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); |
mkos@397 | 125 | } |
mkos@397 | 126 | else { |
mkos@397 | 127 | $_ngcc_current_state = 7; |
mkos@397 | 128 | $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); |
mkos@397 | 129 | } |
mkos@397 | 130 | } |
mkos@397 | 131 | break; |
ohair@286 | 132 | case 10: |
ohair@286 | 133 | { |
mkos@397 | 134 | if((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("restriction")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("union")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("list")))))) { |
mkos@397 | 135 | NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 91, fa); |
ohair@286 | 136 | spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); |
ohair@286 | 137 | } |
ohair@286 | 138 | else { |
ohair@286 | 139 | unexpectedEnterElement($__qname); |
ohair@286 | 140 | } |
ohair@286 | 141 | } |
ohair@286 | 142 | break; |
mkos@397 | 143 | case 7: |
ohair@286 | 144 | { |
mkos@397 | 145 | action0(); |
mkos@397 | 146 | $_ngcc_current_state = 2; |
mkos@397 | 147 | $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); |
mkos@397 | 148 | } |
mkos@397 | 149 | break; |
mkos@397 | 150 | case 0: |
mkos@397 | 151 | { |
mkos@397 | 152 | revertToParentFromEnterElement(result, super._cookie, $__uri, $__local, $__qname, $attrs); |
mkos@397 | 153 | } |
mkos@397 | 154 | break; |
mkos@397 | 155 | case 2: |
mkos@397 | 156 | { |
mkos@397 | 157 | if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("restriction"))) { |
mkos@397 | 158 | NGCCHandler h = new SimpleType_Restriction(this, super._source, $runtime, 85, annotation,locator,fa,name,finalSet); |
ohair@286 | 159 | spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); |
ohair@286 | 160 | } |
ohair@286 | 161 | else { |
mkos@397 | 162 | if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("list"))) { |
mkos@397 | 163 | NGCCHandler h = new SimpleType_List(this, super._source, $runtime, 86, annotation,locator,fa,name,finalSet); |
mkos@397 | 164 | spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); |
mkos@397 | 165 | } |
mkos@397 | 166 | else { |
mkos@397 | 167 | if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("union"))) { |
mkos@397 | 168 | NGCCHandler h = new SimpleType_Union(this, super._source, $runtime, 80, annotation,locator,fa,name,finalSet); |
mkos@397 | 169 | spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); |
mkos@397 | 170 | } |
mkos@397 | 171 | else { |
mkos@397 | 172 | unexpectedEnterElement($__qname); |
mkos@397 | 173 | } |
mkos@397 | 174 | } |
ohair@286 | 175 | } |
ohair@286 | 176 | } |
ohair@286 | 177 | break; |
ohair@286 | 178 | default: |
ohair@286 | 179 | { |
ohair@286 | 180 | unexpectedEnterElement($__qname); |
ohair@286 | 181 | } |
ohair@286 | 182 | break; |
ohair@286 | 183 | } |
ohair@286 | 184 | } |
ohair@286 | 185 | |
ohair@286 | 186 | public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException { |
ohair@286 | 187 | int $ai; |
ohair@286 | 188 | $uri = $__uri; |
ohair@286 | 189 | $localName = $__local; |
ohair@286 | 190 | $qname = $__qname; |
ohair@286 | 191 | switch($_ngcc_current_state) { |
ohair@286 | 192 | case 15: |
ohair@286 | 193 | { |
ohair@286 | 194 | if(($ai = $runtime.getAttributeIndex("","final"))>=0) { |
ohair@286 | 195 | $runtime.consumeAttribute($ai); |
ohair@286 | 196 | $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 197 | } |
ohair@286 | 198 | else { |
ohair@286 | 199 | $_ngcc_current_state = 11; |
ohair@286 | 200 | $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 201 | } |
ohair@286 | 202 | } |
ohair@286 | 203 | break; |
ohair@286 | 204 | case 11: |
ohair@286 | 205 | { |
ohair@286 | 206 | if(($ai = $runtime.getAttributeIndex("","name"))>=0) { |
ohair@286 | 207 | $runtime.consumeAttribute($ai); |
ohair@286 | 208 | $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 209 | } |
ohair@286 | 210 | else { |
ohair@286 | 211 | $_ngcc_current_state = 10; |
ohair@286 | 212 | $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 213 | } |
ohair@286 | 214 | } |
ohair@286 | 215 | break; |
ohair@286 | 216 | case 8: |
ohair@286 | 217 | { |
ohair@286 | 218 | $_ngcc_current_state = 7; |
ohair@286 | 219 | $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 220 | } |
ohair@286 | 221 | break; |
mkos@397 | 222 | case 7: |
mkos@397 | 223 | { |
mkos@397 | 224 | action0(); |
mkos@397 | 225 | $_ngcc_current_state = 2; |
mkos@397 | 226 | $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); |
mkos@397 | 227 | } |
mkos@397 | 228 | break; |
ohair@286 | 229 | case 1: |
ohair@286 | 230 | { |
ohair@286 | 231 | if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { |
ohair@286 | 232 | $runtime.onLeaveElementConsumed($__uri, $__local, $__qname); |
ohair@286 | 233 | $_ngcc_current_state = 0; |
ohair@286 | 234 | } |
ohair@286 | 235 | else { |
ohair@286 | 236 | unexpectedLeaveElement($__qname); |
ohair@286 | 237 | } |
ohair@286 | 238 | } |
ohair@286 | 239 | break; |
mkos@397 | 240 | case 0: |
mkos@397 | 241 | { |
mkos@397 | 242 | revertToParentFromLeaveElement(result, super._cookie, $__uri, $__local, $__qname); |
mkos@397 | 243 | } |
mkos@397 | 244 | break; |
ohair@286 | 245 | default: |
ohair@286 | 246 | { |
ohair@286 | 247 | unexpectedLeaveElement($__qname); |
ohair@286 | 248 | } |
ohair@286 | 249 | break; |
ohair@286 | 250 | } |
ohair@286 | 251 | } |
ohair@286 | 252 | |
ohair@286 | 253 | public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException { |
ohair@286 | 254 | int $ai; |
ohair@286 | 255 | $uri = $__uri; |
ohair@286 | 256 | $localName = $__local; |
ohair@286 | 257 | $qname = $__qname; |
ohair@286 | 258 | switch($_ngcc_current_state) { |
ohair@286 | 259 | case 15: |
ohair@286 | 260 | { |
ohair@286 | 261 | if(($__uri.equals("") && $__local.equals("final"))) { |
ohair@286 | 262 | $_ngcc_current_state = 17; |
ohair@286 | 263 | } |
ohair@286 | 264 | else { |
ohair@286 | 265 | $_ngcc_current_state = 11; |
ohair@286 | 266 | $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 267 | } |
ohair@286 | 268 | } |
ohair@286 | 269 | break; |
ohair@286 | 270 | case 11: |
ohair@286 | 271 | { |
ohair@286 | 272 | if(($__uri.equals("") && $__local.equals("name"))) { |
ohair@286 | 273 | $_ngcc_current_state = 13; |
ohair@286 | 274 | } |
ohair@286 | 275 | else { |
ohair@286 | 276 | $_ngcc_current_state = 10; |
ohair@286 | 277 | $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 278 | } |
ohair@286 | 279 | } |
ohair@286 | 280 | break; |
ohair@286 | 281 | case 8: |
ohair@286 | 282 | { |
ohair@286 | 283 | $_ngcc_current_state = 7; |
ohair@286 | 284 | $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 285 | } |
ohair@286 | 286 | break; |
mkos@397 | 287 | case 7: |
mkos@397 | 288 | { |
mkos@397 | 289 | action0(); |
mkos@397 | 290 | $_ngcc_current_state = 2; |
mkos@397 | 291 | $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); |
mkos@397 | 292 | } |
mkos@397 | 293 | break; |
mkos@397 | 294 | case 0: |
mkos@397 | 295 | { |
mkos@397 | 296 | revertToParentFromEnterAttribute(result, super._cookie, $__uri, $__local, $__qname); |
mkos@397 | 297 | } |
mkos@397 | 298 | break; |
ohair@286 | 299 | default: |
ohair@286 | 300 | { |
ohair@286 | 301 | unexpectedEnterAttribute($__qname); |
ohair@286 | 302 | } |
ohair@286 | 303 | break; |
ohair@286 | 304 | } |
ohair@286 | 305 | } |
ohair@286 | 306 | |
ohair@286 | 307 | public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException { |
ohair@286 | 308 | int $ai; |
ohair@286 | 309 | $uri = $__uri; |
ohair@286 | 310 | $localName = $__local; |
ohair@286 | 311 | $qname = $__qname; |
ohair@286 | 312 | switch($_ngcc_current_state) { |
ohair@286 | 313 | case 15: |
ohair@286 | 314 | { |
ohair@286 | 315 | $_ngcc_current_state = 11; |
ohair@286 | 316 | $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 317 | } |
ohair@286 | 318 | break; |
ohair@286 | 319 | case 11: |
ohair@286 | 320 | { |
ohair@286 | 321 | $_ngcc_current_state = 10; |
ohair@286 | 322 | $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 323 | } |
ohair@286 | 324 | break; |
ohair@286 | 325 | case 8: |
ohair@286 | 326 | { |
ohair@286 | 327 | $_ngcc_current_state = 7; |
ohair@286 | 328 | $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 329 | } |
ohair@286 | 330 | break; |
mkos@397 | 331 | case 7: |
mkos@397 | 332 | { |
mkos@397 | 333 | action0(); |
mkos@397 | 334 | $_ngcc_current_state = 2; |
mkos@397 | 335 | $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); |
mkos@397 | 336 | } |
mkos@397 | 337 | break; |
mkos@397 | 338 | case 12: |
mkos@397 | 339 | { |
mkos@397 | 340 | if(($__uri.equals("") && $__local.equals("name"))) { |
mkos@397 | 341 | $_ngcc_current_state = 10; |
mkos@397 | 342 | } |
mkos@397 | 343 | else { |
mkos@397 | 344 | unexpectedLeaveAttribute($__qname); |
mkos@397 | 345 | } |
mkos@397 | 346 | } |
mkos@397 | 347 | break; |
mkos@397 | 348 | case 16: |
mkos@397 | 349 | { |
mkos@397 | 350 | if(($__uri.equals("") && $__local.equals("final"))) { |
mkos@397 | 351 | $_ngcc_current_state = 11; |
mkos@397 | 352 | } |
mkos@397 | 353 | else { |
mkos@397 | 354 | unexpectedLeaveAttribute($__qname); |
mkos@397 | 355 | } |
mkos@397 | 356 | } |
mkos@397 | 357 | break; |
mkos@397 | 358 | case 0: |
mkos@397 | 359 | { |
mkos@397 | 360 | revertToParentFromLeaveAttribute(result, super._cookie, $__uri, $__local, $__qname); |
mkos@397 | 361 | } |
mkos@397 | 362 | break; |
ohair@286 | 363 | default: |
ohair@286 | 364 | { |
ohair@286 | 365 | unexpectedLeaveAttribute($__qname); |
ohair@286 | 366 | } |
ohair@286 | 367 | break; |
ohair@286 | 368 | } |
ohair@286 | 369 | } |
ohair@286 | 370 | |
ohair@286 | 371 | public void text(String $value) throws SAXException { |
ohair@286 | 372 | int $ai; |
ohair@286 | 373 | switch($_ngcc_current_state) { |
mkos@397 | 374 | case 13: |
ohair@286 | 375 | { |
mkos@397 | 376 | name = $value; |
mkos@397 | 377 | $_ngcc_current_state = 12; |
ohair@286 | 378 | } |
ohair@286 | 379 | break; |
ohair@286 | 380 | case 15: |
ohair@286 | 381 | { |
ohair@286 | 382 | if(($ai = $runtime.getAttributeIndex("","final"))>=0) { |
ohair@286 | 383 | $runtime.consumeAttribute($ai); |
ohair@286 | 384 | $runtime.sendText(super._cookie, $value); |
ohair@286 | 385 | } |
ohair@286 | 386 | else { |
ohair@286 | 387 | $_ngcc_current_state = 11; |
ohair@286 | 388 | $runtime.sendText(super._cookie, $value); |
ohair@286 | 389 | } |
ohair@286 | 390 | } |
ohair@286 | 391 | break; |
ohair@286 | 392 | case 11: |
ohair@286 | 393 | { |
ohair@286 | 394 | if(($ai = $runtime.getAttributeIndex("","name"))>=0) { |
ohair@286 | 395 | $runtime.consumeAttribute($ai); |
ohair@286 | 396 | $runtime.sendText(super._cookie, $value); |
ohair@286 | 397 | } |
ohair@286 | 398 | else { |
ohair@286 | 399 | $_ngcc_current_state = 10; |
ohair@286 | 400 | $runtime.sendText(super._cookie, $value); |
ohair@286 | 401 | } |
ohair@286 | 402 | } |
ohair@286 | 403 | break; |
mkos@397 | 404 | case 8: |
mkos@397 | 405 | { |
mkos@397 | 406 | $_ngcc_current_state = 7; |
mkos@397 | 407 | $runtime.sendText(super._cookie, $value); |
mkos@397 | 408 | } |
mkos@397 | 409 | break; |
mkos@397 | 410 | case 7: |
mkos@397 | 411 | { |
mkos@397 | 412 | action0(); |
mkos@397 | 413 | $_ngcc_current_state = 2; |
mkos@397 | 414 | $runtime.sendText(super._cookie, $value); |
mkos@397 | 415 | } |
mkos@397 | 416 | break; |
ohair@286 | 417 | case 17: |
ohair@286 | 418 | { |
ohair@286 | 419 | finalValue = $value; |
ohair@286 | 420 | $_ngcc_current_state = 16; |
ohair@286 | 421 | } |
ohair@286 | 422 | break; |
mkos@397 | 423 | case 0: |
ohair@286 | 424 | { |
mkos@397 | 425 | revertToParentFromText(result, super._cookie, $value); |
ohair@286 | 426 | } |
ohair@286 | 427 | break; |
ohair@286 | 428 | } |
ohair@286 | 429 | } |
ohair@286 | 430 | |
ohair@286 | 431 | public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException { |
ohair@286 | 432 | switch($__cookie__) { |
mkos@397 | 433 | case 89: |
ohair@286 | 434 | { |
ohair@286 | 435 | annotation = ((AnnotationImpl)$__result__); |
ohair@286 | 436 | $_ngcc_current_state = 7; |
ohair@286 | 437 | } |
ohair@286 | 438 | break; |
mkos@397 | 439 | case 91: |
ohair@286 | 440 | { |
ohair@286 | 441 | fa = ((ForeignAttributesImpl)$__result__); |
ohair@286 | 442 | $_ngcc_current_state = 8; |
ohair@286 | 443 | } |
ohair@286 | 444 | break; |
mkos@397 | 445 | case 85: |
ohair@286 | 446 | { |
ohair@286 | 447 | result = ((RestrictionSimpleTypeImpl)$__result__); |
ohair@286 | 448 | $_ngcc_current_state = 1; |
ohair@286 | 449 | } |
ohair@286 | 450 | break; |
mkos@397 | 451 | case 86: |
ohair@286 | 452 | { |
ohair@286 | 453 | result = ((ListSimpleTypeImpl)$__result__); |
ohair@286 | 454 | $_ngcc_current_state = 1; |
ohair@286 | 455 | } |
ohair@286 | 456 | break; |
mkos@397 | 457 | case 80: |
ohair@286 | 458 | { |
ohair@286 | 459 | result = ((UnionSimpleTypeImpl)$__result__); |
ohair@286 | 460 | $_ngcc_current_state = 1; |
ohair@286 | 461 | } |
ohair@286 | 462 | break; |
ohair@286 | 463 | } |
ohair@286 | 464 | } |
ohair@286 | 465 | |
ohair@286 | 466 | public boolean accepted() { |
ohair@286 | 467 | return(($_ngcc_current_state == 0)); |
ohair@286 | 468 | } |
ohair@286 | 469 | |
ohair@286 | 470 | |
ohair@286 | 471 | /** computed simple type object */ |
ohair@286 | 472 | private SimpleTypeImpl result; |
ohair@286 | 473 | |
ohair@286 | 474 | private Locator locator; |
ohair@286 | 475 | |
ohair@286 | 476 | private Set finalSet; |
ohair@286 | 477 | |
ohair@286 | 478 | private Set makeFinalSet(String finalValue) { |
ohair@286 | 479 | if(finalValue==null) |
ohair@286 | 480 | return Collections.EMPTY_SET; |
ohair@286 | 481 | |
ohair@286 | 482 | Set s = new HashSet(); |
ohair@286 | 483 | StringTokenizer tokens = new StringTokenizer(finalValue); |
ohair@286 | 484 | while(tokens.hasMoreTokens()) { |
ohair@286 | 485 | String token = tokens.nextToken(); |
ohair@286 | 486 | if(token.equals("#all")) { |
ohair@286 | 487 | s.add(XSVariety.ATOMIC); |
ohair@286 | 488 | s.add(XSVariety.UNION); |
ohair@286 | 489 | s.add(XSVariety.LIST); |
ohair@286 | 490 | } |
ohair@286 | 491 | if(token.equals("list")) { |
ohair@286 | 492 | s.add(XSVariety.LIST); |
ohair@286 | 493 | } |
ohair@286 | 494 | if(token.equals("union")) { |
ohair@286 | 495 | s.add(XSVariety.UNION); |
ohair@286 | 496 | } |
ohair@286 | 497 | if(token.equals("restriction")) { |
ohair@286 | 498 | s.add(XSVariety.ATOMIC); |
ohair@286 | 499 | } |
ohair@286 | 500 | } |
ohair@286 | 501 | return s; |
ohair@286 | 502 | } |
ohair@286 | 503 | |
ohair@286 | 504 | } |