public class MessagesImpl extends AbstractMessages
Messages
based around a ResourceBundle
.Constructor and Description |
---|
MessagesImpl(Locale locale,
ResourceBundle bundle) |
Modifier and Type | Method and Description |
---|---|
static Messages |
forClass(Class forClass)
Finds the messages for a given Messages utility class.
|
Set<String> |
getKeys()
Returns a set of all the keys for which this instance may provide a value.
|
protected String |
valueForKey(String key)
Invoked to provide the value for a particular key.
|
contains, format, get, getFormatter
public MessagesImpl(Locale locale, ResourceBundle bundle)
public static Messages forClass(Class forClass)
forClass
- protected String valueForKey(String key)
AbstractMessages
valueForKey
in class AbstractMessages
key
- the key to obtain a value for (case insensitive)${project.version} - Copyright © 2003-2015 The Apache Software Foundation.