wt.introspection
Class PropertyDisplayName

java.lang.Object
  extended bywt.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

Field Summary
private  String className
           
private  String propertyName
           
private static boolean VERBOSE
           
 
Constructor Summary
PropertyDisplayName(String class_name, String property_name)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERBOSE

private static final boolean VERBOSE
See Also:
Constant Field Values

className

private String className

propertyName

private String propertyName
Constructor Detail

PropertyDisplayName

public PropertyDisplayName(String class_name,
                           String property_name)
Method Detail

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.