wt.introspection
Class ClassDisplayName
java.lang.Object
wt.introspection.ClassDisplayName
- All Implemented Interfaces:
- LocalizableMessage, Message, Serializable
- public class ClassDisplayName
- extends Object
- implements LocalizableMessage, Serializable
ClassDisplayName exists as a wrapper for obtaining a display name for
a class. This should be used when the display name will need to be
obtained in a different memory space, having a different locale,
than the one, in which it is being requested.
As an example, it should be used in exception arguments that are constructed
in the server, but may be displayed (localized) on a remote client.
Supported API: false
Extendable: false
- See Also:
ClassInfo
,
Serialized Form
Method Summary |
String |
getLocalizedMessage(Locale locale)
Returns a String that is the display name for the Class,
based on the passed locale. |
static void |
main(String[] argv)
example for testing:
java wt.introspection.ClassDisplayName wt.doc.General |
String |
toString()
Returns a String that is the display name for the Class,
based on the current locale. |
VERBOSE
private static final boolean VERBOSE
- See Also:
- Constant Field Values
className
private String className
ClassDisplayName
public ClassDisplayName(String class_name)
getLocalizedMessage
public String getLocalizedMessage(Locale locale)
- Returns a String that is the display name for the Class,
based on the passed locale.
- Specified by:
getLocalizedMessage
in interface LocalizableMessage
- Parameters:
locale
-
- Returns:
- String
main
public static void main(String[] argv)
- example for testing:
java wt.introspection.ClassDisplayName wt.doc.General
toString
public String toString()
- Returns a String that is the display name for the Class,
based on the current locale.