public final class StringResourceAccess
extends java.lang.Object
Note: This class is not part of the public JGoodies Common API. It is intended for implementation purposes only. The class's API may change at any time.
| Constructor and Description |
|---|
StringResourceAccess() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getResourceString(StringResourceAccessor accessor,
java.lang.String key,
java.lang.Object... args)
Looks up and returns a String associated with the given resource key
from the given StringResourceAccessor.
|
public static java.lang.String getResourceString(StringResourceAccessor accessor, java.lang.String key, java.lang.Object... args)
String.format
with the given arguments.If the resource is missing, the key itself is returned.
accessor - maps keys to resource Stringskey - the key in the resource bundleargs - optional format arguments forwarded to String#formatString.format(String, Object...)