wt.introspection
Class PropertyDisplayName
java.lang.Object
wt.introspection.PropertyDisplayName
- All Implemented Interfaces:
- LocalizableMessage, Message, Serializable
- public class PropertyDisplayName
- extends Object
- implements LocalizableMessage, Serializable
PropertyDisplayName exists as a wrapper for obtaining a display name for
a property of 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
,
PropertyDescriptor
,
Serialized Form
Method Summary |
String |
getLocalizedMessage(Locale locale)
Returns a String that is the display name of the Class's Property,
based on the passed locale. |
static void |
main(String[] argv)
example for testing:
java wt.introspection.PropertyDisplayName wt.fc.PersistInfo |
String |
toString()
Returns a String that is the display name of the Class's Property,
based on the current locale. |
VERBOSE
private static final boolean VERBOSE
- See Also:
- Constant Field Values
className
private String className
propertyName
private String propertyName
PropertyDisplayName
public PropertyDisplayName(String class_name,
String property_name)
getLocalizedMessage
public String getLocalizedMessage(Locale locale)
- Returns a String that is the display name of the Class's Property,
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.PropertyDisplayName wt.fc.PersistInfo
toString
public String toString()
- Returns a String that is the display name of the Class's Property,
based on the current locale.