com.atlassian.confluence.languages
Class Language

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

public class Language
extends java.lang.Object
implements java.io.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(java.util.Locale locale)
           
 
Method Summary
 java.lang.String getCapitalDisplayName()
           
 java.lang.String getCountry()
           
 java.lang.String getDisplayLanguage()
          Returns the name of the Language in its locale form
 java.lang.String getDisplayName()
          Returns the name for the Locale that is appropriate to display to the user
 java.lang.String getEncoding()
           
 java.lang.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
 java.lang.String getLanguage()
           
 java.util.Locale getLocale()
           
 java.lang.String getName()
          Returns the name of the Language
 java.lang.String getResourceBundlePath()
           
 void setCountry(java.lang.String country)
           
 void setEncoding(java.lang.String encoding)
           
 void setFlagUrl(java.lang.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(java.lang.String language)
           
 void setLocale(java.util.Locale locale)
           
 java.lang.String setVariant()
           
 void setVariant(java.lang.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(java.util.Locale locale)

Language

public Language(LanguageModuleDescriptor moduleDescriptor)
Method Detail

getName

public java.lang.String getName()
Returns the name of the Language

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

getDisplayLanguage

public java.lang.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 java.lang.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 java.lang.String getEncoding()

setEncoding

public void setEncoding(java.lang.String encoding)

setLanguage

public void setLanguage(java.lang.String language)

getLanguage

public java.lang.String getLanguage()

setCountry

public void setCountry(java.lang.String country)

getCountry

public java.lang.String getCountry()

setVariant

public void setVariant(java.lang.String variant)

setVariant

public java.lang.String setVariant()

getLocale

public java.util.Locale getLocale()

setLocale

public void setLocale(java.util.Locale locale)

getFlagUrl

public java.lang.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(java.lang.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 java.lang.String getResourceBundlePath()

getCapitalDisplayName

public java.lang.String getCapitalDisplayName()


Copyright © 2003-2014 Atlassian. All Rights Reserved.