wt.identity
Class StandardDisplayIdentity

java.lang.Object
  extended bywt.identity.StandardDisplayIdentity
All Implemented Interfaces:
DisplayIdentity, LocalizableMessage, Message, Serializable
Direct Known Subclasses:
StandardEffGroupDisplayIdentity, StandardIterationDisplayIdentity, StandardProductInstanceDisplayIdentity, StandardRevisionDisplayIdentity, StandardRevisionViewDisplayIdentity, StandardVersionedDisplayIdentity, StandardViewDisplayIdentity, StandardWTProductConfigurationDisplayIdentity, StandardWTProductInstance2DisplayIdentity

public class StandardDisplayIdentity
extends Object
implements DisplayIdentity, Serializable

Implements DisplayIdentity using a resource bundle and message key.

Supported API: true

Extendable: true

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  LocalizableMessage displayIdentifier
           
private  LocalizableMessage displayType
           
private  String messageKey
           
private static String RESOURCE
           
private  String resourceBundle
           
 
Fields inherited from interface wt.identity.DisplayIdentity
DISPLAY_IDENTIFIER, DISPLAY_TYPE
 
Constructor Summary
StandardDisplayIdentity(String resource_bundle, String message_key, LocalizableMessage display_type, LocalizableMessage display_identifier)
          

Supported API: false
 
Method Summary
 LocalizableMessage getDisplayIdentifier()
          Gets the value of the attribute: displayIdentifier.
 LocalizableMessage getDisplayType()
          Gets the value of the attribute: displayType.
 String getLocalizedMessage(Locale locale)
          Returns the identity of in the form of a localized message for the specified locale.
protected  void setDisplayIdentifier(LocalizableMessage a_identifier)
           
protected  void setDisplayType(LocalizableMessage a_type)
           
 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

resourceBundle

private String resourceBundle

messageKey

private String messageKey

displayType

private LocalizableMessage displayType

displayIdentifier

private LocalizableMessage displayIdentifier
Constructor Detail

StandardDisplayIdentity

public StandardDisplayIdentity(String resource_bundle,
                               String message_key,
                               LocalizableMessage display_type,
                               LocalizableMessage display_identifier)


Supported API: false

Parameters:
resource_bundle -
message_key -
display_type -
display_identifier -
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: true

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: true

Returns:
String

getDisplayType

public LocalizableMessage getDisplayType()
Gets the value of the attribute: displayType.

Supported API: false

Specified by:
getDisplayType in interface DisplayIdentity
Returns:
LocalizableMessage

getDisplayIdentifier

public LocalizableMessage getDisplayIdentifier()
Gets the value of the attribute: displayIdentifier.

Supported API: false

Specified by:
getDisplayIdentifier in interface DisplayIdentity
Returns:
LocalizableMessage

setDisplayType

protected void setDisplayType(LocalizableMessage a_type)

setDisplayIdentifier

protected void setDisplayIdentifier(LocalizableMessage a_identifier)