FileDocCategorySizeDatePackage
CollationAbstractionLayerImpl.javaAPI DocphoneME MR2 API (J2ME)2732Wed May 02 18:00:46 BST 2007com.sun.j2me.global

CollationAbstractionLayerImpl

public class CollationAbstractionLayerImpl extends CollationAbstractionLayer
This class customizes the {@link javax.microedition.global.StringComparator} implementation to the emulator needs.

Fields Summary
Constructors Summary
public CollationAbstractionLayerImpl()
Create instance of CollationAbstractionLayerImpl. This constructor is necessary because of Class.forName() creation call in {@link com.sun.j2me.global.CollationAbstractionLayer#getInstance}.

 
Methods Summary
public CommonStringComparatorgetStringComparator(java.lang.String locale, int level)
Returns an instance of the {@link StringComparatorImpl} class, which realizes all StringComparator methods.

param
locale the locale to use with this StringComparator
param
level level of collation, as defined in StringComparator
return
the instance of StringComparatorImpl

        return new StringComparatorImpl(locale, level);
    
public java.lang.String[]getSupportedLocales()
Gets the locales for which a StringComparator is available in this implementation. If no locales are supported, the returned array must be empty, not null. As the value null is not technically a valid locale, but a special value to trigger the generic collation algorithm, it must not appear in the array.

return
an array of valid microedition.locale values

        return CollationElementTableImpl.getSupportedLocales();