All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.wizards.core.MsgCat

java.lang.Object
   |
   +----com.sun.wizards.core.MsgCat

public abstract class MsgCat
extends Object
MsgCat is a message catalog that facilitates localization of string resources. It can look up locale-specific resource bundles and extract messages from them.

See Also:
ListResourceBundle

Constructor Index

 o MsgCat()

Method Index

 o form(String, int, Object[])
Return a formated localized string based on a specified message pattern number. Deprecated.
 o form(String, String, Object[])
Return a formated localized string based on a specified message pattern key. Deprecated.
 o getString(String, int)
Return a localized string for the supplied message number.
 o getString(String, int, Object[])
Return a formated localized string based on a specified message pattern number.
 o getString(String, String)
Return a localized string for the supplied message key.
 o getString(String, String, Object[])
Return a formated localized string based on a specified message pattern key.
 o str(String, int)
Return a localized string for the supplied message number. Deprecated.
 o str(String, String)
Return a localized string for the supplied message key. Deprecated.

Constructors

 o MsgCat
 public MsgCat()

Methods

 o form
 public static String form(String shortResName,
                           int msgNum,
                           Object msgArgs[])
Note: form() is deprecated. Use getString(String, String, Object[]).

Return a formated localized string based on a specified message pattern number.

Parameters:
shortResName - The name of the resource class, not including the appended language and country identifiers.
msgNum - An identifier that specifies which string within the resource is being requested.
msgArgs - Arguments that are to be inserted into the localized string.
Returns:
The localized string.
 o getString
 public static String getString(String shortResName,
                                int msgNum,
                                Object msgArgs[])
Return a formated localized string based on a specified message pattern number.

Parameters:
shortResName - The name of the resource class, not including the appended language and country identifiers.
msgNum - An identifier that specifies which string within the resource is being requested.
msgArgs - Arguments that are to be inserted into the localized string.
Returns:
The localized string.
 o form
 public static String form(String shortResName,
                           String msgKey,
                           Object msgArgs[])
Note: form() is deprecated. Use getString(String, String, Object[]).

Return a formated localized string based on a specified message pattern key.

Parameters:
shortResName - The name of the resource class, not including the appended language and country identifiers.
msgKey - An identifier that specifies which string within the resource is being requested.
msgArgs - Arguments that are to be inserted into the localized string.
Returns:
The localized string.
 o getString
 public static String getString(String shortResName,
                                String msgKey,
                                Object msgArgs[])
Return a formated localized string based on a specified message pattern key.

Parameters:
shortResName - The name of the resource class, not including the appended language and country identifiers.
msgKey - An identifier that specifies which string within the resource is being requested.
msgArgs - Arguments that are to be inserted into the localized string.
Returns:
The localized string.
 o str
 public static String str(String shortResName,
                          int msgNum)
Note: str() is deprecated. Use getString(String, String).

Return a localized string for the supplied message number.

Parameters:
shortResName - The name of the resource class, not including the appended language and country identifiers.
msgNum - An identifier that specifies which string within the resource is being requested.
Returns:
The localized string.
 o getString
 public static String getString(String shortResName,
                                int msgNum)
Return a localized string for the supplied message number.

Parameters:
shortResName - The name of the resource class, not including the appended language and country identifiers.
msgNum - An identifier that specifies which string within the resource is being requested.
Returns:
The localized string.
 o str
 public static String str(String shortResName,
                          String msgKey)
Note: str() is deprecated. Use getString(String, String).

Return a localized string for the supplied message key.

Parameters:
shortResName - The name of the resource class, not including the appended language and country identifiers.
msgKey - An identifier that specifies which string within the resource is being requested.
Returns:
The localized string.
 o getString
 public static String getString(String shortResName,
                                String msgKey)
Return a localized string for the supplied message key.

Parameters:
shortResName - The name of the resource class, not including the appended language and country identifiers.
msgKey - An identifier that specifies which string within the resource is being requested.
Returns:
The localized string.

All Packages  Class Hierarchy  This Package  Previous  Next  Index