wt.identity
Class StandardNumberedNamedIdentifier

java.lang.Object
  extended bywt.identity.StandardNumberedNamedIdentifier
All Implemented Interfaces:
LocalizableMessage, Message, Serializable

public class StandardNumberedNamedIdentifier
extends Object
implements LocalizableMessage, Serializable

Provides a basic means to extract and format a number field and name field from an object. The information is formated via a resource bundle tag. Uses resource bundle wt.identity.identityResource and primary tagidentityResource.NUMBERNAME plus tagNUMBERNAME_NUMBER_NULL, NUMBERNAME_NAME_NULL, NUMBERNAME_BOTH_NULL for null value situations.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  Object name
           
private  Object number
           
private  Object orgUniqueIdentifier
           
private static String RESOURCE
           
private static boolean SHOW_ORGID
           
 
Constructor Summary
StandardNumberedNamedIdentifier(Object object)
          Constructs a StandardNumberedNamedIdentifier object from the supplied object.
 
Method Summary
 String getLocalizedMessage(Locale locale)
          Returns the identity of in the form of a localized message for the specified locale.
private  Object getProperty(String property_name, Object object)
           
 String toString()
          Returns the identity in string form, based on the current locale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

number

private Object number

name

private Object name

orgUniqueIdentifier

private Object orgUniqueIdentifier

SHOW_ORGID

private static boolean SHOW_ORGID
Constructor Detail

StandardNumberedNamedIdentifier

public StandardNumberedNamedIdentifier(Object object)
Constructs a StandardNumberedNamedIdentifier object from the supplied object. The object specified is expected to have name and number properties that can be gathered through java introspection.

Supported API: false

Parameters:
object -
Method Detail

getLocalizedMessage

public String getLocalizedMessage(Locale locale)
Returns the identity of in the form of a localized message for the specified locale.

Supported API: false

Specified by:
getLocalizedMessage in interface LocalizableMessage
Parameters:
locale -
Returns:
String

toString

public String toString()
Returns the identity in string form, based on the current locale.

Supported API: false

Returns:
String

getProperty

private Object getProperty(String property_name,
                           Object object)