public class MapMessages extends AbstractMessages
Messages
based on a simple Map (of string keys and values).Constructor and Description |
---|
MapMessages(java.util.Locale locale,
java.util.Map<java.lang.String,java.lang.String> properties)
A new instance retaining (not copying) the provided map.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getKeys()
Returns a set of all the keys for which this instance may provide a value.
|
protected java.lang.String |
valueForKey(java.lang.String key)
Invoked to provide the value for a particular key.
|
contains, format, get, getFormatter
public MapMessages(java.util.Locale locale, java.util.Map<java.lang.String,java.lang.String> properties)
protected java.lang.String valueForKey(java.lang.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.