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 UtilMessages {
012:
013: private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory(
014: "com.sun.xml.ws.resources.util");
015: private final static Localizer localizer = new Localizer();
016:
017: public static Localizable localizableUTIL_LOCATION(Object arg0,
018: Object arg1) {
019: return messageFactory.getMessage("util.location", arg0, arg1);
020: }
021:
022: /**
023: * at line {0} of {1}
024: *
025: */
026: public static String UTIL_LOCATION(Object arg0, Object arg1) {
027: return localizer.localize(localizableUTIL_LOCATION(arg0, arg1));
028: }
029:
030: public static Localizable localizableUTIL_FAILED_TO_PARSE_HANDLERCHAIN_FILE(
031: Object arg0, Object arg1) {
032: return messageFactory.getMessage(
033: "util.failed.to.parse.handlerchain.file", arg0, arg1);
034: }
035:
036: /**
037: * Could not parse handler chain file {1} for class {0}
038: *
039: */
040: public static String UTIL_FAILED_TO_PARSE_HANDLERCHAIN_FILE(
041: Object arg0, Object arg1) {
042: return localizer
043: .localize(localizableUTIL_FAILED_TO_PARSE_HANDLERCHAIN_FILE(
044: arg0, arg1));
045: }
046:
047: public static Localizable localizableUTIL_PARSER_WRONG_ELEMENT(
048: Object arg0, Object arg1, Object arg2) {
049: return messageFactory.getMessage("util.parser.wrong.element",
050: arg0, arg1, arg2);
051: }
052:
053: /**
054: * found element "{1}", expected "{2}" in handler chain configuration (line {0})
055: *
056: */
057: public static String UTIL_PARSER_WRONG_ELEMENT(Object arg0,
058: Object arg1, Object arg2) {
059: return localizer.localize(localizableUTIL_PARSER_WRONG_ELEMENT(
060: arg0, arg1, arg2));
061: }
062:
063: public static Localizable localizableUTIL_HANDLER_CLASS_NOT_FOUND(
064: Object arg0) {
065: return messageFactory.getMessage(
066: "util.handler.class.not.found", arg0);
067: }
068:
069: /**
070: * "Class: {0} could not be found"
071: *
072: */
073: public static String UTIL_HANDLER_CLASS_NOT_FOUND(Object arg0) {
074: return localizer
075: .localize(localizableUTIL_HANDLER_CLASS_NOT_FOUND(arg0));
076: }
077:
078: public static Localizable localizableUTIL_HANDLER_ENDPOINT_INTERFACE_NO_WEBSERVICE(
079: Object arg0) {
080: return messageFactory.getMessage(
081: "util.handler.endpoint.interface.no.webservice", arg0);
082: }
083:
084: /**
085: * "The Endpoint Interface: {0} does not have WebService Annotation"
086: *
087: */
088: public static String UTIL_HANDLER_ENDPOINT_INTERFACE_NO_WEBSERVICE(
089: Object arg0) {
090: return localizer
091: .localize(localizableUTIL_HANDLER_ENDPOINT_INTERFACE_NO_WEBSERVICE(arg0));
092: }
093:
094: public static Localizable localizableUTIL_HANDLER_NO_WEBSERVICE_ANNOTATION(
095: Object arg0) {
096: return messageFactory.getMessage(
097: "util.handler.no.webservice.annotation", arg0);
098: }
099:
100: /**
101: * "A WebService annotation is not present on class: {0}"
102: *
103: */
104: public static String UTIL_HANDLER_NO_WEBSERVICE_ANNOTATION(
105: Object arg0) {
106: return localizer
107: .localize(localizableUTIL_HANDLER_NO_WEBSERVICE_ANNOTATION(arg0));
108: }
109:
110: public static Localizable localizableUTIL_FAILED_TO_FIND_HANDLERCHAIN_FILE(
111: Object arg0, Object arg1) {
112: return messageFactory.getMessage(
113: "util.failed.to.find.handlerchain.file", arg0, arg1);
114: }
115:
116: /**
117: * Could not find handler chain file {1} for class {0}
118: *
119: */
120: public static String UTIL_FAILED_TO_FIND_HANDLERCHAIN_FILE(
121: Object arg0, Object arg1) {
122: return localizer
123: .localize(localizableUTIL_FAILED_TO_FIND_HANDLERCHAIN_FILE(
124: arg0, arg1));
125: }
126:
127: public static Localizable localizableUTIL_HANDLER_CANNOT_COMBINE_SOAPMESSAGEHANDLERS() {
128: return messageFactory
129: .getMessage("util.handler.cannot.combine.soapmessagehandlers");
130: }
131:
132: /**
133: * You must use HanlderChain annotation, not SOAPMessageHandlers
134: *
135: */
136: public static String UTIL_HANDLER_CANNOT_COMBINE_SOAPMESSAGEHANDLERS() {
137: return localizer
138: .localize(localizableUTIL_HANDLER_CANNOT_COMBINE_SOAPMESSAGEHANDLERS());
139: }
140:
141: }
|