com.ibm.workflow.portlet.client
Interface Catalog
- All Known Subinterfaces:
- SessionContext
- public interface Catalog
This class defines the interface to message catalogs. Basically, it
wraps a java.util.ResourceBundle and maps any exceptions
to null strings. Call the RequestContext.getCatalog(java.lang.String) factory method
to create a catalog specific to the client browser's locale.
See the InternetConnectionViewer
sample for how to use this class.
|
Method Summary |
java.lang.String |
get(java.lang.String key)
Query a message without substitution variables. |
java.lang.String |
get(java.lang.String key,
java.lang.String subst)
Query a message with one substitution variable. |
java.lang.String |
get(java.lang.String key,
java.lang.String[] subst)
Query a message with multiple substitution variables. |
java.util.Locale |
getLocale()
|
get
public java.lang.String get(java.lang.String key)
- Query a message without substitution variables.
- Parameters:
key - The message ID- Returns:
- the message or
null if it could not be found
get
public java.lang.String get(java.lang.String key,
java.lang.String subst)
- Query a message with one substitution variable.
- Parameters:
key - The message IDsubst - The variable- Returns:
- the message or
null if it could not be found
get
public java.lang.String get(java.lang.String key,
java.lang.String[] subst)
- Query a message with multiple substitution variables.
- Parameters:
key - The message IDsubst - An array of variables- Returns:
- the message or
null if it could not be found
getLocale
public java.util.Locale getLocale()
© Copyright IBM Corporation 2002, 2002. All Rights Reserved.