Package wt.util
Class CollationKeyFactory
java.lang.Object
wt.util.CollationKeyFactory
- Direct Known Subclasses:
AbstractValueViewCollationKeyFactory,ClassnameCollationKeyFactory,DomainRefCollationKeyFactory,FolderCollationKeyFactory,IdentityCollationKeyFactory,PrincipalCollationKeyFactory,QueryCollationKeyFactory,WTProductConfigurationCollationKeyFactory
A factory for object collation keys.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a collation key factory for the currentWTContext's locale.CollationKeyFactory(Locale locale) Construct a collation key factory for the given locale. -
Method Summary
Modifier and TypeMethodDescriptiongetCollationString(Object obj) Get a collation string for the given object.Get a collation key for the given object.Get the locale corresponding to this factory.
-
Constructor Details
-
CollationKeyFactory
public CollationKeyFactory()Construct a collation key factory for the currentWTContext's locale.
Supported API: true- Parameters:
locale- desired locale
-
CollationKeyFactory
Construct a collation key factory for the given locale.
Supported API: true- Parameters:
locale- desired locale
-
-
Method Details
-
getLocale
Get the locale corresponding to this factory.
Supported API: true- Returns:
- locale specified when factory was contstructed
-
getKey
Get a collation key for the given object.
Supported API: true- Parameters:
obj- the object- Returns:
- collation key
-
getCollationString
Get a collation string for the given object. It is used as the source string for the collation key. This method returnsobj.toString(). Subclasses should override to produce the desired collation string.
Supported API: true- Parameters:
obj- the object- Returns:
- string collation key source string
-