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 ProviderApiMessages {
012:
013: private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory(
014: "com.sun.xml.ws.resources.providerApi");
015: private final static Localizer localizer = new Localizer();
016:
017: public static Localizable localizableNULL_ADDRESS_SERVICE_ENDPOINT() {
018: return messageFactory
019: .getMessage("null.address.service.endpoint");
020: }
021:
022: /**
023: * Address in an EPR cannot be null, when serviceName or portName is null
024: *
025: */
026: public static String NULL_ADDRESS_SERVICE_ENDPOINT() {
027: return localizer
028: .localize(localizableNULL_ADDRESS_SERVICE_ENDPOINT());
029: }
030:
031: public static Localizable localizableNULL_SERVICE() {
032: return messageFactory.getMessage("null.service");
033: }
034:
035: /**
036: * serviceName can't be null when portName is specified
037: *
038: */
039: public static String NULL_SERVICE() {
040: return localizer.localize(localizableNULL_SERVICE());
041: }
042:
043: public static Localizable localizableNULL_ADDRESS() {
044: return messageFactory.getMessage("null.address");
045: }
046:
047: /**
048: * Address in an EPR cannot be null
049: *
050: */
051: public static String NULL_ADDRESS() {
052: return localizer.localize(localizableNULL_ADDRESS());
053: }
054:
055: public static Localizable localizableNULL_PORTNAME() {
056: return messageFactory.getMessage("null.portname");
057: }
058:
059: /**
060: * EPR does n't have EndpointName in the Metadata
061: *
062: */
063: public static String NULL_PORTNAME() {
064: return localizer.localize(localizableNULL_PORTNAME());
065: }
066:
067: public static Localizable localizableNOTFOUND_SERVICE_IN_WSDL(
068: Object arg0, Object arg1) {
069: return messageFactory.getMessage("notfound.service.in.wsdl",
070: arg0, arg1);
071: }
072:
073: /**
074: * Service: {0} not found in WSDL: {1}
075: *
076: */
077: public static String NOTFOUND_SERVICE_IN_WSDL(Object arg0,
078: Object arg1) {
079: return localizer.localize(localizableNOTFOUND_SERVICE_IN_WSDL(
080: arg0, arg1));
081: }
082:
083: public static Localizable localizableNULL_EPR() {
084: return messageFactory.getMessage("null.epr");
085: }
086:
087: /**
088: * EndpointReference is null
089: *
090: */
091: public static String NULL_EPR() {
092: return localizer.localize(localizableNULL_EPR());
093: }
094:
095: public static Localizable localizableNULL_WSDL() {
096: return messageFactory.getMessage("null.wsdl");
097: }
098:
099: /**
100: * EPR does n't have WSDL Metadata which is needed for the current operation
101: *
102: */
103: public static String NULL_WSDL() {
104: return localizer.localize(localizableNULL_WSDL());
105: }
106:
107: public static Localizable localizableNOTFOUND_PORT_IN_WSDL(
108: Object arg0, Object arg1, Object arg2) {
109: return messageFactory.getMessage("notfound.port.in.wsdl", arg0,
110: arg1, arg2);
111: }
112:
113: /**
114: * Port: {0} not a valid port in Service: {1} in WSDL: {2}
115: *
116: */
117: public static String NOTFOUND_PORT_IN_WSDL(Object arg0,
118: Object arg1, Object arg2) {
119: return localizer.localize(localizableNOTFOUND_PORT_IN_WSDL(
120: arg0, arg1, arg2));
121: }
122:
123: public static Localizable localizableERROR_WSDL(Object arg0) {
124: return messageFactory.getMessage("error.wsdl", arg0);
125: }
126:
127: /**
128: * Error in parsing WSDL: {0}
129: *
130: */
131: public static String ERROR_WSDL(Object arg0) {
132: return localizer.localize(localizableERROR_WSDL(arg0));
133: }
134:
135: }
|