Class MapMessages
java.lang.Object
org.apache.tapestry5.commons.util.AbstractMessages
org.apache.tapestry5.internal.services.MapMessages
- All Implemented Interfaces:
Messages
Implementation of
Messages
based on a simple Map (of string keys and values).-
Constructor Summary
ConstructorsConstructorDescriptionMapMessages
(Locale locale, Map<String, String> properties) A new instance retaining (not copying) the provided map. -
Method Summary
Methods inherited from class org.apache.tapestry5.commons.util.AbstractMessages
contains, format, get, getFormatter
-
Constructor Details
-
MapMessages
A new instance retaining (not copying) the provided map.
-
-
Method Details
-
valueForKey
Description copied from class:AbstractMessages
Invoked to provide the value for a particular key. This may be invoked multiple times even for the same key. The implementation should ignore the case of the key.- Specified by:
valueForKey
in classAbstractMessages
- Parameters:
key
- the key to obtain a value for (case insensitive)- Returns:
- the value for the key, or null if this instance can not provide the value
-
getKeys
Description copied from interface:Messages
Returns a set of all the keys for which this instance may provide a value.- Returns:
- set of keys
-