com.ibm.workflow.servlet.client
Class CatalogImpl

java.lang.Object
  |
  +--com.ibm.workflow.servlet.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
 

Constructor Detail

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)
Method Detail

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.servlet.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.servlet.client.Catalog
Parameters:
key - The message ID
subst - 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.servlet.client.Catalog
Parameters:
key - The message ID
subst - 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 1999, 2007. All Rights Reserved.