|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.i18n.ResourceBundle
net.rim.device.api.i18n.ResourceBundleFamily
public class ResourceBundleFamily
A ResourceBundle that contains a collection of ResourceBundles.
Method Summary | ||
---|---|---|
ResourceBundle |
getBundle(Locale locale)
Retrieves bundle by locale. |
|
long |
getId()
Retrieves this bundle family's ID. |
|
String |
getName()
Retrieves this bundle family's name. |
|
protected Object |
handleGetObject(int key)
Retrieves resource object handle by integer key. |
|
boolean |
isEmpty()
Determines if this bundle family contains no resource bundles. |
|
void |
put(Locale locale,
ResourceBundle bundle)
Adds a resource bundle to this bundle family. |
|
boolean |
verify(CodeSigningKey key)
Determines if all resource bundles in this family are signed with provided key. |
Methods inherited from class net.rim.device.api.i18n.ResourceBundle |
---|
getBundle, getBundle, getBundle, getFamily, getLocale, getObject, getObject, getString, getStringArray |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public ResourceBundle getBundle(Locale locale)
This method returns the resource bundle associated with a locale. If not present, this method returns the closest parent resource, and if still not present, returns null.
locale
- Locale owning bundle.
public long getId()
public String getName()
protected Object handleGetObject(int key) throws MissingResourceException
This method searches in this bundle for the object; if not found, then it chains back searching enclosing parent bundles for the object.
handleGetObject
in class ResourceBundle
key
- Integer key associated with resource object.
MissingResourceException
- If the object associated with the key
not found.public boolean isEmpty()
public void put(Locale locale, ResourceBundle bundle)
locale
- Locale for added resource bundle; if the parent locale is
not yet present, this method waits for it.bundle
- Resource bundle to add to this family.
IllegalStateException
- If called from the wrong module.
MissingResourceException
- If the parent resource module is not
found.public boolean verify(CodeSigningKey key)
key
- Code signing key to test against. If null, then this method
always returns true.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal