Clearspace API (2.0.15) Web Services Client Javadocs

com.jivesoftware.community.webservices
Class WSLocale

java.lang.Object
  extended by com.jivesoftware.community.webservices.WSLocale

public class WSLocale
extends java.lang.Object

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


Constructor Summary
WSLocale()
           
WSLocale(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

WSLocale

public WSLocale()

WSLocale

public WSLocale(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

Clearspace Project Page

Copyright © 1999-2007 Jive Software.