|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.g11ntoolkit.util.CheckLocale
Check a string to see if it is a valid locale name.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
See License Agreement.
| Field Summary | |
private static java.util.Hashtable |
availableLocales
A list of all available locales in the system. |
| Constructor Summary | |
CheckLocale()
Your basic default constructor. |
|
| Method Summary | |
java.util.Locale |
getLocale(java.lang.String localeString)
Returns the locale object for the specified string, if the string is a valid locale name. |
private static java.util.Hashtable |
getTable()
Returns the hashtable of available locales. |
boolean |
isValid(java.lang.String locale)
Checks the specified string to see if it is a valid locale name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.util.Hashtable availableLocales
| Constructor Detail |
public CheckLocale()
| Method Detail |
public boolean isValid(java.lang.String locale)
locale - a String specifying the locale id to check
public java.util.Locale getLocale(java.lang.String localeString)
localeString - a String specifying the locale id
private static java.util.Hashtable getTable()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||