|
1 /* |
|
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
|
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 package com.sun.xml.internal.ws.resources; |
|
27 |
|
28 import com.sun.istack.internal.localization.Localizable; |
|
29 import com.sun.istack.internal.localization.LocalizableMessageFactory; |
|
30 import com.sun.istack.internal.localization.Localizer; |
|
31 |
|
32 |
|
33 /** |
|
34 * Defines string formatting method for each constant in the resource file |
|
35 * |
|
36 */ |
|
37 public final class StreamingMessages { |
|
38 |
|
39 private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("com.sun.xml.internal.ws.resources.streaming"); |
|
40 private final static Localizer localizer = new Localizer(); |
|
41 |
|
42 public static Localizable localizableFASTINFOSET_DECODING_NOT_ACCEPTED() { |
|
43 return messageFactory.getMessage("fastinfoset.decodingNotAccepted"); |
|
44 } |
|
45 |
|
46 /** |
|
47 * Fast Infoset decoding is not accepted |
|
48 * |
|
49 */ |
|
50 public static String FASTINFOSET_DECODING_NOT_ACCEPTED() { |
|
51 return localizer.localize(localizableFASTINFOSET_DECODING_NOT_ACCEPTED()); |
|
52 } |
|
53 |
|
54 public static Localizable localizableSTAX_CANT_CREATE() { |
|
55 return messageFactory.getMessage("stax.cantCreate"); |
|
56 } |
|
57 |
|
58 /** |
|
59 * Unable to create StAX reader or writer |
|
60 * |
|
61 */ |
|
62 public static String STAX_CANT_CREATE() { |
|
63 return localizer.localize(localizableSTAX_CANT_CREATE()); |
|
64 } |
|
65 |
|
66 public static Localizable localizableSTREAMING_IO_EXCEPTION(Object arg0) { |
|
67 return messageFactory.getMessage("streaming.ioException", arg0); |
|
68 } |
|
69 |
|
70 /** |
|
71 * XML parsing error: {0} |
|
72 * |
|
73 */ |
|
74 public static String STREAMING_IO_EXCEPTION(Object arg0) { |
|
75 return localizer.localize(localizableSTREAMING_IO_EXCEPTION(arg0)); |
|
76 } |
|
77 |
|
78 public static Localizable localizableSOURCEREADER_INVALID_SOURCE(Object arg0) { |
|
79 return messageFactory.getMessage("sourcereader.invalidSource", arg0); |
|
80 } |
|
81 |
|
82 /** |
|
83 * Unable to create reader from source "{0}" |
|
84 * |
|
85 */ |
|
86 public static String SOURCEREADER_INVALID_SOURCE(Object arg0) { |
|
87 return localizer.localize(localizableSOURCEREADER_INVALID_SOURCE(arg0)); |
|
88 } |
|
89 |
|
90 public static Localizable localizableXMLREADER_UNEXPECTED_STATE(Object arg0, Object arg1) { |
|
91 return messageFactory.getMessage("xmlreader.unexpectedState", arg0, arg1); |
|
92 } |
|
93 |
|
94 /** |
|
95 * unexpected XML reader state. expected: {0} but found: {1} |
|
96 * |
|
97 */ |
|
98 public static String XMLREADER_UNEXPECTED_STATE(Object arg0, Object arg1) { |
|
99 return localizer.localize(localizableXMLREADER_UNEXPECTED_STATE(arg0, arg1)); |
|
100 } |
|
101 |
|
102 public static Localizable localizableWOODSTOX_CANT_LOAD(Object arg0) { |
|
103 return messageFactory.getMessage("woodstox.cant.load", arg0); |
|
104 } |
|
105 |
|
106 /** |
|
107 * Unable to load Woodstox class {0} |
|
108 * |
|
109 */ |
|
110 public static String WOODSTOX_CANT_LOAD(Object arg0) { |
|
111 return localizer.localize(localizableWOODSTOX_CANT_LOAD(arg0)); |
|
112 } |
|
113 |
|
114 public static Localizable localizableXMLREADER_IO_EXCEPTION(Object arg0) { |
|
115 return messageFactory.getMessage("xmlreader.ioException", arg0); |
|
116 } |
|
117 |
|
118 /** |
|
119 * XML reader error: {0} |
|
120 * |
|
121 */ |
|
122 public static String XMLREADER_IO_EXCEPTION(Object arg0) { |
|
123 return localizer.localize(localizableXMLREADER_IO_EXCEPTION(arg0)); |
|
124 } |
|
125 |
|
126 public static Localizable localizableFASTINFOSET_NO_IMPLEMENTATION() { |
|
127 return messageFactory.getMessage("fastinfoset.noImplementation"); |
|
128 } |
|
129 |
|
130 /** |
|
131 * Unable to locate compatible implementation of Fast Infoset in classpath |
|
132 * |
|
133 */ |
|
134 public static String FASTINFOSET_NO_IMPLEMENTATION() { |
|
135 return localizer.localize(localizableFASTINFOSET_NO_IMPLEMENTATION()); |
|
136 } |
|
137 |
|
138 public static Localizable localizableINVALID_PROPERTY_VALUE_INTEGER(Object arg0, Object arg1, Object arg2) { |
|
139 return messageFactory.getMessage("invalid.property.value.integer", arg0, arg1, arg2); |
|
140 } |
|
141 |
|
142 /** |
|
143 * Ignoring system property "{0}" as value "{1}" is invalid, property value must be a valid integer. Using default value "{2}". |
|
144 * |
|
145 */ |
|
146 public static String INVALID_PROPERTY_VALUE_INTEGER(Object arg0, Object arg1, Object arg2) { |
|
147 return localizer.localize(localizableINVALID_PROPERTY_VALUE_INTEGER(arg0, arg1, arg2)); |
|
148 } |
|
149 |
|
150 public static Localizable localizableXMLWRITER_IO_EXCEPTION(Object arg0) { |
|
151 return messageFactory.getMessage("xmlwriter.ioException", arg0); |
|
152 } |
|
153 |
|
154 /** |
|
155 * XML writer error: {0} |
|
156 * |
|
157 */ |
|
158 public static String XMLWRITER_IO_EXCEPTION(Object arg0) { |
|
159 return localizer.localize(localizableXMLWRITER_IO_EXCEPTION(arg0)); |
|
160 } |
|
161 |
|
162 public static Localizable localizableXMLREADER_UNEXPECTED_CHARACTER_CONTENT(Object arg0) { |
|
163 return messageFactory.getMessage("xmlreader.unexpectedCharacterContent", arg0); |
|
164 } |
|
165 |
|
166 /** |
|
167 * XML reader error: unexpected character content: "{0}" |
|
168 * |
|
169 */ |
|
170 public static String XMLREADER_UNEXPECTED_CHARACTER_CONTENT(Object arg0) { |
|
171 return localizer.localize(localizableXMLREADER_UNEXPECTED_CHARACTER_CONTENT(arg0)); |
|
172 } |
|
173 |
|
174 public static Localizable localizableSTREAMING_PARSE_EXCEPTION(Object arg0) { |
|
175 return messageFactory.getMessage("streaming.parseException", arg0); |
|
176 } |
|
177 |
|
178 /** |
|
179 * XML parsing error: {0} |
|
180 * |
|
181 */ |
|
182 public static String STREAMING_PARSE_EXCEPTION(Object arg0) { |
|
183 return localizer.localize(localizableSTREAMING_PARSE_EXCEPTION(arg0)); |
|
184 } |
|
185 |
|
186 public static Localizable localizableXMLWRITER_NO_PREFIX_FOR_URI(Object arg0) { |
|
187 return messageFactory.getMessage("xmlwriter.noPrefixForURI", arg0); |
|
188 } |
|
189 |
|
190 /** |
|
191 * XML writer error: no prefix for URI: "{0}" |
|
192 * |
|
193 */ |
|
194 public static String XMLWRITER_NO_PREFIX_FOR_URI(Object arg0) { |
|
195 return localizer.localize(localizableXMLWRITER_NO_PREFIX_FOR_URI(arg0)); |
|
196 } |
|
197 |
|
198 public static Localizable localizableXMLREADER_NESTED_ERROR(Object arg0) { |
|
199 return messageFactory.getMessage("xmlreader.nestedError", arg0); |
|
200 } |
|
201 |
|
202 /** |
|
203 * XML reader error: {0} |
|
204 * |
|
205 */ |
|
206 public static String XMLREADER_NESTED_ERROR(Object arg0) { |
|
207 return localizer.localize(localizableXMLREADER_NESTED_ERROR(arg0)); |
|
208 } |
|
209 |
|
210 public static Localizable localizableINVALID_PROPERTY_VALUE_LONG(Object arg0, Object arg1, Object arg2) { |
|
211 return messageFactory.getMessage("invalid.property.value.long", arg0, arg1, arg2); |
|
212 } |
|
213 |
|
214 /** |
|
215 * Ignoring system property "{0}" as value "{1}" is invalid, property value must be a valid long. Using default value "{2}". |
|
216 * |
|
217 */ |
|
218 public static String INVALID_PROPERTY_VALUE_LONG(Object arg0, Object arg1, Object arg2) { |
|
219 return localizer.localize(localizableINVALID_PROPERTY_VALUE_LONG(arg0, arg1, arg2)); |
|
220 } |
|
221 |
|
222 public static Localizable localizableSTAXREADER_XMLSTREAMEXCEPTION(Object arg0) { |
|
223 return messageFactory.getMessage("staxreader.xmlstreamexception", arg0); |
|
224 } |
|
225 |
|
226 /** |
|
227 * XML stream reader exception: {0} |
|
228 * |
|
229 */ |
|
230 public static String STAXREADER_XMLSTREAMEXCEPTION(Object arg0) { |
|
231 return localizer.localize(localizableSTAXREADER_XMLSTREAMEXCEPTION(arg0)); |
|
232 } |
|
233 |
|
234 public static Localizable localizableXMLWRITER_NESTED_ERROR(Object arg0) { |
|
235 return messageFactory.getMessage("xmlwriter.nestedError", arg0); |
|
236 } |
|
237 |
|
238 /** |
|
239 * XML writer error: {0} |
|
240 * |
|
241 */ |
|
242 public static String XMLWRITER_NESTED_ERROR(Object arg0) { |
|
243 return localizer.localize(localizableXMLWRITER_NESTED_ERROR(arg0)); |
|
244 } |
|
245 |
|
246 public static Localizable localizableXMLREADER_ILLEGAL_STATE_ENCOUNTERED(Object arg0) { |
|
247 return messageFactory.getMessage("xmlreader.illegalStateEncountered", arg0); |
|
248 } |
|
249 |
|
250 /** |
|
251 * XML reader internal error: illegal state ({0}) |
|
252 * |
|
253 */ |
|
254 public static String XMLREADER_ILLEGAL_STATE_ENCOUNTERED(Object arg0) { |
|
255 return localizer.localize(localizableXMLREADER_ILLEGAL_STATE_ENCOUNTERED(arg0)); |
|
256 } |
|
257 |
|
258 public static Localizable localizableXMLREADER_UNEXPECTED_STATE_TAG(Object arg0, Object arg1) { |
|
259 return messageFactory.getMessage("xmlreader.unexpectedState.tag", arg0, arg1); |
|
260 } |
|
261 |
|
262 /** |
|
263 * unexpected XML tag. expected: {0} but found: {1} |
|
264 * |
|
265 */ |
|
266 public static String XMLREADER_UNEXPECTED_STATE_TAG(Object arg0, Object arg1) { |
|
267 return localizer.localize(localizableXMLREADER_UNEXPECTED_STATE_TAG(arg0, arg1)); |
|
268 } |
|
269 |
|
270 public static Localizable localizableXMLREADER_UNEXPECTED_STATE_MESSAGE(Object arg0, Object arg1, Object arg2) { |
|
271 return messageFactory.getMessage("xmlreader.unexpectedState.message", arg0, arg1, arg2); |
|
272 } |
|
273 |
|
274 /** |
|
275 * unexpected XML reader state. expected: {0} but found: {1}. {2} |
|
276 * |
|
277 */ |
|
278 public static String XMLREADER_UNEXPECTED_STATE_MESSAGE(Object arg0, Object arg1, Object arg2) { |
|
279 return localizer.localize(localizableXMLREADER_UNEXPECTED_STATE_MESSAGE(arg0, arg1, arg2)); |
|
280 } |
|
281 |
|
282 public static Localizable localizableXMLREADER_PARSE_EXCEPTION(Object arg0) { |
|
283 return messageFactory.getMessage("xmlreader.parseException", arg0); |
|
284 } |
|
285 |
|
286 /** |
|
287 * XML parsing error: {0} |
|
288 * |
|
289 */ |
|
290 public static String XMLREADER_PARSE_EXCEPTION(Object arg0) { |
|
291 return localizer.localize(localizableXMLREADER_PARSE_EXCEPTION(arg0)); |
|
292 } |
|
293 |
|
294 public static Localizable localizableXMLRECORDER_RECORDING_ENDED() { |
|
295 return messageFactory.getMessage("xmlrecorder.recording.ended"); |
|
296 } |
|
297 |
|
298 /** |
|
299 * no more recorded elements available |
|
300 * |
|
301 */ |
|
302 public static String XMLRECORDER_RECORDING_ENDED() { |
|
303 return localizer.localize(localizableXMLRECORDER_RECORDING_ENDED()); |
|
304 } |
|
305 |
|
306 } |