src/share/jaxws_classes/com/sun/xml/internal/ws/resources/StreamingMessages.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/xml/internal/ws/resources/StreamingMessages.java	Wed Apr 27 01:27:09 2016 +0800
     1.3 @@ -0,0 +1,306 @@
     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 +package com.sun.xml.internal.ws.resources;
    1.30 +
    1.31 +import com.sun.istack.internal.localization.Localizable;
    1.32 +import com.sun.istack.internal.localization.LocalizableMessageFactory;
    1.33 +import com.sun.istack.internal.localization.Localizer;
    1.34 +
    1.35 +
    1.36 +/**
    1.37 + * Defines string formatting method for each constant in the resource file
    1.38 + *
    1.39 + */
    1.40 +public final class StreamingMessages {
    1.41 +
    1.42 +    private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("com.sun.xml.internal.ws.resources.streaming");
    1.43 +    private final static Localizer localizer = new Localizer();
    1.44 +
    1.45 +    public static Localizable localizableFASTINFOSET_DECODING_NOT_ACCEPTED() {
    1.46 +        return messageFactory.getMessage("fastinfoset.decodingNotAccepted");
    1.47 +    }
    1.48 +
    1.49 +    /**
    1.50 +     * Fast Infoset decoding is not accepted
    1.51 +     *
    1.52 +     */
    1.53 +    public static String FASTINFOSET_DECODING_NOT_ACCEPTED() {
    1.54 +        return localizer.localize(localizableFASTINFOSET_DECODING_NOT_ACCEPTED());
    1.55 +    }
    1.56 +
    1.57 +    public static Localizable localizableSTAX_CANT_CREATE() {
    1.58 +        return messageFactory.getMessage("stax.cantCreate");
    1.59 +    }
    1.60 +
    1.61 +    /**
    1.62 +     * Unable to create StAX reader or writer
    1.63 +     *
    1.64 +     */
    1.65 +    public static String STAX_CANT_CREATE() {
    1.66 +        return localizer.localize(localizableSTAX_CANT_CREATE());
    1.67 +    }
    1.68 +
    1.69 +    public static Localizable localizableSTREAMING_IO_EXCEPTION(Object arg0) {
    1.70 +        return messageFactory.getMessage("streaming.ioException", arg0);
    1.71 +    }
    1.72 +
    1.73 +    /**
    1.74 +     * XML parsing error: {0}
    1.75 +     *
    1.76 +     */
    1.77 +    public static String STREAMING_IO_EXCEPTION(Object arg0) {
    1.78 +        return localizer.localize(localizableSTREAMING_IO_EXCEPTION(arg0));
    1.79 +    }
    1.80 +
    1.81 +    public static Localizable localizableSOURCEREADER_INVALID_SOURCE(Object arg0) {
    1.82 +        return messageFactory.getMessage("sourcereader.invalidSource", arg0);
    1.83 +    }
    1.84 +
    1.85 +    /**
    1.86 +     * Unable to create reader from source "{0}"
    1.87 +     *
    1.88 +     */
    1.89 +    public static String SOURCEREADER_INVALID_SOURCE(Object arg0) {
    1.90 +        return localizer.localize(localizableSOURCEREADER_INVALID_SOURCE(arg0));
    1.91 +    }
    1.92 +
    1.93 +    public static Localizable localizableXMLREADER_UNEXPECTED_STATE(Object arg0, Object arg1) {
    1.94 +        return messageFactory.getMessage("xmlreader.unexpectedState", arg0, arg1);
    1.95 +    }
    1.96 +
    1.97 +    /**
    1.98 +     * unexpected XML reader state. expected: {0} but found: {1}
    1.99 +     *
   1.100 +     */
   1.101 +    public static String XMLREADER_UNEXPECTED_STATE(Object arg0, Object arg1) {
   1.102 +        return localizer.localize(localizableXMLREADER_UNEXPECTED_STATE(arg0, arg1));
   1.103 +    }
   1.104 +
   1.105 +    public static Localizable localizableWOODSTOX_CANT_LOAD(Object arg0) {
   1.106 +        return messageFactory.getMessage("woodstox.cant.load", arg0);
   1.107 +    }
   1.108 +
   1.109 +    /**
   1.110 +     * Unable to load Woodstox class {0}
   1.111 +     *
   1.112 +     */
   1.113 +    public static String WOODSTOX_CANT_LOAD(Object arg0) {
   1.114 +        return localizer.localize(localizableWOODSTOX_CANT_LOAD(arg0));
   1.115 +    }
   1.116 +
   1.117 +    public static Localizable localizableXMLREADER_IO_EXCEPTION(Object arg0) {
   1.118 +        return messageFactory.getMessage("xmlreader.ioException", arg0);
   1.119 +    }
   1.120 +
   1.121 +    /**
   1.122 +     * XML reader error: {0}
   1.123 +     *
   1.124 +     */
   1.125 +    public static String XMLREADER_IO_EXCEPTION(Object arg0) {
   1.126 +        return localizer.localize(localizableXMLREADER_IO_EXCEPTION(arg0));
   1.127 +    }
   1.128 +
   1.129 +    public static Localizable localizableFASTINFOSET_NO_IMPLEMENTATION() {
   1.130 +        return messageFactory.getMessage("fastinfoset.noImplementation");
   1.131 +    }
   1.132 +
   1.133 +    /**
   1.134 +     * Unable to locate compatible implementation of Fast Infoset in classpath
   1.135 +     *
   1.136 +     */
   1.137 +    public static String FASTINFOSET_NO_IMPLEMENTATION() {
   1.138 +        return localizer.localize(localizableFASTINFOSET_NO_IMPLEMENTATION());
   1.139 +    }
   1.140 +
   1.141 +    public static Localizable localizableINVALID_PROPERTY_VALUE_INTEGER(Object arg0, Object arg1, Object arg2) {
   1.142 +        return messageFactory.getMessage("invalid.property.value.integer", arg0, arg1, arg2);
   1.143 +    }
   1.144 +
   1.145 +    /**
   1.146 +     * Ignoring system property "{0}" as value "{1}" is invalid, property value must be a valid integer. Using default value "{2}".
   1.147 +     *
   1.148 +     */
   1.149 +    public static String INVALID_PROPERTY_VALUE_INTEGER(Object arg0, Object arg1, Object arg2) {
   1.150 +        return localizer.localize(localizableINVALID_PROPERTY_VALUE_INTEGER(arg0, arg1, arg2));
   1.151 +    }
   1.152 +
   1.153 +    public static Localizable localizableXMLWRITER_IO_EXCEPTION(Object arg0) {
   1.154 +        return messageFactory.getMessage("xmlwriter.ioException", arg0);
   1.155 +    }
   1.156 +
   1.157 +    /**
   1.158 +     * XML writer error: {0}
   1.159 +     *
   1.160 +     */
   1.161 +    public static String XMLWRITER_IO_EXCEPTION(Object arg0) {
   1.162 +        return localizer.localize(localizableXMLWRITER_IO_EXCEPTION(arg0));
   1.163 +    }
   1.164 +
   1.165 +    public static Localizable localizableXMLREADER_UNEXPECTED_CHARACTER_CONTENT(Object arg0) {
   1.166 +        return messageFactory.getMessage("xmlreader.unexpectedCharacterContent", arg0);
   1.167 +    }
   1.168 +
   1.169 +    /**
   1.170 +     * XML reader error: unexpected character content: "{0}"
   1.171 +     *
   1.172 +     */
   1.173 +    public static String XMLREADER_UNEXPECTED_CHARACTER_CONTENT(Object arg0) {
   1.174 +        return localizer.localize(localizableXMLREADER_UNEXPECTED_CHARACTER_CONTENT(arg0));
   1.175 +    }
   1.176 +
   1.177 +    public static Localizable localizableSTREAMING_PARSE_EXCEPTION(Object arg0) {
   1.178 +        return messageFactory.getMessage("streaming.parseException", arg0);
   1.179 +    }
   1.180 +
   1.181 +    /**
   1.182 +     * XML parsing error: {0}
   1.183 +     *
   1.184 +     */
   1.185 +    public static String STREAMING_PARSE_EXCEPTION(Object arg0) {
   1.186 +        return localizer.localize(localizableSTREAMING_PARSE_EXCEPTION(arg0));
   1.187 +    }
   1.188 +
   1.189 +    public static Localizable localizableXMLWRITER_NO_PREFIX_FOR_URI(Object arg0) {
   1.190 +        return messageFactory.getMessage("xmlwriter.noPrefixForURI", arg0);
   1.191 +    }
   1.192 +
   1.193 +    /**
   1.194 +     * XML writer error: no prefix for URI: "{0}"
   1.195 +     *
   1.196 +     */
   1.197 +    public static String XMLWRITER_NO_PREFIX_FOR_URI(Object arg0) {
   1.198 +        return localizer.localize(localizableXMLWRITER_NO_PREFIX_FOR_URI(arg0));
   1.199 +    }
   1.200 +
   1.201 +    public static Localizable localizableXMLREADER_NESTED_ERROR(Object arg0) {
   1.202 +        return messageFactory.getMessage("xmlreader.nestedError", arg0);
   1.203 +    }
   1.204 +
   1.205 +    /**
   1.206 +     * XML reader error: {0}
   1.207 +     *
   1.208 +     */
   1.209 +    public static String XMLREADER_NESTED_ERROR(Object arg0) {
   1.210 +        return localizer.localize(localizableXMLREADER_NESTED_ERROR(arg0));
   1.211 +    }
   1.212 +
   1.213 +    public static Localizable localizableINVALID_PROPERTY_VALUE_LONG(Object arg0, Object arg1, Object arg2) {
   1.214 +        return messageFactory.getMessage("invalid.property.value.long", arg0, arg1, arg2);
   1.215 +    }
   1.216 +
   1.217 +    /**
   1.218 +     * Ignoring system property "{0}" as value "{1}" is invalid, property value must be a valid long. Using default value "{2}".
   1.219 +     *
   1.220 +     */
   1.221 +    public static String INVALID_PROPERTY_VALUE_LONG(Object arg0, Object arg1, Object arg2) {
   1.222 +        return localizer.localize(localizableINVALID_PROPERTY_VALUE_LONG(arg0, arg1, arg2));
   1.223 +    }
   1.224 +
   1.225 +    public static Localizable localizableSTAXREADER_XMLSTREAMEXCEPTION(Object arg0) {
   1.226 +        return messageFactory.getMessage("staxreader.xmlstreamexception", arg0);
   1.227 +    }
   1.228 +
   1.229 +    /**
   1.230 +     * XML stream reader exception: {0}
   1.231 +     *
   1.232 +     */
   1.233 +    public static String STAXREADER_XMLSTREAMEXCEPTION(Object arg0) {
   1.234 +        return localizer.localize(localizableSTAXREADER_XMLSTREAMEXCEPTION(arg0));
   1.235 +    }
   1.236 +
   1.237 +    public static Localizable localizableXMLWRITER_NESTED_ERROR(Object arg0) {
   1.238 +        return messageFactory.getMessage("xmlwriter.nestedError", arg0);
   1.239 +    }
   1.240 +
   1.241 +    /**
   1.242 +     * XML writer error: {0}
   1.243 +     *
   1.244 +     */
   1.245 +    public static String XMLWRITER_NESTED_ERROR(Object arg0) {
   1.246 +        return localizer.localize(localizableXMLWRITER_NESTED_ERROR(arg0));
   1.247 +    }
   1.248 +
   1.249 +    public static Localizable localizableXMLREADER_ILLEGAL_STATE_ENCOUNTERED(Object arg0) {
   1.250 +        return messageFactory.getMessage("xmlreader.illegalStateEncountered", arg0);
   1.251 +    }
   1.252 +
   1.253 +    /**
   1.254 +     * XML reader internal error: illegal state ({0})
   1.255 +     *
   1.256 +     */
   1.257 +    public static String XMLREADER_ILLEGAL_STATE_ENCOUNTERED(Object arg0) {
   1.258 +        return localizer.localize(localizableXMLREADER_ILLEGAL_STATE_ENCOUNTERED(arg0));
   1.259 +    }
   1.260 +
   1.261 +    public static Localizable localizableXMLREADER_UNEXPECTED_STATE_TAG(Object arg0, Object arg1) {
   1.262 +        return messageFactory.getMessage("xmlreader.unexpectedState.tag", arg0, arg1);
   1.263 +    }
   1.264 +
   1.265 +    /**
   1.266 +     * unexpected XML tag. expected: {0} but found: {1}
   1.267 +     *
   1.268 +     */
   1.269 +    public static String XMLREADER_UNEXPECTED_STATE_TAG(Object arg0, Object arg1) {
   1.270 +        return localizer.localize(localizableXMLREADER_UNEXPECTED_STATE_TAG(arg0, arg1));
   1.271 +    }
   1.272 +
   1.273 +    public static Localizable localizableXMLREADER_UNEXPECTED_STATE_MESSAGE(Object arg0, Object arg1, Object arg2) {
   1.274 +        return messageFactory.getMessage("xmlreader.unexpectedState.message", arg0, arg1, arg2);
   1.275 +    }
   1.276 +
   1.277 +    /**
   1.278 +     * unexpected XML reader state. expected: {0} but found: {1}. {2}
   1.279 +     *
   1.280 +     */
   1.281 +    public static String XMLREADER_UNEXPECTED_STATE_MESSAGE(Object arg0, Object arg1, Object arg2) {
   1.282 +        return localizer.localize(localizableXMLREADER_UNEXPECTED_STATE_MESSAGE(arg0, arg1, arg2));
   1.283 +    }
   1.284 +
   1.285 +    public static Localizable localizableXMLREADER_PARSE_EXCEPTION(Object arg0) {
   1.286 +        return messageFactory.getMessage("xmlreader.parseException", arg0);
   1.287 +    }
   1.288 +
   1.289 +    /**
   1.290 +     * XML parsing error: {0}
   1.291 +     *
   1.292 +     */
   1.293 +    public static String XMLREADER_PARSE_EXCEPTION(Object arg0) {
   1.294 +        return localizer.localize(localizableXMLREADER_PARSE_EXCEPTION(arg0));
   1.295 +    }
   1.296 +
   1.297 +    public static Localizable localizableXMLRECORDER_RECORDING_ENDED() {
   1.298 +        return messageFactory.getMessage("xmlrecorder.recording.ended");
   1.299 +    }
   1.300 +
   1.301 +    /**
   1.302 +     * no more recorded elements available
   1.303 +     *
   1.304 +     */
   1.305 +    public static String XMLRECORDER_RECORDING_ENDED() {
   1.306 +        return localizer.localize(localizableXMLRECORDER_RECORDING_ENDED());
   1.307 +    }
   1.308 +
   1.309 +}

mercurial