com.sun.xml.ws.security.addressing.impl.policy.LocalizationMessages Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webservices-osgi Show documentation
Show all versions of webservices-osgi Show documentation
Metro Web Services Runtime OSGi Bundle
The newest version!
package com.sun.xml.ws.security.addressing.impl.policy;
import java.util.Locale;
import java.util.ResourceBundle;
import com.sun.istack.localization.Localizable;
import com.sun.istack.localization.LocalizableMessageFactory;
import com.sun.istack.localization.LocalizableMessageFactory.ResourceBundleSupplier;
import com.sun.istack.localization.Localizer;
/**
* Defines string formatting method for each constant in the resource file
*
*/
public final class LocalizationMessages {
private static final String BUNDLE_NAME = "com.sun.xml.ws.security.addressing.impl.policy.Localization";
private static final LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new LocalizationMessages.BundleSupplier());
private static final Localizer LOCALIZER = new Localizer();
private LocalizationMessages() {
}
public static Localizable localizableWSA_0001_UNKNOWN_ASSERTION(Object arg0) {
return MESSAGE_FACTORY.getMessage("WSA_0001_UNKNOWN_ASSERTION", arg0);
}
/**
* WSA0001: Failed to identify assertion: ''{0}''
*
*/
public static String WSA_0001_UNKNOWN_ASSERTION(Object arg0) {
return LOCALIZER.localize(localizableWSA_0001_UNKNOWN_ASSERTION(arg0));
}
public static Localizable localizableWSA_0002_ERROR_OBTAINING_CONSTRUCTOR(Object arg0) {
return MESSAGE_FACTORY.getMessage("WSA0002.error.obtaining.constructor", arg0);
}
/**
* WSA0002: Error occurred while obtaining the constructor for Addressing assertion {0}.
*
*/
public static String WSA_0002_ERROR_OBTAINING_CONSTRUCTOR(Object arg0) {
return LOCALIZER.localize(localizableWSA_0002_ERROR_OBTAINING_CONSTRUCTOR(arg0));
}
public static Localizable localizableWSA_0003_ERROR_INSTANTIATING(Object arg0) {
return MESSAGE_FACTORY.getMessage("WSA0003.error.instantiating", arg0);
}
/**
* WSA0003: Error occurred while instantiating Addressing assertion {0}.
*
*/
public static String WSA_0003_ERROR_INSTANTIATING(Object arg0) {
return LOCALIZER.localize(localizableWSA_0003_ERROR_INSTANTIATING(arg0));
}
public static Localizable localizableWSA_0004_INVALID_EPR_ADDRESS() {
return MESSAGE_FACTORY.getMessage("WSA0004.invalid.epr-address");
}
/**
* WSA0004: Error occurred while reading Address element.
*
*/
public static String WSA_0004_INVALID_EPR_ADDRESS() {
return LOCALIZER.localize(localizableWSA_0004_INVALID_EPR_ADDRESS());
}
private static class BundleSupplier
implements ResourceBundleSupplier
{
public ResourceBundle getResourceBundle(Locale locale) {
return ResourceBundle.getBundle(BUNDLE_NAME, locale);
}
}
}