com.atlassian.confluence.plugin.descriptor
Class LanguageModuleDescriptor

java.lang.Object
  extended by com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Language>
      extended by com.atlassian.confluence.plugin.descriptor.LanguageModuleDescriptor
All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptor<Language>, com.atlassian.plugin.Resourced, com.atlassian.plugin.StateAware

public class LanguageModuleDescriptor
extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Language>


Field Summary
 
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources, singleton
 
Constructor Summary
LanguageModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
           
 
Method Summary
 void disabled()
           
 void enabled()
           
 java.lang.String getCountry()
           
 java.lang.String getEncoding()
           
 java.lang.String getLanguage()
           
 Language getModule()
           
 java.lang.String getVariant()
           
 void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)
          Initialises the LanguageModuleDescriptor
 void setCountry(java.lang.String country)
           
 void setEncoding(java.lang.String encoding)
           
 void setLanguage(java.lang.String language)
           
 void setVariant(java.lang.String variant)
           
 
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LanguageModuleDescriptor

public LanguageModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
Method Detail

init

public void init(com.atlassian.plugin.Plugin plugin,
                 org.dom4j.Element element)
          throws com.atlassian.plugin.PluginParseException
Initialises the LanguageModuleDescriptor

Specified by:
init in interface com.atlassian.plugin.ModuleDescriptor<Language>
Overrides:
init in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Language>
Parameters:
plugin - The Plugin the ModuleDescriptor belongs to
element - The XML Document to be parsed
Throws:
com.atlassian.plugin.PluginParseException - if language is null

getModule

public Language getModule()
Specified by:
getModule in interface com.atlassian.plugin.ModuleDescriptor<Language>
Specified by:
getModule in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Language>

enabled

public void enabled()
Specified by:
enabled in interface com.atlassian.plugin.StateAware
Overrides:
enabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Language>

disabled

public void disabled()
Specified by:
disabled in interface com.atlassian.plugin.StateAware
Overrides:
disabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Language>

getEncoding

public java.lang.String getEncoding()

setEncoding

public void setEncoding(java.lang.String encoding)

getLanguage

public java.lang.String getLanguage()

setLanguage

public void setLanguage(java.lang.String language)

getCountry

public java.lang.String getCountry()

setCountry

public void setCountry(java.lang.String country)

getVariant

public java.lang.String getVariant()

setVariant

public void setVariant(java.lang.String variant)


Copyright © 2003-2014 Atlassian. All Rights Reserved.