/** * Since we are changing the ResourceBundle extension point, must * implement getKeys() using delegate getBundle(). * * Implements java.util.ResourceBundle.getKeys; inherits that javadoc * information. * * @see java.util.ResourceBundle#getKeys() */ public final Enumeration getKeys() { return getBundle().getKeys(); } }
/** * Since we are changing the ResourceBundle extension point, must * implement getKeys() using delegate getBundle(). * * Implements java.util.ResourceBundle.getKeys; inherits that javadoc * information. * * @see java.util.ResourceBundle#getKeys() */ public final Enumeration getKeys() { return getBundle().getKeys(); } }
/** * Gets 'key' from ResourceBundle and format mesage using 'args'. * * @param key String key for message. * @param args Array of arguments for message. * @return String formatted message. */ public String getString(String key, Object args[]) { String pattern = getBundle().getString(key); return MessageFormat.format(pattern, args); }
/** * Since we are changing the ResourceBundle extension point, must * implement getKeys() using delegate getBundle(). * * Implements java.util.ResourceBundle.getKeys; inherits that javadoc * information. * * @see java.util.ResourceBundle#getKeys() */ public final Enumeration getKeys() { return getBundle().getKeys(); } }
/** * Since we are changing the ResourceBundle extension point, must * implement handleGetObject() using delegate getBundle(). Uses * getObject() call to work around protected access to * ResourceBundle.handleGetObject(). Happily, this means parent tree * of delegate bundle is searched for a match. * * Implements java.util.ResourceBundle.handleGetObject; inherits that * javadoc information. * * @see java.util.ResourceBundle#handleGetObject(String) */ protected Object handleGetObject(String key) { return getBundle().getObject(key); }
/** * Gets 'key' from ResourceBundle and format mesage using 'args'. * * @param key String key for message. * @param args Array of arguments for message. * @return String formatted message. */ public String getString(String key, Object args[]) { String pattern = getBundle().getString(key); return MessageFormat.format(pattern, args); }
/** * Gets 'key' from ResourceBundle and format mesage using 'args'. * * @param key String key for message. * @param args Array of arguments for message. * @return String formatted message. */ public String getString(String key, Object args[]) { String pattern = getBundle().getString(key); return MessageFormat.format(pattern, args); }
/** * Since we are changing the ResourceBundle extension point, must * implement handleGetObject() using delegate getBundle(). Uses * getObject() call to work around protected access to * ResourceBundle.handleGetObject(). Happily, this means parent tree * of delegate bundle is searched for a match. * * Implements java.util.ResourceBundle.handleGetObject; inherits that * javadoc information. * * @see java.util.ResourceBundle#handleGetObject(String) */ protected Object handleGetObject(String key) { return getBundle().getObject(key); }
/** * Since we are changing the ResourceBundle extension point, must * implement handleGetObject() using delegate getBundle(). Uses * getObject() call to work around protected access to * ResourceBundle.handleGetObject(). Happily, this means parent tree * of delegate bundle is searched for a match. * * Implements java.util.ResourceBundle.handleGetObject; inherits that * javadoc information. * * @see java.util.ResourceBundle#handleGetObject(String) */ protected Object handleGetObject(String key) { return getBundle().getObject(key); }
/** * Gets 'key' from ResourceBundle and format mesage using 'args'. * * @param key String key for message. * @param args Array of arguments for message. * @param locale Locale in which to perform key lookup. * @return String formatted message. */ public String getString(String key, Object args[], Locale locale) { String pattern = null; if (locale == null) { pattern = getBundle().getString(key); } else { pattern = getBundle(_bundleName, locale).getString(key); } return MessageFormat.format(pattern, args); }