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/ModelerMessages.java Wed Apr 27 01:27:09 2016 +0800 1.3 @@ -0,0 +1,402 @@ 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 ModelerMessages { 1.41 + 1.42 + private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("com.sun.xml.internal.ws.resources.modeler"); 1.43 + private final static Localizer localizer = new Localizer(); 1.44 + 1.45 + public static Localizable localizableNESTED_MODELER_ERROR(Object arg0) { 1.46 + return messageFactory.getMessage("nestedModelerError", arg0); 1.47 + } 1.48 + 1.49 + /** 1.50 + * runtime modeler error: {0} 1.51 + * 1.52 + */ 1.53 + public static String NESTED_MODELER_ERROR(Object arg0) { 1.54 + return localizer.localize(localizableNESTED_MODELER_ERROR(arg0)); 1.55 + } 1.56 + 1.57 + public static Localizable localizableRUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(Object arg0, Object arg1) { 1.58 + return messageFactory.getMessage("runtime.modeler.wsfeature.no.ftrconstructor", arg0, arg1); 1.59 + } 1.60 + 1.61 + /** 1.62 + * Annotation {0} is not recognizable, at least one constructor of {1} should be marked with @FeatureConstructor 1.63 + * 1.64 + */ 1.65 + public static String RUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(Object arg0, Object arg1) { 1.66 + return localizer.localize(localizableRUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(arg0, arg1)); 1.67 + } 1.68 + 1.69 + public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNABLE_TO_READ(Object arg0) { 1.70 + return messageFactory.getMessage("runtime.modeler.external.metadata.unable.to.read", arg0); 1.71 + } 1.72 + 1.73 + /** 1.74 + * Unable to read metadata file {0}. Check configuration/deployment. 1.75 + * 1.76 + */ 1.77 + public static String RUNTIME_MODELER_EXTERNAL_METADATA_UNABLE_TO_READ(Object arg0) { 1.78 + return localizer.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNABLE_TO_READ(arg0)); 1.79 + } 1.80 + 1.81 + public static Localizable localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(Object arg0) { 1.82 + return messageFactory.getMessage("runtime.modeler.webmethod.must.be.public", arg0); 1.83 + } 1.84 + 1.85 + /** 1.86 + * @WebMethod is not allowed on a non-public method {0} 1.87 + * 1.88 + */ 1.89 + public static String RUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(Object arg0) { 1.90 + return localizer.localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(arg0)); 1.91 + } 1.92 + 1.93 + public static Localizable localizableRUNTIME_MODELER_WRAPPER_NOT_FOUND(Object arg0) { 1.94 + return messageFactory.getMessage("runtime.modeler.wrapper.not.found", arg0); 1.95 + } 1.96 + 1.97 + /** 1.98 + * Wrapper class {0} is not found. Have you run annotation processing to generate them? 1.99 + * 1.100 + */ 1.101 + public static String RUNTIME_MODELER_WRAPPER_NOT_FOUND(Object arg0) { 1.102 + return localizer.localize(localizableRUNTIME_MODELER_WRAPPER_NOT_FOUND(arg0)); 1.103 + } 1.104 + 1.105 + public static Localizable localizableRUNTIME_MODELER_MTOM_CONFLICT(Object arg0, Object arg1) { 1.106 + return messageFactory.getMessage("runtime.modeler.mtom.conflict", arg0, arg1); 1.107 + } 1.108 + 1.109 + /** 1.110 + * Error in @BindingType: MTOM Configuration in binding identifier {0} conflicts with feature @MTOM {1} 1.111 + * 1.112 + */ 1.113 + public static String RUNTIME_MODELER_MTOM_CONFLICT(Object arg0, Object arg1) { 1.114 + return localizer.localize(localizableRUNTIME_MODELER_MTOM_CONFLICT(arg0, arg1)); 1.115 + } 1.116 + 1.117 + public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_GENERIC(Object arg0) { 1.118 + return messageFactory.getMessage("runtime.modeler.external.metadata.generic", arg0); 1.119 + } 1.120 + 1.121 + /** 1.122 + * An error occurred while processing external WS metadata; check configuration/deployment. Nested error: {0}. 1.123 + * 1.124 + */ 1.125 + public static String RUNTIME_MODELER_EXTERNAL_METADATA_GENERIC(Object arg0) { 1.126 + return localizer.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_GENERIC(arg0)); 1.127 + } 1.128 + 1.129 + public static Localizable localizableRUNTIME_MODELER_FEATURE_CONFLICT(Object arg0, Object arg1) { 1.130 + return messageFactory.getMessage("runtime.modeler.feature.conflict", arg0, arg1); 1.131 + } 1.132 + 1.133 + /** 1.134 + * Feature {0} in implementation conflicts with {1} in WSDL configuration 1.135 + * 1.136 + */ 1.137 + public static String RUNTIME_MODELER_FEATURE_CONFLICT(Object arg0, Object arg1) { 1.138 + return localizer.localize(localizableRUNTIME_MODELER_FEATURE_CONFLICT(arg0, arg1)); 1.139 + } 1.140 + 1.141 + public static Localizable localizableRUNTIME_MODELER_INVALID_SOAPBINDING_PARAMETERSTYLE(Object arg0, Object arg1) { 1.142 + return messageFactory.getMessage("runtime.modeler.invalid.soapbinding.parameterstyle", arg0, arg1); 1.143 + } 1.144 + 1.145 + /** 1.146 + * Incorrect usage of Annotation {0} on {1}, ParameterStyle can only be WRAPPED with RPC Style Web service. 1.147 + * 1.148 + */ 1.149 + public static String RUNTIME_MODELER_INVALID_SOAPBINDING_PARAMETERSTYLE(Object arg0, Object arg1) { 1.150 + return localizer.localize(localizableRUNTIME_MODELER_INVALID_SOAPBINDING_PARAMETERSTYLE(arg0, arg1)); 1.151 + } 1.152 + 1.153 + public static Localizable localizableRUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(Object arg0, Object arg1) { 1.154 + return messageFactory.getMessage("runtime.modeler.wsfeature.morethanone.ftrconstructor", arg0, arg1); 1.155 + } 1.156 + 1.157 + /** 1.158 + * Annotation {0} is illegal, Only one constructor of {1} can be marked as @FeatureConstructor 1.159 + * 1.160 + */ 1.161 + public static String RUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(Object arg0, Object arg1) { 1.162 + return localizer.localize(localizableRUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(arg0, arg1)); 1.163 + } 1.164 + 1.165 + public static Localizable localizableNOT_A_VALID_BARE_METHOD(Object arg0, Object arg1) { 1.166 + return messageFactory.getMessage("not.a.valid.bare.method", arg0, arg1); 1.167 + } 1.168 + 1.169 + /** 1.170 + * 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) 1.171 + * 1.172 + */ 1.173 + public static String NOT_A_VALID_BARE_METHOD(Object arg0, Object arg1) { 1.174 + return localizer.localize(localizableNOT_A_VALID_BARE_METHOD(arg0, arg1)); 1.175 + } 1.176 + 1.177 + public static Localizable localizableRUNTIME_MODELER_NO_PACKAGE(Object arg0) { 1.178 + return messageFactory.getMessage("runtime.modeler.no.package", arg0); 1.179 + } 1.180 + 1.181 + /** 1.182 + * A @WebService.targetNamespace must be specified on classes with no package. Class: {0} 1.183 + * 1.184 + */ 1.185 + public static String RUNTIME_MODELER_NO_PACKAGE(Object arg0) { 1.186 + return localizer.localize(localizableRUNTIME_MODELER_NO_PACKAGE(arg0)); 1.187 + } 1.188 + 1.189 + public static Localizable localizableRUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(Object arg0) { 1.190 + return messageFactory.getMessage("runtime.modeler.no.webservice.annotation", arg0); 1.191 + } 1.192 + 1.193 + /** 1.194 + * A WebService annotation is not present on class: {0} 1.195 + * 1.196 + */ 1.197 + public static String RUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(Object arg0) { 1.198 + return localizer.localize(localizableRUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(arg0)); 1.199 + } 1.200 + 1.201 + public static Localizable localizableRUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(Object arg0) { 1.202 + return messageFactory.getMessage("runtime.modeler.addressing.responses.nosuchmethod", arg0); 1.203 + } 1.204 + 1.205 + /** 1.206 + * 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 1.207 + * 1.208 + */ 1.209 + public static String RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(Object arg0) { 1.210 + return localizer.localize(localizableRUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(arg0)); 1.211 + } 1.212 + 1.213 + public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_WRONG_FORMAT(Object arg0) { 1.214 + return messageFactory.getMessage("runtime.modeler.external.metadata.wrong.format", arg0); 1.215 + } 1.216 + 1.217 + /** 1.218 + * Unable to read metadata from {0}. Is the format correct? 1.219 + * 1.220 + */ 1.221 + public static String RUNTIME_MODELER_EXTERNAL_METADATA_WRONG_FORMAT(Object arg0) { 1.222 + return localizer.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_WRONG_FORMAT(arg0)); 1.223 + } 1.224 + 1.225 + public static Localizable localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(Object arg0, Object arg1) { 1.226 + return messageFactory.getMessage("runtime.modeler.oneway.operation.no.out.parameters", arg0, arg1); 1.227 + } 1.228 + 1.229 + /** 1.230 + * oneway operation should not have OUT parameters class: {0} method: {1} 1.231 + * 1.232 + */ 1.233 + public static String RUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(Object arg0, Object arg1) { 1.234 + return localizer.localize(localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(arg0, arg1)); 1.235 + } 1.236 + 1.237 + public static Localizable localizableUNABLE_TO_CREATE_JAXB_CONTEXT() { 1.238 + return messageFactory.getMessage("unable.to.create.JAXBContext"); 1.239 + } 1.240 + 1.241 + /** 1.242 + * Unable to create JAXBContext 1.243 + * 1.244 + */ 1.245 + public static String UNABLE_TO_CREATE_JAXB_CONTEXT() { 1.246 + return localizer.localize(localizableUNABLE_TO_CREATE_JAXB_CONTEXT()); 1.247 + } 1.248 + 1.249 + public static Localizable localizableRUNTIME_MODELER_NO_OPERATIONS(Object arg0) { 1.250 + return messageFactory.getMessage("runtime.modeler.no.operations", arg0); 1.251 + } 1.252 + 1.253 + /** 1.254 + * The web service defined by the class {0} does not contain any valid WebMethods. 1.255 + * 1.256 + */ 1.257 + public static String RUNTIME_MODELER_NO_OPERATIONS(Object arg0) { 1.258 + return localizer.localize(localizableRUNTIME_MODELER_NO_OPERATIONS(arg0)); 1.259 + } 1.260 + 1.261 + public static Localizable localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_CHECKED_EXCEPTIONS(Object arg0, Object arg1, Object arg2) { 1.262 + return messageFactory.getMessage("runtime.modeler.oneway.operation.no.checked.exceptions", arg0, arg1, arg2); 1.263 + } 1.264 + 1.265 + /** 1.266 + * Oneway operation should not throw any checked exceptions class: {0} method: {1} throws: {2} 1.267 + * 1.268 + */ 1.269 + public static String RUNTIME_MODELER_ONEWAY_OPERATION_NO_CHECKED_EXCEPTIONS(Object arg0, Object arg1, Object arg2) { 1.270 + return localizer.localize(localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_CHECKED_EXCEPTIONS(arg0, arg1, arg2)); 1.271 + } 1.272 + 1.273 + public static Localizable localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(Object arg0) { 1.274 + return messageFactory.getMessage("runtime.modeler.webmethod.must.be.nonstatic", arg0); 1.275 + } 1.276 + 1.277 + /** 1.278 + * @WebMethod is not allowed on a static method {0} 1.279 + * 1.280 + */ 1.281 + public static String RUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(Object arg0) { 1.282 + return localizer.localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(arg0)); 1.283 + } 1.284 + 1.285 + public static Localizable localizableRUNTIME_MODELER_METHOD_NOT_FOUND(Object arg0, Object arg1) { 1.286 + return messageFactory.getMessage("runtime.modeler.method.not.found", arg0, arg1); 1.287 + } 1.288 + 1.289 + /** 1.290 + * method: {0} could not be found on class: {1} 1.291 + * 1.292 + */ 1.293 + public static String RUNTIME_MODELER_METHOD_NOT_FOUND(Object arg0, Object arg1) { 1.294 + return localizer.localize(localizableRUNTIME_MODELER_METHOD_NOT_FOUND(arg0, arg1)); 1.295 + } 1.296 + 1.297 + public static Localizable localizableRUNTIME_MODELER_CLASS_NOT_FOUND(Object arg0) { 1.298 + return messageFactory.getMessage("runtime.modeler.class.not.found", arg0); 1.299 + } 1.300 + 1.301 + /** 1.302 + * class: {0} could not be found 1.303 + * 1.304 + */ 1.305 + public static String RUNTIME_MODELER_CLASS_NOT_FOUND(Object arg0) { 1.306 + return localizer.localize(localizableRUNTIME_MODELER_CLASS_NOT_FOUND(arg0)); 1.307 + } 1.308 + 1.309 + public static Localizable localizableRUNTIME_MODELER_SOAPBINDING_CONFLICT(Object arg0, Object arg1, Object arg2) { 1.310 + return messageFactory.getMessage("runtime.modeler.soapbinding.conflict", arg0, arg1, arg2); 1.311 + } 1.312 + 1.313 + /** 1.314 + * SOAPBinding Style {0} for method {1} conflicts with global SOAPBinding Style {2} 1.315 + * 1.316 + */ 1.317 + public static String RUNTIME_MODELER_SOAPBINDING_CONFLICT(Object arg0, Object arg1, Object arg2) { 1.318 + return localizer.localize(localizableRUNTIME_MODELER_SOAPBINDING_CONFLICT(arg0, arg1, arg2)); 1.319 + } 1.320 + 1.321 + public static Localizable localizableRUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(Object arg0) { 1.322 + return messageFactory.getMessage("runtime.modeler.cannot.get.serviceName.from.interface", arg0); 1.323 + } 1.324 + 1.325 + /** 1.326 + * The serviceName cannot be retrieved from an interface. class {0} 1.327 + * 1.328 + */ 1.329 + public static String RUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(Object arg0) { 1.330 + return localizer.localize(localizableRUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(arg0)); 1.331 + } 1.332 + 1.333 + public static Localizable localizableRUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(Object arg0) { 1.334 + return messageFactory.getMessage("runtime.modeler.endpoint.interface.no.webservice", arg0); 1.335 + } 1.336 + 1.337 + /** 1.338 + * The Endpoint Interface: {0} does not have WebService Annotation 1.339 + * 1.340 + */ 1.341 + public static String RUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(Object arg0) { 1.342 + return localizer.localize(localizableRUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(arg0)); 1.343 + } 1.344 + 1.345 + public static Localizable localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNSUPPORTED_SCHEMA(Object arg0, Object arg1) { 1.346 + return messageFactory.getMessage("runtime.modeler.external.metadata.unsupported.schema", arg0, arg1); 1.347 + } 1.348 + 1.349 + /** 1.350 + * Unsupported metadata file schema {0}. Supported schemes are {1}. 1.351 + * 1.352 + */ 1.353 + public static String RUNTIME_MODELER_EXTERNAL_METADATA_UNSUPPORTED_SCHEMA(Object arg0, Object arg1) { 1.354 + return localizer.localize(localizableRUNTIME_MODELER_EXTERNAL_METADATA_UNSUPPORTED_SCHEMA(arg0, arg1)); 1.355 + } 1.356 + 1.357 + public static Localizable localizableRUNTIMEMODELER_INVALID_SOAPBINDING_ON_METHOD(Object arg0, Object arg1, Object arg2) { 1.358 + return messageFactory.getMessage("runtimemodeler.invalid.soapbindingOnMethod", arg0, arg1, arg2); 1.359 + } 1.360 + 1.361 + /** 1.362 + * Invalid annotation: {0} on Method {1} in Class {2}, A method cannot be annotated with @SOAPBinding with Style "RPC" 1.363 + * 1.364 + */ 1.365 + public static String RUNTIMEMODELER_INVALID_SOAPBINDING_ON_METHOD(Object arg0, Object arg1, Object arg2) { 1.366 + return localizer.localize(localizableRUNTIMEMODELER_INVALID_SOAPBINDING_ON_METHOD(arg0, arg1, arg2)); 1.367 + } 1.368 + 1.369 + public static Localizable localizableRUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(Object arg0, Object arg1) { 1.370 + return messageFactory.getMessage("runtime.modeler.portname.servicename.namespace.mismatch", arg0, arg1); 1.371 + } 1.372 + 1.373 + /** 1.374 + * The namespace of the serviceName "{0}" and the namespace of the portName "{1}" must match 1.375 + * 1.376 + */ 1.377 + public static String RUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(Object arg0, Object arg1) { 1.378 + return localizer.localize(localizableRUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(arg0, arg1)); 1.379 + } 1.380 + 1.381 + public static Localizable localizableRUNTIME_MODELER_WSFEATURE_ILLEGAL_FTRCONSTRUCTOR(Object arg0, Object arg1) { 1.382 + return messageFactory.getMessage("runtime.modeler.wsfeature.illegal.ftrconstructor", arg0, arg1); 1.383 + } 1.384 + 1.385 + /** 1.386 + * Annotation {0} is illegal, In {1} @FeatureConstructor value doesn't match the constructor parameters 1.387 + * 1.388 + */ 1.389 + public static String RUNTIME_MODELER_WSFEATURE_ILLEGAL_FTRCONSTRUCTOR(Object arg0, Object arg1) { 1.390 + return localizer.localize(localizableRUNTIME_MODELER_WSFEATURE_ILLEGAL_FTRCONSTRUCTOR(arg0, arg1)); 1.391 + } 1.392 + 1.393 + public static Localizable localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATICFINAL(Object arg0) { 1.394 + return messageFactory.getMessage("runtime.modeler.webmethod.must.be.nonstaticfinal", arg0); 1.395 + } 1.396 + 1.397 + /** 1.398 + * @WebMethod is not allowed on a static or final method {0} 1.399 + * 1.400 + */ 1.401 + public static String RUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATICFINAL(Object arg0) { 1.402 + return localizer.localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATICFINAL(arg0)); 1.403 + } 1.404 + 1.405 +}