com.atlassian.confluence.languages
Class Language

java.lang.Object
  extended by com.atlassian.confluence.languages.Language
All Implemented Interfaces:
Serializable

public class Language
extends Object
implements Serializable

Created by IntelliJ IDEA. User: Jeremy Higgs Date: 2/02/2006 Time: 10:17:56

See Also:
Serialized Form

Constructor Summary
Language(LanguageModuleDescriptor moduleDescriptor)
           
Language(Locale locale)
           
 
Method Summary
 String getCapitalDisplayName()
           
 String getCountry()
           
 String getDisplayLanguage()
          Returns the name of the Language in its locale form
 String getDisplayName()
          Returns the name for the Locale that is appropriate to display to the user
 String getEncoding()
           
 String getFlagUrl()
          Returns the URL of the flag for this language Note: This URL does not contain the context path or base URL of the Confluence installation
 String getLanguage()
           
 Locale getLocale()
           
 String getName()
          Returns the name of the Language
 String getResourceBundlePath()
           
 void setCountry(String country)
           
 void setEncoding(String encoding)
           
 void setFlagUrl(String flagUrl)
          Sets the URL of the flag for this language Note: This URL should not contain the context path or base URL of the Confluence installation
 void setLanguage(String language)
           
 void setLocale(Locale locale)
           
 String setVariant()
           
 void setVariant(String variant)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Language

public Language(Locale locale)

Language

public Language(LanguageModuleDescriptor moduleDescriptor)
Method Detail

getName

public String getName()
Returns the name of the Language

Returns:
The output of locale.toString()
See Also:
Locale.toString()

getDisplayLanguage

public String getDisplayLanguage()
Returns the name of the Language in its locale form

Returns:
The output of locale.getDisplayLanguage(locale)
See Also:
Locale.getDisplayLanguage()

getDisplayName

public String getDisplayName()
Returns the name for the Locale that is appropriate to display to the user

Returns:
The output of locale.getDisplayName(locale)
See Also:
Locale.getDisplayName()

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

setLanguage

public void setLanguage(String language)

getLanguage

public String getLanguage()

setCountry

public void setCountry(String country)

getCountry

public String getCountry()

setVariant

public void setVariant(String variant)

setVariant

public String setVariant()

getLocale

public Locale getLocale()

setLocale

public void setLocale(Locale locale)

getFlagUrl

public String getFlagUrl()
Returns the URL of the flag for this language Note: This URL does not contain the context path or base URL of the Confluence installation

Returns:
String representing the URL

setFlagUrl

public void setFlagUrl(String flagUrl)
Sets the URL of the flag for this language Note: This URL should not contain the context path or base URL of the Confluence installation

Parameters:
flagUrl -

getResourceBundlePath

public String getResourceBundlePath()

getCapitalDisplayName

public String getCapitalDisplayName()


Copyright © 2003-2012 Atlassian. All Rights Reserved.