Class MapMessages
- java.lang.Object
 - 
- org.apache.tapestry5.commons.util.AbstractMessages
 - 
- org.apache.tapestry5.internal.services.MapMessages
 
 
 
- 
- All Implemented Interfaces:
 Messages
public class MapMessages extends AbstractMessages
Implementation ofMessagesbased on a simple Map (of string keys and values). 
- 
- 
Constructor Summary
Constructors Constructor Description MapMessages(Locale locale, Map<String,String> properties)A new instance retaining (not copying) the provided map. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getKeys()Returns a set of all the keys for which this instance may provide a value.protected StringvalueForKey(String key)Invoked to provide the value for a particular key.- 
Methods inherited from class org.apache.tapestry5.commons.util.AbstractMessages
contains, format, get, getFormatter 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
MapMessages
public MapMessages(Locale locale, Map<String,String> properties)
A new instance retaining (not copying) the provided map. 
 - 
 
- 
Method Detail
- 
valueForKey
protected String valueForKey(String key)
Description copied from class:AbstractMessagesInvoked 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:
 valueForKeyin 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
 
 
 - 
 
 -