@PublicSpi public class

Language

extends Object
java.lang.Object
   ↳ com.atlassian.jira.plugin.language.Language

@PublicSpi

This class is designed for plugins to implement.

Clients of @PublicSpi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicSpi as per each product's API policy (clients should refer to each product's API policy for the exact guarantee -- usually binary compatibility is guaranteed at least across minor versions).

Note: @PublicSpi interfaces and classes are specifically designed to be implemented/extended by clients. Hence, the guarantee of binary compatibility is different to that of @PublicApi elements (if an element is both @PublicApi and @PublicSpi, both guarantees apply).

Class Overview

User: kalamon Date: 12.01.11 Time: 12:40

Summary

Public Constructors
Language(Locale locale)
Language(LanguageModuleDescriptor moduleDescriptor)
Public Methods
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
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)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Language (Locale locale)

public Language (LanguageModuleDescriptor moduleDescriptor)

Public Methods

public String getCountry ()

public String getDisplayLanguage ()

Returns the name of the Language in its locale form

Returns
  • The output of locale.getDisplayLanguage(locale)

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

public String getEncoding ()

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

public String getLanguage ()

public Locale getLocale ()

public String getName ()

Returns the name of the Language

Returns
  • The output of locale.toString()
See Also

public void setCountry (String country)

public void setEncoding (String encoding)

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

public void setLanguage (String language)

public void setLocale (Locale locale)

public String setVariant ()

public void setVariant (String variant)