src/share/jaxws_classes/com/sun/tools/internal/jxc/gen/config/Schema.java

changeset 0
373ffda63c9a
child 637
9c07ef4934dd
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/jxc/gen/config/Schema.java	Wed Apr 27 01:27:09 2016 +0800
     1.3 @@ -0,0 +1,331 @@
     1.4 +/*
     1.5 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 + *
     1.8 + * This code is free software; you can redistribute it and/or modify it
     1.9 + * under the terms of the GNU General Public License version 2 only, as
    1.10 + * published by the Free Software Foundation.  Oracle designates this
    1.11 + * particular file as subject to the "Classpath" exception as provided
    1.12 + * by Oracle in the LICENSE file that accompanied this code.
    1.13 + *
    1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
    1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.17 + * version 2 for more details (a copy is included in the LICENSE file that
    1.18 + * accompanied this code).
    1.19 + *
    1.20 + * You should have received a copy of the GNU General Public License version
    1.21 + * 2 along with this work; if not, write to the Free Software Foundation,
    1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.23 + *
    1.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    1.25 + * or visit www.oracle.com if you need additional information or have any
    1.26 + * questions.
    1.27 + */
    1.28 +
    1.29 +/* this file is generated by RelaxNGCC */
    1.30 +package com.sun.tools.internal.jxc.gen.config;
    1.31 +import org.xml.sax.SAXException;
    1.32 +import org.xml.sax.XMLReader;
    1.33 +import org.xml.sax.Attributes;
    1.34 +import com.sun.tools.internal.jxc.NGCCRuntimeEx;
    1.35 +
    1.36 +import java.io.File;
    1.37 +
    1.38 +/**
    1.39 + * <p><b>
    1.40 + *     Auto-generated, do not edit.
    1.41 + * </b></p>
    1.42 + */
    1.43 +public class Schema extends NGCCHandler {
    1.44 +    private File baseDir;
    1.45 +    private String loc;
    1.46 +    protected final NGCCRuntimeEx $runtime;
    1.47 +    private int $_ngcc_current_state;
    1.48 +    protected String $uri;
    1.49 +    protected String $localName;
    1.50 +    protected String $qname;
    1.51 +
    1.52 +    public final NGCCRuntime getRuntime() {
    1.53 +        return($runtime);
    1.54 +    }
    1.55 +
    1.56 +    public Schema(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie, File _baseDir) {
    1.57 +        super(source, parent, cookie);
    1.58 +        $runtime = runtime;
    1.59 +        this.baseDir = _baseDir;
    1.60 +        $_ngcc_current_state = 10;
    1.61 +    }
    1.62 +
    1.63 +    public Schema(NGCCRuntimeEx runtime, File _baseDir) {
    1.64 +        this(null, runtime, runtime, -1, _baseDir);
    1.65 +    }
    1.66 +
    1.67 +    private void action0()throws SAXException {
    1.68 +        location = new File(baseDir,loc);
    1.69 +}
    1.70 +
    1.71 +    public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException {
    1.72 +        int $ai;
    1.73 +        $uri = $__uri;
    1.74 +        $localName = $__local;
    1.75 +        $qname = $__qname;
    1.76 +        switch($_ngcc_current_state) {
    1.77 +        case 0:
    1.78 +            {
    1.79 +                revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs);
    1.80 +            }
    1.81 +            break;
    1.82 +        case 2:
    1.83 +            {
    1.84 +                if(($ai = $runtime.getAttributeIndex("","location"))>=0) {
    1.85 +                    $runtime.consumeAttribute($ai);
    1.86 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
    1.87 +                }
    1.88 +                else {
    1.89 +                    $_ngcc_current_state = 1;
    1.90 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
    1.91 +                }
    1.92 +            }
    1.93 +            break;
    1.94 +        case 6:
    1.95 +            {
    1.96 +                if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
    1.97 +                    $runtime.consumeAttribute($ai);
    1.98 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
    1.99 +                }
   1.100 +                else {
   1.101 +                    $_ngcc_current_state = 2;
   1.102 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.103 +                }
   1.104 +            }
   1.105 +            break;
   1.106 +        case 10:
   1.107 +            {
   1.108 +                if(($__uri.equals("") && $__local.equals("schema"))) {
   1.109 +                    $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
   1.110 +                    $_ngcc_current_state = 6;
   1.111 +                }
   1.112 +                else {
   1.113 +                    unexpectedEnterElement($__qname);
   1.114 +                }
   1.115 +            }
   1.116 +            break;
   1.117 +        default:
   1.118 +            {
   1.119 +                unexpectedEnterElement($__qname);
   1.120 +            }
   1.121 +            break;
   1.122 +        }
   1.123 +    }
   1.124 +
   1.125 +    public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException {
   1.126 +        int $ai;
   1.127 +        $uri = $__uri;
   1.128 +        $localName = $__local;
   1.129 +        $qname = $__qname;
   1.130 +        switch($_ngcc_current_state) {
   1.131 +        case 1:
   1.132 +            {
   1.133 +                if(($__uri.equals("") && $__local.equals("schema"))) {
   1.134 +                    $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
   1.135 +                    $_ngcc_current_state = 0;
   1.136 +                }
   1.137 +                else {
   1.138 +                    unexpectedLeaveElement($__qname);
   1.139 +                }
   1.140 +            }
   1.141 +            break;
   1.142 +        case 0:
   1.143 +            {
   1.144 +                revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
   1.145 +            }
   1.146 +            break;
   1.147 +        case 2:
   1.148 +            {
   1.149 +                if(($ai = $runtime.getAttributeIndex("","location"))>=0) {
   1.150 +                    $runtime.consumeAttribute($ai);
   1.151 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.152 +                }
   1.153 +                else {
   1.154 +                    $_ngcc_current_state = 1;
   1.155 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.156 +                }
   1.157 +            }
   1.158 +            break;
   1.159 +        case 6:
   1.160 +            {
   1.161 +                if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
   1.162 +                    $runtime.consumeAttribute($ai);
   1.163 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.164 +                }
   1.165 +                else {
   1.166 +                    $_ngcc_current_state = 2;
   1.167 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.168 +                }
   1.169 +            }
   1.170 +            break;
   1.171 +        default:
   1.172 +            {
   1.173 +                unexpectedLeaveElement($__qname);
   1.174 +            }
   1.175 +            break;
   1.176 +        }
   1.177 +    }
   1.178 +
   1.179 +    public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
   1.180 +        int $ai;
   1.181 +        $uri = $__uri;
   1.182 +        $localName = $__local;
   1.183 +        $qname = $__qname;
   1.184 +        switch($_ngcc_current_state) {
   1.185 +        case 0:
   1.186 +            {
   1.187 +                revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname);
   1.188 +            }
   1.189 +            break;
   1.190 +        case 2:
   1.191 +            {
   1.192 +                if(($__uri.equals("") && $__local.equals("location"))) {
   1.193 +                    $_ngcc_current_state = 4;
   1.194 +                }
   1.195 +                else {
   1.196 +                    $_ngcc_current_state = 1;
   1.197 +                    $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
   1.198 +                }
   1.199 +            }
   1.200 +            break;
   1.201 +        case 6:
   1.202 +            {
   1.203 +                if(($__uri.equals("") && $__local.equals("namespace"))) {
   1.204 +                    $_ngcc_current_state = 8;
   1.205 +                }
   1.206 +                else {
   1.207 +                    $_ngcc_current_state = 2;
   1.208 +                    $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
   1.209 +                }
   1.210 +            }
   1.211 +            break;
   1.212 +        default:
   1.213 +            {
   1.214 +                unexpectedEnterAttribute($__qname);
   1.215 +            }
   1.216 +            break;
   1.217 +        }
   1.218 +    }
   1.219 +
   1.220 +    public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
   1.221 +        int $ai;
   1.222 +        $uri = $__uri;
   1.223 +        $localName = $__local;
   1.224 +        $qname = $__qname;
   1.225 +        switch($_ngcc_current_state) {
   1.226 +        case 0:
   1.227 +            {
   1.228 +                revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname);
   1.229 +            }
   1.230 +            break;
   1.231 +        case 3:
   1.232 +            {
   1.233 +                if(($__uri.equals("") && $__local.equals("location"))) {
   1.234 +                    $_ngcc_current_state = 1;
   1.235 +                }
   1.236 +                else {
   1.237 +                    unexpectedLeaveAttribute($__qname);
   1.238 +                }
   1.239 +            }
   1.240 +            break;
   1.241 +        case 7:
   1.242 +            {
   1.243 +                if(($__uri.equals("") && $__local.equals("namespace"))) {
   1.244 +                    $_ngcc_current_state = 2;
   1.245 +                }
   1.246 +                else {
   1.247 +                    unexpectedLeaveAttribute($__qname);
   1.248 +                }
   1.249 +            }
   1.250 +            break;
   1.251 +        case 2:
   1.252 +            {
   1.253 +                $_ngcc_current_state = 1;
   1.254 +                $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
   1.255 +            }
   1.256 +            break;
   1.257 +        case 6:
   1.258 +            {
   1.259 +                $_ngcc_current_state = 2;
   1.260 +                $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
   1.261 +            }
   1.262 +            break;
   1.263 +        default:
   1.264 +            {
   1.265 +                unexpectedLeaveAttribute($__qname);
   1.266 +            }
   1.267 +            break;
   1.268 +        }
   1.269 +    }
   1.270 +
   1.271 +    public void text(String $value) throws SAXException {
   1.272 +        int $ai;
   1.273 +        switch($_ngcc_current_state) {
   1.274 +        case 8:
   1.275 +            {
   1.276 +                namespace = $value;
   1.277 +                $_ngcc_current_state = 7;
   1.278 +            }
   1.279 +            break;
   1.280 +        case 4:
   1.281 +            {
   1.282 +                loc = $value;
   1.283 +                $_ngcc_current_state = 3;
   1.284 +                action0();
   1.285 +            }
   1.286 +            break;
   1.287 +        case 0:
   1.288 +            {
   1.289 +                revertToParentFromText(this, super._cookie, $value);
   1.290 +            }
   1.291 +            break;
   1.292 +        case 2:
   1.293 +            {
   1.294 +                if(($ai = $runtime.getAttributeIndex("","location"))>=0) {
   1.295 +                    $runtime.consumeAttribute($ai);
   1.296 +                    $runtime.sendText(super._cookie, $value);
   1.297 +                }
   1.298 +                else {
   1.299 +                    $_ngcc_current_state = 1;
   1.300 +                    $runtime.sendText(super._cookie, $value);
   1.301 +                }
   1.302 +            }
   1.303 +            break;
   1.304 +        case 6:
   1.305 +            {
   1.306 +                if(($ai = $runtime.getAttributeIndex("","namespace"))>=0) {
   1.307 +                    $runtime.consumeAttribute($ai);
   1.308 +                    $runtime.sendText(super._cookie, $value);
   1.309 +                }
   1.310 +                else {
   1.311 +                    $_ngcc_current_state = 2;
   1.312 +                    $runtime.sendText(super._cookie, $value);
   1.313 +                }
   1.314 +            }
   1.315 +            break;
   1.316 +        }
   1.317 +    }
   1.318 +
   1.319 +    public void onChildCompleted(Object result, int cookie, boolean needAttCheck)throws SAXException {
   1.320 +        switch(cookie) {
   1.321 +        }
   1.322 +    }
   1.323 +
   1.324 +    public boolean accepted() {
   1.325 +        return(($_ngcc_current_state == 0));
   1.326 +    }
   1.327 +
   1.328 +
   1.329 +       private File location;
   1.330 +       private String namespace;
   1.331 +       public String getNamespace() { return this.namespace;}
   1.332 +       public File getLocation() { return this.location;}
   1.333 +
   1.334 +}

mercurial