Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.webservices
Class Locale

java.lang.Object
  extended by com.jivesoftware.forum.webservices.Locale

public class Locale
extends java.lang.Object

Webservice object that contains locale information such as the country code and language code.


Constructor Summary
Locale()
           
Locale(java.lang.String countryCode, java.lang.String languageCode)
          Creates a new instance of a Locale using the specified country code and language code.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getCountryCode()
          Returns the country/region code for this locale, which will either be the empty string or an upercase ISO 3166 2-letter code.
 java.lang.String getLanguageCode()
          Returns the language code for this locale, which will either be the empty string or a lowercase ISO 639 code.
 int hashCode()
           
 void setCountryCode(java.lang.String countryCode)
          Sets the country/region code for this locale, which will either be the empty string or an upercase ISO 3166 2-letter code.
 void setLanguageCode(java.lang.String languageCode)
          Sets the language code for this locale, which will either be the empty string or a lowercase ISO 639 code.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Locale

public Locale()

Locale

public Locale(java.lang.String countryCode,
              java.lang.String languageCode)
Creates a new instance of a Locale using the specified country code and language code.

Parameters:
countryCode - The country/region for this locale.
languageCode - The language code for this locale.
Method Detail

getCountryCode

public java.lang.String getCountryCode()
Returns the country/region code for this locale, which will either be the empty string or an upercase ISO 3166 2-letter code.

Returns:
The country/region code for this locale.

setCountryCode

public void setCountryCode(java.lang.String countryCode)
Sets the country/region code for this locale, which will either be the empty string or an upercase ISO 3166 2-letter code.

Parameters:
countryCode - the country code portion of the locale.

getLanguageCode

public java.lang.String getLanguageCode()
Returns the language code for this locale, which will either be the empty string or a lowercase ISO 639 code.

Returns:
Returns the language code for this locale

setLanguageCode

public void setLanguageCode(java.lang.String languageCode)
Sets the language code for this locale, which will either be the empty string or a lowercase ISO 639 code.

Parameters:
languageCode - the language code for this locale.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.