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 JavacompilerMessages {
12:
13: private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory(
14: "com.sun.tools.ws.resources.javacompiler");
15: private final static Localizer localizer = new Localizer();
16:
17: public static Localizable localizableJAVACOMPILER_CLASSPATH_ERROR(
18: Object arg0) {
19: return messageFactory.getMessage(
20: "javacompiler.classpath.error", arg0);
21: }
22:
23: /**
24: * {0} is not available in the classpath, requires Sun's JDK version 5.0 or latter.
25: *
26: */
27: public static String JAVACOMPILER_CLASSPATH_ERROR(Object arg0) {
28: return localizer
29: .localize(localizableJAVACOMPILER_CLASSPATH_ERROR(arg0));
30: }
31:
32: public static Localizable localizableJAVACOMPILER_NOSUCHMETHOD_ERROR(
33: Object arg0) {
34: return messageFactory.getMessage(
35: "javacompiler.nosuchmethod.error", arg0);
36: }
37:
38: /**
39: * There is no such method {0} available, requires Sun's JDK version 5.0 or latter.
40: *
41: */
42: public static String JAVACOMPILER_NOSUCHMETHOD_ERROR(Object arg0) {
43: return localizer
44: .localize(localizableJAVACOMPILER_NOSUCHMETHOD_ERROR(arg0));
45: }
46:
47: public static Localizable localizableJAVACOMPILER_ERROR(Object arg0) {
48: return messageFactory.getMessage("javacompiler.error", arg0);
49: }
50:
51: /**
52: * error : {0}.
53: *
54: */
55: public static String JAVACOMPILER_ERROR(Object arg0) {
56: return localizer.localize(localizableJAVACOMPILER_ERROR(arg0));
57: }
58:
59: }
|