public class

LanguageModuleDescriptorImpl

extends AbstractJiraModuleDescriptor<T>
implements LanguageModuleDescriptor
java.lang.Object
   ↳ com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
     ↳ com.atlassian.jira.plugin.AbstractJiraModuleDescriptor<T>
       ↳ com.atlassian.jira.plugin.language.LanguageModuleDescriptorImpl

Class Overview

Module descriptor of the language pack plugin point.

Summary

[Expand]
Inherited Fields
From class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
Public Constructors
LanguageModuleDescriptorImpl(JiraAuthenticationContext authenticationContext, ModuleFactory moduleFactory)
Public Methods
String getCountry()
String getEncoding()
String getLanguage()
String getResourceBundleName()
String getVariant()
void init(Plugin plugin, Element element)
Initialises the LanguageModuleDescriptor
void setCountry(String country)
void setEncoding(String encoding)
void setLanguage(String language)
void setVariant(String variant)
Protected Methods
Language createModule()
Creates an instance of the Module.
[Expand]
Inherited Methods
From class com.atlassian.jira.plugin.AbstractJiraModuleDescriptor
From class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
From class java.lang.Object
From interface com.atlassian.jira.plugin.JiraResourcedModuleDescriptor
From interface com.atlassian.jira.plugin.language.LanguageModuleDescriptor
From interface com.atlassian.plugin.ModuleDescriptor
From interface com.atlassian.plugin.Resourced
From interface com.atlassian.plugin.StateAware

Public Constructors

public LanguageModuleDescriptorImpl (JiraAuthenticationContext authenticationContext, ModuleFactory moduleFactory)

Public Methods

public String getCountry ()

public String getEncoding ()

public String getLanguage ()

public String getResourceBundleName ()

public String getVariant ()

public void init (Plugin plugin, Element element)

Initialises the LanguageModuleDescriptor

Parameters
plugin The Plugin the ModuleDescriptor belongs to
element The XML Document to be parsed
Throws
PluginParseException if language is null

public void setCountry (String country)

public void setEncoding (String encoding)

public void setLanguage (String language)

public void setVariant (String variant)

Protected Methods

protected Language createModule ()

Creates an instance of the Module.

This is called by the lazy load logic of getModule() and is suitable for overriding in subclasses if they want to customize how the Module class is instantiated.

Returns
  • a new instance of the module.