org.codehaus.waffle.i18n
Interface MessageResources

All Known Implementing Classes:
DefaultMessageResources

public interface MessageResources

Represents message resources for a given URI and locale. The URI can be any string encoding the name or location of the message resources, and it's the responsibility of the implementing classes to specify the decoding.

Author:
Michael Ward, Mauro Talevi

Method Summary
 java.util.Locale getLocale()
           
 java.lang.String getMessage(java.lang.String key, java.lang.Object... arguments)
           
 java.lang.String getMessageWithDefault(java.lang.String key, java.lang.String defaultValue, java.lang.Object... arguments)
           
 java.lang.String getResource()
          Deprecated. Use getURI()
 java.lang.String getURI()
           
 void useLocale(java.util.Locale locale)
           
 void useResource(java.lang.String resource)
          Deprecated. Use useURI(String)
 void useURI(java.lang.String uri)
           
 

Method Detail

getResource

java.lang.String getResource()
Deprecated. Use getURI()


useResource

void useResource(java.lang.String resource)
Deprecated. Use useURI(String)


getURI

java.lang.String getURI()

useURI

void useURI(java.lang.String uri)

getLocale

java.util.Locale getLocale()

useLocale

void useLocale(java.util.Locale locale)

getMessage

java.lang.String getMessage(java.lang.String key,
                            java.lang.Object... arguments)

getMessageWithDefault

java.lang.String getMessageWithDefault(java.lang.String key,
                                       java.lang.String defaultValue,
                                       java.lang.Object... arguments)


Copyright © 2008. All Rights Reserved.