001: package com.sun.xml.ws.resources;
002:
003: import com.sun.xml.ws.util.localization.Localizable;
004: import com.sun.xml.ws.util.localization.LocalizableMessageFactory;
005: import com.sun.xml.ws.util.localization.Localizer;
006:
007: /**
008: * Defines string formatting method for each constant in the resource file
009: *
010: */
011: public final class ModelerMessages {
012:
013: private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory(
014: "com.sun.xml.ws.resources.modeler");
015: private final static Localizer localizer = new Localizer();
016:
017: public static Localizable localizableNESTED_MODELER_ERROR(
018: Object arg0) {
019: return messageFactory.getMessage("nestedModelerError", arg0);
020: }
021:
022: /**
023: * runtime modeler error: {0}
024: *
025: */
026: public static String NESTED_MODELER_ERROR(Object arg0) {
027: return localizer
028: .localize(localizableNESTED_MODELER_ERROR(arg0));
029: }
030:
031: public static Localizable localizableRUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(
032: Object arg0, Object arg1) {
033: return messageFactory.getMessage(
034: "runtime.modeler.wsfeature.no.ftrconstructor", arg0,
035: arg1);
036: }
037:
038: /**
039: * Annotation {0} is not recognizable, atleast one constructor of {1} should be marked with @FeatureConstructor
040: *
041: */
042: public static String RUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(
043: Object arg0, Object arg1) {
044: return localizer
045: .localize(localizableRUNTIME_MODELER_WSFEATURE_NO_FTRCONSTRUCTOR(
046: arg0, arg1));
047: }
048:
049: public static Localizable localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(
050: Object arg0) {
051: return messageFactory.getMessage(
052: "runtime.modeler.webmethod.must.be.public", arg0);
053: }
054:
055: /**
056: * @WebMethod is not allowed on a non-public method {0}
057: *
058: */
059: public static String RUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(
060: Object arg0) {
061: return localizer
062: .localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_PUBLIC(arg0));
063: }
064:
065: public static Localizable localizableRUNTIME_MODELER_WRAPPER_NOT_FOUND(
066: Object arg0) {
067: return messageFactory.getMessage(
068: "runtime.modeler.wrapper.not.found", arg0);
069: }
070:
071: /**
072: * Wrapper class {0} is not found. Have you run APT to generate them?
073: *
074: */
075: public static String RUNTIME_MODELER_WRAPPER_NOT_FOUND(Object arg0) {
076: return localizer
077: .localize(localizableRUNTIME_MODELER_WRAPPER_NOT_FOUND(arg0));
078: }
079:
080: public static Localizable localizableRUNTIME_MODELER_MTOM_CONFLICT(
081: Object arg0, Object arg1) {
082: return messageFactory.getMessage(
083: "runtime.modeler.mtom.conflict", arg0, arg1);
084: }
085:
086: /**
087: * Error in @BindingType: MTOM Configuration in binding identifier {0} conflicts with feature @MTOM {1}
088: *
089: */
090: public static String RUNTIME_MODELER_MTOM_CONFLICT(Object arg0,
091: Object arg1) {
092: return localizer
093: .localize(localizableRUNTIME_MODELER_MTOM_CONFLICT(
094: arg0, arg1));
095: }
096:
097: public static Localizable localizableRUNTIME_MODELER_FEATURE_CONFLICT(
098: Object arg0, Object arg1) {
099: return messageFactory.getMessage(
100: "runtime.modeler.feature.conflict", arg0, arg1);
101: }
102:
103: /**
104: * Feature {0} in implementation conflicts with {1} in WSDL configuration
105: *
106: */
107: public static String RUNTIME_MODELER_FEATURE_CONFLICT(Object arg0,
108: Object arg1) {
109: return localizer
110: .localize(localizableRUNTIME_MODELER_FEATURE_CONFLICT(
111: arg0, arg1));
112: }
113:
114: public static Localizable localizableRUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(
115: Object arg0, Object arg1) {
116: return messageFactory.getMessage(
117: "runtime.modeler.wsfeature.morethanone.ftrconstructor",
118: arg0, arg1);
119: }
120:
121: /**
122: * Annotation {0} is illegal, Only one constructor of {1} can be marked as @FeatureConstructor
123: *
124: */
125: public static String RUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(
126: Object arg0, Object arg1) {
127: return localizer
128: .localize(localizableRUNTIME_MODELER_WSFEATURE_MORETHANONE_FTRCONSTRUCTOR(
129: arg0, arg1));
130: }
131:
132: public static Localizable localizableNOT_A_VALID_BARE_METHOD(
133: Object arg0, Object arg1) {
134: return messageFactory.getMessage("not.a.valid.bare.method",
135: arg0, arg1);
136: }
137:
138: /**
139: * 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)
140: *
141: */
142: public static String NOT_A_VALID_BARE_METHOD(Object arg0,
143: Object arg1) {
144: return localizer.localize(localizableNOT_A_VALID_BARE_METHOD(
145: arg0, arg1));
146: }
147:
148: public static Localizable localizableRUNTIME_MODELER_NO_PACKAGE(
149: Object arg0) {
150: return messageFactory.getMessage("runtime.modeler.no.package",
151: arg0);
152: }
153:
154: /**
155: * A @WebService.targetNamespace must be specified on classes with no package. Class: {0}
156: *
157: */
158: public static String RUNTIME_MODELER_NO_PACKAGE(Object arg0) {
159: return localizer
160: .localize(localizableRUNTIME_MODELER_NO_PACKAGE(arg0));
161: }
162:
163: public static Localizable localizableRUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(
164: Object arg0) {
165: return messageFactory.getMessage(
166: "runtime.modeler.no.webservice.annotation", arg0);
167: }
168:
169: /**
170: * A WebService annotation is not present on class: {0}
171: *
172: */
173: public static String RUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(
174: Object arg0) {
175: return localizer
176: .localize(localizableRUNTIME_MODELER_NO_WEBSERVICE_ANNOTATION(arg0));
177: }
178:
179: public static Localizable localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(
180: Object arg0, Object arg1) {
181: return messageFactory.getMessage(
182: "runtime.modeler.oneway.operation.no.out.parameters",
183: arg0, arg1);
184: }
185:
186: /**
187: * oneway operation should not have out parameters class: {0} method: {1}
188: *
189: */
190: public static String RUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(
191: Object arg0, Object arg1) {
192: return localizer
193: .localize(localizableRUNTIME_MODELER_ONEWAY_OPERATION_NO_OUT_PARAMETERS(
194: arg0, arg1));
195: }
196:
197: public static Localizable localizableUNABLE_TO_CREATE_JAXB_CONTEXT() {
198: return messageFactory
199: .getMessage("unable.to.create.JAXBContext");
200: }
201:
202: /**
203: * Unable to create JAXBContext
204: *
205: */
206: public static String UNABLE_TO_CREATE_JAXB_CONTEXT() {
207: return localizer
208: .localize(localizableUNABLE_TO_CREATE_JAXB_CONTEXT());
209: }
210:
211: public static Localizable localizableRUNTIME_MODELER_NO_OPERATIONS(
212: Object arg0) {
213: return messageFactory.getMessage(
214: "runtime.modeler.no.operations", arg0);
215: }
216:
217: /**
218: * The web service defined by the class {0} does not contain any valid WebMethods.
219: *
220: */
221: public static String RUNTIME_MODELER_NO_OPERATIONS(Object arg0) {
222: return localizer
223: .localize(localizableRUNTIME_MODELER_NO_OPERATIONS(arg0));
224: }
225:
226: public static Localizable localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(
227: Object arg0) {
228: return messageFactory.getMessage(
229: "runtime.modeler.webmethod.must.be.nonstatic", arg0);
230: }
231:
232: /**
233: * @WebMethod is not allowed on a static method {0}
234: *
235: */
236: public static String RUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(
237: Object arg0) {
238: return localizer
239: .localize(localizableRUNTIME_MODELER_WEBMETHOD_MUST_BE_NONSTATIC(arg0));
240: }
241:
242: public static Localizable localizableRUNTIME_MODELER_METHOD_NOT_FOUND(
243: Object arg0, Object arg1) {
244: return messageFactory.getMessage(
245: "runtime.modeler.method.not.found", arg0, arg1);
246: }
247:
248: /**
249: * method: {0} could not be found on class: {1}
250: *
251: */
252: public static String RUNTIME_MODELER_METHOD_NOT_FOUND(Object arg0,
253: Object arg1) {
254: return localizer
255: .localize(localizableRUNTIME_MODELER_METHOD_NOT_FOUND(
256: arg0, arg1));
257: }
258:
259: public static Localizable localizableRUNTIME_MODELER_CLASS_NOT_FOUND(
260: Object arg0) {
261: return messageFactory.getMessage(
262: "runtime.modeler.class.not.found", arg0);
263: }
264:
265: /**
266: * class: {0} could not be found
267: *
268: */
269: public static String RUNTIME_MODELER_CLASS_NOT_FOUND(Object arg0) {
270: return localizer
271: .localize(localizableRUNTIME_MODELER_CLASS_NOT_FOUND(arg0));
272: }
273:
274: public static Localizable localizableRUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(
275: Object arg0) {
276: return messageFactory
277: .getMessage(
278: "runtime.modeler.cannot.get.serviceName.from.interface",
279: arg0);
280: }
281:
282: /**
283: * The serviceName cannot be retrieved from an interface. class {0}
284: *
285: */
286: public static String RUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(
287: Object arg0) {
288: return localizer
289: .localize(localizableRUNTIME_MODELER_CANNOT_GET_SERVICE_NAME_FROM_INTERFACE(arg0));
290: }
291:
292: public static Localizable localizableRUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(
293: Object arg0) {
294: return messageFactory.getMessage(
295: "runtime.modeler.endpoint.interface.no.webservice",
296: arg0);
297: }
298:
299: /**
300: * The Endpoint Interface: {0} does not have WebService Annotation
301: *
302: */
303: public static String RUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(
304: Object arg0) {
305: return localizer
306: .localize(localizableRUNTIME_MODELER_ENDPOINT_INTERFACE_NO_WEBSERVICE(arg0));
307: }
308:
309: public static Localizable localizableRUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(
310: Object arg0, Object arg1) {
311: return messageFactory
312: .getMessage(
313: "runtime.modeler.portname.servicename.namespace.mismatch",
314: arg0, arg1);
315: }
316:
317: /**
318: * The namespace of the serviceName "{0}" and the namespace of the portName "{1}" must match
319: *
320: */
321: public static String RUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(
322: Object arg0, Object arg1) {
323: return localizer
324: .localize(localizableRUNTIME_MODELER_PORTNAME_SERVICENAME_NAMESPACE_MISMATCH(
325: arg0, arg1));
326: }
327:
328: public static Localizable localizableRUNTIME_MODELER_WSFEATURE_ILLEGAL_FTRCONSTRUCTOR(
329: Object arg0, Object arg1) {
330: return messageFactory.getMessage(
331: "runtime.modeler.wsfeature.illegal.ftrconstructor",
332: arg0, arg1);
333: }
334:
335: /**
336: * Annotation {0} is illegal, In {1} @FeatureConstructor value does n't match the constructor parameters
337: *
338: */
339: public static String RUNTIME_MODELER_WSFEATURE_ILLEGAL_FTRCONSTRUCTOR(
340: Object arg0, Object arg1) {
341: return localizer
342: .localize(localizableRUNTIME_MODELER_WSFEATURE_ILLEGAL_FTRCONSTRUCTOR(
343: arg0, arg1));
344: }
345:
346: }
|