/** * Get a message from resource.properties from the package of the given object. * * @param key The resource key * @param arg0 The argument to place in variable {0} * @return The formatted message */ public static String getMessage(String key, String arg0) throws MissingResourceException { MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY); return messageBundle.getMessage(key, arg0); }
public static ResourceBundle getResourceBundle() { MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY); return messageBundle.getResourceBundle(); }
/** * Gets a string message from the resource bundle for the given key * * @param key The resource key * @return The message */ public String getMessage(String key) throws MissingResourceException { return getMessage(key, (String[]) null); }
/** * Returns the Axis Version number and build date. * <p/> * Example output: 1.1 Jul 08, 2003 (09:00:12 EDT) * * @return the full version of this axis2 */ public static String getVersionText() { return Messages.getMessage("axisVersionRaw"); }
/** * Get a message from resource.properties from the package of the given object. * * @param caller The calling object, used to get the package name and class loader * @param key The resource key * @return The formatted message */ public static String getString(Object caller, String key) throws MissingResourceException { return getMessage(caller, BASE_NAME, null, key, null); }
public final ProjectResourceBundle getResourceBundle() { if (!loaded) { _resourceBundle = ProjectResourceBundle.getBundle(projectName, packageName, resourceName, locale, classLoader, parent); loaded = true; } return _resourceBundle; }
/** * Gets a string message from the resource bundle for the given key * * @param key The resource key * @return The message */ public String getString(String key) throws MissingResourceException { return getString(key, (Object[]) null); }
/** * Get a message from resource.properties from the package of the given object. * * @param key The resource key * @param args An array of objects to place in corresponding variables * @return The formatted message */ public static String getMessage(String key, String[] args) throws MissingResourceException { MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY); return messageBundle.getMessage(key, args); }
public static ResourceBundle getResourceBundle() { MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY); return messageBundle.getResourceBundle(); }
/** * Gets a message from resource.properties from the package of the given object. * * @param key The resource key * @param arg0 The argument to place in variable {0} * @param arg1 The argument to place in variable {1} * @return Returns the formatted message. */ public static String getMessage(String key, String arg0, String arg1) throws MissingResourceException { return messageBundle.getMessage(key, arg0, arg1); }
/** * Get a message from resource.properties from the package of the given object. * * @param caller The calling object, used to get the package name and class loader * @param key The resource key * @param args An array of objects to place in corresponding variables * @return Returns the formatted message. */ public static String getString(Object caller, String key, Object[] args) throws MissingResourceException { return getMessage(caller, BASE_NAME, null, key, args); }
/** * Get a message from resource.properties from the package of the given object. * * @param key The resource key * @return The formatted message */ public static String getMessage(String key) throws MissingResourceException { MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY); return messageBundle.getMessage(key); }
/** * Gets a message from resource.properties from the package of the given object. * * @param key The resource key * @param arg0 The argument to place in variable {0} * @return Returns the formatted message. */ public static String getMessage(String key, String arg0) throws MissingResourceException { return messageBundle.getMessage(key, arg0); }
/** * Get a message from resource.properties from the package of the given object. * * @param caller The calling object, used to get the package name and class loader * @param locale The locale * @param key The resource key * @return The formatted message */ public static String getString(Object caller, Locale locale, String key) throws MissingResourceException { return getMessage(caller, BASE_NAME, locale, key, null); }
/** * Get a message from resource.properties from the package of the given object. * * @param key The resource key * @param arg0 The argument to place in variable {0} * @return The formatted message */ public static String getMessage(String key, String arg0) throws MissingResourceException { MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY); return messageBundle.getMessage(key, arg0); }
/** * Get a message from resource.properties from the package of the given object. * * @param key The resource key * @param arg0 The argument to place in variable {0} * @param arg1 The argument to place in variable {1} * @return The formatted message */ public static String getMessage(String key, String arg0, String arg1) throws MissingResourceException { MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY); return messageBundle.getMessage(key, arg0, arg1); }
/** * Get a message from resource.properties from the package of the given object. * * @param key The resource key * @return The formatted message */ public static String getMessage(String key) throws MissingResourceException { MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY); return messageBundle.getMessage(key); }
/** * Get a message from resource.properties from the package of the given object. * * @param key The resource key * @param args An array of objects to place in corresponding variables * @return The formatted message */ public static String getMessage(String key, String[] args) throws MissingResourceException { MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY); return messageBundle.getMessage(key, args); }
/** * Get a message from resource.properties from the package of the given object. * * @param key The resource key * @param arg0 The argument to place in variable {0} * @param arg1 The argument to place in variable {1} * @param arg2 The argument to place in variable {2} * @return The formatted message */ public static String getMessage(String key, String arg0, String arg1, String arg2) throws MissingResourceException { MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY); return messageBundle.getMessage(key, arg0, arg1, arg2); }
/** * Get a message from resource.properties from the package of the given object. * * @param key The resource key * @param arg0 The argument to place in variable {0} * @param arg1 The argument to place in variable {1} * @return The formatted message */ public static String getMessage(String key, String arg0, String arg1) throws MissingResourceException { MessageBundle messageBundle = getMessageBundle(DEFAULT_MESSAGE_BUNDLE_KEY); return messageBundle.getMessage(key, arg0, arg1); }