001: package com.sun.tools.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 GeneratorMessages {
012:
013: private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory(
014: "com.sun.tools.ws.resources.generator");
015: private final static Localizer localizer = new Localizer();
016:
017: public static Localizable localizableGENERATOR_SERVICE_CLASS_ALREADY_EXIST(
018: Object arg0, Object arg1) {
019: return messageFactory.getMessage(
020: "generator.service.classAlreadyExist", arg0, arg1);
021: }
022:
023: /**
024: * Could not generate Service, class: {0} already exists. Rename wsdl:Service "{1}" using JAX-WS customization
025: *
026: */
027: public static String GENERATOR_SERVICE_CLASS_ALREADY_EXIST(
028: Object arg0, Object arg1) {
029: return localizer
030: .localize(localizableGENERATOR_SERVICE_CLASS_ALREADY_EXIST(
031: arg0, arg1));
032: }
033:
034: public static Localizable localizableGENERATOR_SEI_CLASS_ALREADY_EXIST(
035: Object arg0, Object arg1) {
036: return messageFactory.getMessage(
037: "generator.sei.classAlreadyExist", arg0, arg1);
038: }
039:
040: /**
041: * Could not generate SEI, class: {0} already exists. Rename wsdl:portType "{1}" using JAX-WS customization
042: *
043: */
044: public static String GENERATOR_SEI_CLASS_ALREADY_EXIST(Object arg0,
045: Object arg1) {
046: return localizer
047: .localize(localizableGENERATOR_SEI_CLASS_ALREADY_EXIST(
048: arg0, arg1));
049: }
050:
051: public static Localizable localizableGENERATOR_NESTED_GENERATOR_ERROR(
052: Object arg0) {
053: return messageFactory.getMessage(
054: "generator.nestedGeneratorError", arg0);
055: }
056:
057: /**
058: * generator error: {0}
059: *
060: */
061: public static String GENERATOR_NESTED_GENERATOR_ERROR(Object arg0) {
062: return localizer
063: .localize(localizableGENERATOR_NESTED_GENERATOR_ERROR(arg0));
064: }
065:
066: public static Localizable localizableGENERATOR_INTERNAL_ERROR_SHOULD_NOT_HAPPEN(
067: Object arg0) {
068: return messageFactory.getMessage(
069: "generator.internal.error.should.not.happen", arg0);
070: }
071:
072: /**
073: * internal error (should not happen): {0}
074: *
075: */
076: public static String GENERATOR_INTERNAL_ERROR_SHOULD_NOT_HAPPEN(
077: Object arg0) {
078: return localizer
079: .localize(localizableGENERATOR_INTERNAL_ERROR_SHOULD_NOT_HAPPEN(arg0));
080: }
081:
082: public static Localizable localizableGENERATOR_INDENTINGWRITER_CHARSET_CANTENCODE(
083: Object arg0) {
084: return messageFactory.getMessage(
085: "generator.indentingwriter.charset.cantencode", arg0);
086: }
087:
088: /**
089: * WSDL has some characters which native java encoder can''t encode: "{0}"
090: *
091: */
092: public static String GENERATOR_INDENTINGWRITER_CHARSET_CANTENCODE(
093: Object arg0) {
094: return localizer
095: .localize(localizableGENERATOR_INDENTINGWRITER_CHARSET_CANTENCODE(arg0));
096: }
097:
098: public static Localizable localizableGENERATOR_CANNOT_CREATE_DIR(
099: Object arg0) {
100: return messageFactory.getMessage("generator.cannot.create.dir",
101: arg0);
102: }
103:
104: /**
105: * can''t create directory: {0}
106: *
107: */
108: public static String GENERATOR_CANNOT_CREATE_DIR(Object arg0) {
109: return localizer
110: .localize(localizableGENERATOR_CANNOT_CREATE_DIR(arg0));
111: }
112:
113: public static Localizable localizableGENERATOR_CANT_WRITE(
114: Object arg0) {
115: return messageFactory.getMessage("generator.cant.write", arg0);
116: }
117:
118: /**
119: * can''t write file: {0}
120: *
121: */
122: public static String GENERATOR_CANT_WRITE(Object arg0) {
123: return localizer
124: .localize(localizableGENERATOR_CANT_WRITE(arg0));
125: }
126:
127: }
|