public class LanguageModuleDescriptorImpl extends AbstractJiraModuleDescriptor<Language> implements LanguageModuleDescriptor
Constructor and Description |
---|
LanguageModuleDescriptorImpl(JiraAuthenticationContext authenticationContext,
com.atlassian.plugin.module.ModuleFactory moduleFactory) |
Modifier and Type | Method and Description |
---|---|
protected Language |
createModule()
Creates an instance of the Module.
|
String |
getCountry() |
String |
getEncoding() |
String |
getLanguage() |
String |
getResourceBundleName() |
String |
getVariant() |
void |
init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element)
Initialises the LanguageModuleDescriptor
|
void |
setCountry(String country) |
void |
setEncoding(String encoding) |
void |
setLanguage(String language) |
void |
setVariant(String variant) |
assertResourceExists, createVelocityParams, disabled, enabled, getAuthenticationContext, getClassLoader, getDescription, getHtml, getHtml, getI18nBean, getModule, getName, getText, getText, isResourceExist, writeHtml
assertModuleClassImplements, checkPermissions, destroy, destroy, equals, getCompleteKey, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getHtml, getHtml, getI18nBean, writeHtml
destroy, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getName, getParams, getPlugin, getPluginKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion, setBroken
public LanguageModuleDescriptorImpl(JiraAuthenticationContext authenticationContext, com.atlassian.plugin.module.ModuleFactory moduleFactory)
public void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException
init
in interface com.atlassian.plugin.ModuleDescriptor<Language>
init
in class AbstractJiraModuleDescriptor<Language>
plugin
- The Plugin the ModuleDescriptor belongs toelement
- The XML Document to be parsedcom.atlassian.plugin.PluginParseException
- if language is nullprotected Language createModule()
AbstractJiraModuleDescriptor
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.
createModule
in class AbstractJiraModuleDescriptor<Language>
public String getResourceBundleName()
getResourceBundleName
in interface LanguageModuleDescriptor
public String getEncoding()
getEncoding
in interface LanguageModuleDescriptor
public void setEncoding(String encoding)
setEncoding
in interface LanguageModuleDescriptor
public String getLanguage()
getLanguage
in interface LanguageModuleDescriptor
public void setLanguage(String language)
setLanguage
in interface LanguageModuleDescriptor
public String getCountry()
getCountry
in interface LanguageModuleDescriptor
public void setCountry(String country)
setCountry
in interface LanguageModuleDescriptor
public String getVariant()
getVariant
in interface LanguageModuleDescriptor
public void setVariant(String variant)
setVariant
in interface LanguageModuleDescriptor
Copyright © 2002-2017 Atlassian. All Rights Reserved.