01: package com.sun.tools.ws.resources;
02:
03: import com.sun.xml.ws.util.localization.Localizable;
04: import com.sun.xml.ws.util.localization.LocalizableMessageFactory;
05: import com.sun.xml.ws.util.localization.Localizer;
06:
07: /**
08: * Defines string formatting method for each constant in the resource file
09: *
10: */
11: public final class UtilMessages {
12:
13: private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory(
14: "com.sun.tools.ws.resources.util");
15: private final static Localizer localizer = new Localizer();
16:
17: public static Localizable localizableSAX_2_DOM_NOTSUPPORTED_CREATEELEMENT(
18: Object arg0) {
19: return messageFactory.getMessage(
20: "sax2dom.notsupported.createelement", arg0);
21: }
22:
23: /**
24: * SAX2DOMEx.DomImplDoesntSupportCreateElementNs: {0}
25: *
26: */
27: public static String SAX_2_DOM_NOTSUPPORTED_CREATEELEMENT(
28: Object arg0) {
29: return localizer
30: .localize(localizableSAX_2_DOM_NOTSUPPORTED_CREATEELEMENT(arg0));
31: }
32:
33: public static Localizable localizableNULL_NAMESPACE_FOUND(
34: Object arg0) {
35: return messageFactory.getMessage("null.namespace.found", arg0);
36: }
37:
38: /**
39: * Encountered error in wsdl. Check namespace of element <{0}>
40: *
41: */
42: public static String NULL_NAMESPACE_FOUND(Object arg0) {
43: return localizer
44: .localize(localizableNULL_NAMESPACE_FOUND(arg0));
45: }
46:
47: public static Localizable localizableHOLDER_VALUEFIELD_NOT_FOUND(
48: Object arg0) {
49: return messageFactory.getMessage("holder.valuefield.not.found",
50: arg0);
51: }
52:
53: /**
54: * Could not find the field in the Holder that contains the Holder''s value: {0}
55: *
56: */
57: public static String HOLDER_VALUEFIELD_NOT_FOUND(Object arg0) {
58: return localizer
59: .localize(localizableHOLDER_VALUEFIELD_NOT_FOUND(arg0));
60: }
61:
62: }
|