de.bea.domingo.http
Class DominoLocaleCode

java.lang.Object
  extended by de.bea.domingo.http.DominoLocaleCode

public final class DominoLocaleCode
extends java.lang.Object

Country names and their locale strings. TODO test this class TODO use this class

Author:
Kurt Riede

Constructor Summary
DominoLocaleCode(java.lang.String country, java.lang.String localeString)
          Constructor.
 
Method Summary
static DominoLocaleCode get(java.lang.String country)
          For a given country name returns the corresponsing locale string.
 java.lang.String getCountry()
           
 java.lang.String getLocaleString()
           
static DominoLocaleCode searchLocaleCode(java.lang.String searchString)
          Returns the first found locale code for a given search string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DominoLocaleCode

public DominoLocaleCode(java.lang.String country,
                        java.lang.String localeString)
Constructor.

Parameters:
country - the country name
localeString - the locale string
Method Detail

get

public static DominoLocaleCode get(java.lang.String country)
For a given country name returns the corresponsing locale string.

Parameters:
country - country name
Returns:
locale string

searchLocaleCode

public static DominoLocaleCode searchLocaleCode(java.lang.String searchString)
Returns the first found locale code for a given search string.

The search string is simply a partial string of a time zone name.

Parameters:
searchString - search string of a locale code
Returns:
the locale code or null if not found

getCountry

public java.lang.String getCountry()
Returns:
Returns the country.

getLocaleString

public java.lang.String getLocaleString()
Returns:
Returns the localeString.


Domingo Java-API