wt.identity
Class StandardNumberedNamedIdentifier
java.lang.Object
wt.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
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
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
-
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)