Methods Summary |
---|
private java.util.Collection | getCollection(java.util.Enumeration enumeration)
List returnList = new ArrayList();
if (enumeration != null)
{
while (enumeration.hasMoreElements())
returnList.add(enumeration.nextElement());
}
return returnList;
|
public java.util.Enumeration | getKeys() return mergeKeys();
|
protected java.lang.Object | handleGetObject(java.lang.String key)
try
{
return _mainBundle.getObject(key);
}
catch (MissingResourceException mre) // try the other bundle
{
return _parentBundle.getObject(key);
}
|
private java.util.Enumeration | mergeKeys()
Set noDuplicatesMerge =
new HashSet(getCollection(_mainBundle.getKeys()));
noDuplicatesMerge.addAll(getCollection(_parentBundle.getKeys()));
return Collections.enumeration(noDuplicatesMerge);
|