Thu, 31 Aug 2017 15:18:52 +0800
merge
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 */
26 package com.sun.xml.internal.ws.resources;
28 import com.sun.istack.internal.localization.Localizable;
29 import com.sun.istack.internal.localization.LocalizableMessageFactory;
30 import com.sun.istack.internal.localization.Localizer;
33 /**
34 * Defines string formatting method for each constant in the resource file
35 *
36 */
37 public final class ModelerMessages {
39 private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("com.sun.xml.internal.ws.resources.modeler");
40 private final static Localizer localizer = new Localizer();
42 public static Localizable localizableNESTED_MODELER_ERROR(Object arg0) {
43 return messageFactory.getMessage("nestedModelerError", arg0);
44 }
46 /**
47 * runtime modeler error: {0}
48 *
49 */
50 public static String NESTED_MODELER_ERROR(Object arg0) {
51 return localizer.localize(localizableNESTED_MODELER_ERROR(arg0));
52 }
54 public static Localizable localizableRUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(Object arg0, Object arg1) {
55 return messageFactory.getMessage("runtime.modeler.wsfeature.no.ftrconstructor", arg0, arg1);
56 }
58 /**
59 * Annotation {0} is not recognizable, at least one constructor of {1} should be marked with @FeatureConstructor
60 *
61 */
62 public static String RUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(Object arg0, Object arg1) {
63 return localizer.localize(localizableRUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(arg0, arg1));
64 }
66 public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNABLE_TO_READ(Object arg0) {
67 return messageFactory.getMessage("runtime.modeler.external.metadata.unable.to.read", arg0);
68 }
70 /**
71 * Unable to read metadata file {0}. Check configuration/deployment.
72 *
73 */
74 public static String RUNTIME_MODELER_EXTERNAL_METADATA_UNABLE_TO_READ(Object arg0) {
75 return localizer.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNABLE_TO_READ(arg0));
76 }
78 public static Localizable localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(Object arg0) {
79 return messageFactory.getMessage("runtime.modeler.webmethod.must.be.public", arg0);
80 }
82 /**
83 * @WebMethod is not allowed on a non-public method {0}
84 *
85 */
86 public static String RUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(Object arg0) {
87 return localizer.localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(arg0));
88 }
90 public static Localizable localizableRUNTIME_MODELER_WRAPPER_NOT_FOUND(Object arg0) {
91 return messageFactory.getMessage("runtime.modeler.wrapper.not.found", arg0);
92 }
94 /**
95 * Wrapper class {0} is not found. Have you run annotation processing to generate them?
96 *
97 */
98 public static String RUNTIME_MODELER_WRAPPER_NOT_FOUND(Object arg0) {
99 return localizer.localize(localizableRUNTIME_MODELER_WRAPPER_NOT_FOUND(arg0));
100 }
102 public static Localizable localizableRUNTIME_MODELER_MTOM_CONFLICT(Object arg0, Object arg1) {
103 return messageFactory.getMessage("runtime.modeler.mtom.conflict", arg0, arg1);
104 }
106 /**
107 * Error in @BindingType: MTOM Configuration in binding identifier {0} conflicts with feature @MTOM {1}
108 *
109 */
110 public static String RUNTIME_MODELER_MTOM_CONFLICT(Object arg0, Object arg1) {
111 return localizer.localize(localizableRUNTIME_MODELER_MTOM_CONFLICT(arg0, arg1));
112 }
114 public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_GENERIC(Object arg0) {
115 return messageFactory.getMessage("runtime.modeler.external.metadata.generic", arg0);
116 }
118 /**
119 * An error occurred while processing external WS metadata; check configuration/deployment. Nested error: {0}.
120 *
121 */
122 public static String RUNTIME_MODELER_EXTERNAL_METADATA_GENERIC(Object arg0) {
123 return localizer.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_GENERIC(arg0));
124 }
126 public static Localizable localizableRUNTIME_MODELER_FEATURE_CONFLICT(Object arg0, Object arg1) {
127 return messageFactory.getMessage("runtime.modeler.feature.conflict", arg0, arg1);
128 }
130 /**
131 * Feature {0} in implementation conflicts with {1} in WSDL configuration
132 *
133 */
134 public static String RUNTIME_MODELER_FEATURE_CONFLICT(Object arg0, Object arg1) {
135 return localizer.localize(localizableRUNTIME_MODELER_FEATURE_CONFLICT(arg0, arg1));
136 }
138 public static Localizable localizableRUNTIME_MODELER_INVALID_SOAPBINDING_PARAMETERSTYLE(Object arg0, Object arg1) {
139 return messageFactory.getMessage("runtime.modeler.invalid.soapbinding.parameterstyle", arg0, arg1);
140 }
142 /**
143 * Incorrect usage of Annotation {0} on {1}, ParameterStyle can only be WRAPPED with RPC Style Web service.
144 *
145 */
146 public static String RUNTIME_MODELER_INVALID_SOAPBINDING_PARAMETERSTYLE(Object arg0, Object arg1) {
147 return localizer.localize(localizableRUNTIME_MODELER_INVALID_SOAPBINDING_PARAMETERSTYLE(arg0, arg1));
148 }
150 public static Localizable localizableRUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(Object arg0, Object arg1) {
151 return messageFactory.getMessage("runtime.modeler.wsfeature.morethanone.ftrconstructor", arg0, arg1);
152 }
154 /**
155 * Annotation {0} is illegal, Only one constructor of {1} can be marked as @FeatureConstructor
156 *
157 */
158 public static String RUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(Object arg0, Object arg1) {
159 return localizer.localize(localizableRUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(arg0, arg1));
160 }
162 public static Localizable localizableNOT_A_VALID_BARE_METHOD(Object arg0, Object arg1) {
163 return messageFactory.getMessage("not.a.valid.bare.method", arg0, arg1);
164 }
166 /**
167 * SEI {0} has method {1} annotated as BARE but it has more than one parameter bound to body. This is invalid. Please annotate the method with annotation: @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
168 *
169 */
170 public static String NOT_A_VALID_BARE_METHOD(Object arg0, Object arg1) {
171 return localizer.localize(localizableNOT_A_VALID_BARE_METHOD(arg0, arg1));
172 }
174 public static Localizable localizableRUNTIME_MODELER_NO_PACKAGE(Object arg0) {
175 return messageFactory.getMessage("runtime.modeler.no.package", arg0);
176 }
178 /**
179 * A @WebService.targetNamespace must be specified on classes with no package. Class: {0}
180 *
181 */
182 public static String RUNTIME_MODELER_NO_PACKAGE(Object arg0) {
183 return localizer.localize(localizableRUNTIME_MODELER_NO_PACKAGE(arg0));
184 }
186 public static Localizable localizableRUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(Object arg0) {
187 return messageFactory.getMessage("runtime.modeler.no.webservice.annotation", arg0);
188 }
190 /**
191 * A WebService annotation is not present on class: {0}
192 *
193 */
194 public static String RUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(Object arg0) {
195 return localizer.localize(localizableRUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(arg0));
196 }
198 public static Localizable localizableRUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(Object arg0) {
199 return messageFactory.getMessage("runtime.modeler.addressing.responses.nosuchmethod", arg0);
200 }
202 /**
203 * JAX-WS 2.1 API is loaded from {0}, But JAX-WS runtime requires JAX-WS 2.2 API. Use the endorsed standards override mechanism to load JAX-WS 2.2 API
204 *
205 */
206 public static String RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(Object arg0) {
207 return localizer.localize(localizableRUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(arg0));
208 }
210 public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_WRONG_FORMAT(Object arg0) {
211 return messageFactory.getMessage("runtime.modeler.external.metadata.wrong.format", arg0);
212 }
214 /**
215 * Unable to read metadata from {0}. Is the format correct?
216 *
217 */
218 public static String RUNTIME_MODELER_EXTERNAL_METADATA_WRONG_FORMAT(Object arg0) {
219 return localizer.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_WRONG_FORMAT(arg0));
220 }
222 public static Localizable localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(Object arg0, Object arg1) {
223 return messageFactory.getMessage("runtime.modeler.oneway.operation.no.out.parameters", arg0, arg1);
224 }
226 /**
227 * oneway operation should not have OUT parameters class: {0} method: {1}
228 *
229 */
230 public static String RUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(Object arg0, Object arg1) {
231 return localizer.localize(localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(arg0, arg1));
232 }
234 public static Localizable localizableUNABLE_TO_CREATE_JAXB_CONTEXT() {
235 return messageFactory.getMessage("unable.to.create.JAXBContext");
236 }
238 /**
239 * Unable to create JAXBContext
240 *
241 */
242 public static String UNABLE_TO_CREATE_JAXB_CONTEXT() {
243 return localizer.localize(localizableUNABLE_TO_CREATE_JAXB_CONTEXT());
244 }
246 public static Localizable localizableRUNTIME_MODELER_NO_OPERATIONS(Object arg0) {
247 return messageFactory.getMessage("runtime.modeler.no.operations", arg0);
248 }
250 /**
251 * The web service defined by the class {0} does not contain any valid WebMethods.
252 *
253 */
254 public static String RUNTIME_MODELER_NO_OPERATIONS(Object arg0) {
255 return localizer.localize(localizableRUNTIME_MODELER_NO_OPERATIONS(arg0));
256 }
258 public static Localizable localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_CHECKED_EXCEPTIONS(Object arg0, Object arg1, Object arg2) {
259 return messageFactory.getMessage("runtime.modeler.oneway.operation.no.checked.exceptions", arg0, arg1, arg2);
260 }
262 /**
263 * Oneway operation should not throw any checked exceptions class: {0} method: {1} throws: {2}
264 *
265 */
266 public static String RUNTIME_MODELER_ONEWAY_OPERATION_NO_CHECKED_EXCEPTIONS(Object arg0, Object arg1, Object arg2) {
267 return localizer.localize(localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_CHECKED_EXCEPTIONS(arg0, arg1, arg2));
268 }
270 public static Localizable localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(Object arg0) {
271 return messageFactory.getMessage("runtime.modeler.webmethod.must.be.nonstatic", arg0);
272 }
274 /**
275 * @WebMethod is not allowed on a static method {0}
276 *
277 */
278 public static String RUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(Object arg0) {
279 return localizer.localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(arg0));
280 }
282 public static Localizable localizableRUNTIME_MODELER_METHOD_NOT_FOUND(Object arg0, Object arg1) {
283 return messageFactory.getMessage("runtime.modeler.method.not.found", arg0, arg1);
284 }
286 /**
287 * method: {0} could not be found on class: {1}
288 *
289 */
290 public static String RUNTIME_MODELER_METHOD_NOT_FOUND(Object arg0, Object arg1) {
291 return localizer.localize(localizableRUNTIME_MODELER_METHOD_NOT_FOUND(arg0, arg1));
292 }
294 public static Localizable localizableRUNTIME_MODELER_CLASS_NOT_FOUND(Object arg0) {
295 return messageFactory.getMessage("runtime.modeler.class.not.found", arg0);
296 }
298 /**
299 * class: {0} could not be found
300 *
301 */
302 public static String RUNTIME_MODELER_CLASS_NOT_FOUND(Object arg0) {
303 return localizer.localize(localizableRUNTIME_MODELER_CLASS_NOT_FOUND(arg0));
304 }
306 public static Localizable localizableRUNTIME_MODELER_SOAPBINDING_CONFLICT(Object arg0, Object arg1, Object arg2) {
307 return messageFactory.getMessage("runtime.modeler.soapbinding.conflict", arg0, arg1, arg2);
308 }
310 /**
311 * SOAPBinding Style {0} for method {1} conflicts with global SOAPBinding Style {2}
312 *
313 */
314 public static String RUNTIME_MODELER_SOAPBINDING_CONFLICT(Object arg0, Object arg1, Object arg2) {
315 return localizer.localize(localizableRUNTIME_MODELER_SOAPBINDING_CONFLICT(arg0, arg1, arg2));
316 }
318 public static Localizable localizableRUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(Object arg0) {
319 return messageFactory.getMessage("runtime.modeler.cannot.get.serviceName.from.interface", arg0);
320 }
322 /**
323 * The serviceName cannot be retrieved from an interface. class {0}
324 *
325 */
326 public static String RUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(Object arg0) {
327 return localizer.localize(localizableRUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(arg0));
328 }
330 public static Localizable localizableRUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(Object arg0) {
331 return messageFactory.getMessage("runtime.modeler.endpoint.interface.no.webservice", arg0);
332 }
334 /**
335 * The Endpoint Interface: {0} does not have WebService Annotation
336 *
337 */
338 public static String RUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(Object arg0) {
339 return localizer.localize(localizableRUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(arg0));
340 }
342 public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNSUPPORTED_SCHEMA(Object arg0, Object arg1) {
343 return messageFactory.getMessage("runtime.modeler.external.metadata.unsupported.schema", arg0, arg1);
344 }
346 /**
347 * Unsupported metadata file schema {0}. Supported schemes are {1}.
348 *
349 */
350 public static String RUNTIME_MODELER_EXTERNAL_METADATA_UNSUPPORTED_SCHEMA(Object arg0, Object arg1) {
351 return localizer.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNSUPPORTED_SCHEMA(arg0, arg1));
352 }
354 public static Localizable localizableRUNTIMEMODELER_INVALID_SOAPBINDING_ON_METHOD(Object arg0, Object arg1, Object arg2) {
355 return messageFactory.getMessage("runtimemodeler.invalid.soapbindingOnMethod", arg0, arg1, arg2);
356 }
358 /**
359 * Invalid annotation: {0} on Method {1} in Class {2}, A method cannot be annotated with @SOAPBinding with Style "RPC"
360 *
361 */
362 public static String RUNTIMEMODELER_INVALID_SOAPBINDING_ON_METHOD(Object arg0, Object arg1, Object arg2) {
363 return localizer.localize(localizableRUNTIMEMODELER_INVALID_SOAPBINDING_ON_METHOD(arg0, arg1, arg2));
364 }
366 public static Localizable localizableRUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(Object arg0, Object arg1) {
367 return messageFactory.getMessage("runtime.modeler.portname.servicename.namespace.mismatch", arg0, arg1);
368 }
370 /**
371 * The namespace of the serviceName "{0}" and the namespace of the portName "{1}" must match
372 *
373 */
374 public static String RUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(Object arg0, Object arg1) {
375 return localizer.localize(localizableRUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(arg0, arg1));
376 }
378 public static Localizable localizableRUNTIME_MODELER_WSFEATURE_ILLEGAL_FTRCONSTRUCTOR(Object arg0, Object arg1) {
379 return messageFactory.getMessage("runtime.modeler.wsfeature.illegal.ftrconstructor", arg0, arg1);
380 }
382 /**
383 * Annotation {0} is illegal, In {1} @FeatureConstructor value doesn't match the constructor parameters
384 *
385 */
386 public static String RUNTIME_MODELER_WSFEATURE_ILLEGAL_FTRCONSTRUCTOR(Object arg0, Object arg1) {
387 return localizer.localize(localizableRUNTIME_MODELER_WSFEATURE_ILLEGAL_FTRCONSTRUCTOR(arg0, arg1));
388 }
390 public static Localizable localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATICFINAL(Object arg0) {
391 return messageFactory.getMessage("runtime.modeler.webmethod.must.be.nonstaticfinal", arg0);
392 }
394 /**
395 * @WebMethod is not allowed on a static or final method {0}
396 *
397 */
398 public static String RUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATICFINAL(Object arg0) {
399 return localizer.localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATICFINAL(arg0));
400 }
402 }