com.ibm.workflow.portlet.client
Class CatalogImpl
java.lang.Object
|
+--com.ibm.workflow.portlet.client.CatalogImpl
- All Implemented Interfaces:
- Catalog, java.io.Serializable
- public final class CatalogImpl
- extends java.lang.Object
- implements Catalog, java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
CatalogImpl(javax.servlet.http.HttpServletRequest request)
|
CatalogImpl(java.util.Locale locale)
|
CatalogImpl(java.lang.String bundleName,
javax.servlet.http.HttpServletRequest request)
|
CatalogImpl(java.lang.String bundleName,
java.util.Locale locale)
|
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()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CatalogImpl
public CatalogImpl(java.util.Locale locale)
CatalogImpl
public CatalogImpl(java.lang.String bundleName,
java.util.Locale locale)
CatalogImpl
public CatalogImpl(javax.servlet.http.HttpServletRequest request)
CatalogImpl
public CatalogImpl(java.lang.String bundleName,
javax.servlet.http.HttpServletRequest request)
get
public java.lang.String get(java.lang.String key)
- Description copied from interface:
Catalog
- Query a message without substitution variables.
- Specified by:
get
in interface Catalog
- Following copied from interface:
com.ibm.workflow.portlet.client.Catalog
- 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)
- Description copied from interface:
Catalog
- Query a message with one substitution variable.
- Specified by:
get
in interface Catalog
- Following copied from interface:
com.ibm.workflow.portlet.client.Catalog
- 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)
- Description copied from interface:
Catalog
- Query a message with multiple substitution variables.
- Specified by:
get
in interface Catalog
- Following copied from interface:
com.ibm.workflow.portlet.client.Catalog
- 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()
- Specified by:
getLocale
in interface Catalog
© Copyright IBM Corporation 2002, 2008. All Rights Reserved.