Looks up the value for a given key in the format "BundleName:BundleKey".
For example: "com.domain.messages:MyKey".
Public access is through StringLookupFactory.
StringLookupFactory, ResourceBundle
| Modifier and Type | Field and Description |
|---|---|
| private final String | bundleName
The name of the resource bundle from which to look something up. |
| pack-priv static final ResourceBundleStringLookup | INSTANCE
Defines the singleton for this class. |
| Access | Constructor and Description |
|---|---|
| private | |
| pack-priv | ResourceBundleStringLookup(final String
the name of the resource bundle from which we will look keys up. bundleName)Constructs an instance that only works for the given bundle. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ResourceBundle | |
| pack-priv String | |
| public String | Returns: The value associated with the key.the key to be looked up, may be null. key)Implements org. Looks up the value for the key in the format "BundleName:BundleKey". |
| public String |
| bundleName | back to summary |
|---|---|
| private final String bundleName The name of the resource bundle from which to look something up. | |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final ResourceBundleStringLookup INSTANCE Defines the singleton for this class. | |
| ResourceBundleStringLookup | back to summary |
|---|---|
| private ResourceBundleStringLookup() Constructs a blank instance. | |
| ResourceBundleStringLookup | back to summary |
|---|---|
| pack-priv ResourceBundleStringLookup(final String bundleName) Constructs an instance that only works for the given bundle.
| |
| getBundle | back to summary |
|---|---|
| pack-priv ResourceBundle getBundle(final String keyBundleName) | |
| getString | back to summary |
|---|---|
| pack-priv String getString(final String keyBundleName, final String bundleKey) | |
| lookup | back to summary |
|---|---|
| public String lookup(final String key) Implements org. Looks up the value for the key in the format "BundleName:BundleKey". For example: "com.domain.messages:MyKey".
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |