to.etc.webapp.nls
Class NlsMessageProviderList

java.lang.Object
  extended by to.etc.webapp.nls.NlsMessageProviderList
All Implemented Interfaces:
NlsMessageProvider

public class NlsMessageProviderList
extends java.lang.Object
implements NlsMessageProvider

A list of message providers.

Author:
Frits Jalvingh Created on Oct 10, 2006

Constructor Summary
NlsMessageProviderList()
           
 
Method Summary
 void addProvider(NlsMessageProvider p)
           
 java.lang.String findMessage(java.util.Locale loc, java.lang.String code)
          Locate the specified key for the specified locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NlsMessageProviderList

public NlsMessageProviderList()
Method Detail

findMessage

public java.lang.String findMessage(java.util.Locale loc,
                                    java.lang.String code)
Description copied from interface: NlsMessageProvider
Locate the specified key for the specified locale. This does fallback, meaning that if the exact locale is not matched it will try a less restrictive one, until the empty (default) locale has been reached. The first match is returned; if not even the empty locale returns a match this returns null.

Specified by:
findMessage in interface NlsMessageProvider
Returns:

addProvider

public void addProvider(NlsMessageProvider p)