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
-
MsgCat()
-
-
form(String, int, Object[])
- Return a formated localized string based on
a specified message pattern number.
Deprecated.
-
form(String, String, Object[])
- Return a formated localized string based on
a specified message pattern key.
Deprecated.
-
getString(String, int)
- Return a localized string for the supplied message number.
-
getString(String, int, Object[])
- Return a formated localized string based on
a specified message pattern number.
-
getString(String, String)
- Return a localized string for the supplied message key.
-
getString(String, String, Object[])
- Return a formated localized string based on
a specified message pattern key.
-
str(String, int)
- Return a localized string for the supplied message number.
Deprecated.
-
str(String, String)
- Return a localized string for the supplied message key.
Deprecated.
MsgCat
public MsgCat()
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.
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.
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.
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.
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.
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.
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.
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