com.atlassian.jira.mock.plugin
Class MockModuleDescriptor<T>

java.lang.Object
  extended by com.atlassian.jira.mock.plugin.MockModuleDescriptor<T>
All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptor<T>, com.atlassian.plugin.Resourced
Direct Known Subclasses:
MockJiraResourcedModuleDescriptor, NullModuleDescriptor

public abstract class MockModuleDescriptor<T>
extends Object
implements com.atlassian.plugin.ModuleDescriptor<T>

Since:
v6.2.3

Constructor Summary
MockModuleDescriptor(Class<T> type)
           
MockModuleDescriptor(Class<T> type, com.atlassian.plugin.Plugin plugin, String key)
           
 
Method Summary
 com.atlassian.plugin.elements.ResourceDescriptor createHelpResource(String name, String location)
           
 com.atlassian.plugin.elements.ResourceDescriptor createI18nResource(String name, String location)
           
 void destroy()
           
 void destroy(com.atlassian.plugin.Plugin plugin)
           
 String getCompleteKey()
           
 String getDescription()
           
 String getDescriptionKey()
           
 String getI18nNameKey()
           
 String getKey()
           
 Float getMinJavaVersion()
           
 Class<T> getModuleClass()
           
 String getName()
           
 Map<String,String> getParams()
           
 com.atlassian.plugin.Plugin getPlugin()
           
 String getPluginKey()
           
 com.atlassian.plugin.elements.ResourceDescriptor getResourceDescriptor(String type, String name)
           
 List<com.atlassian.plugin.elements.ResourceDescriptor> getResourceDescriptors()
           
 List<com.atlassian.plugin.elements.ResourceDescriptor> getResourceDescriptors(String type)
           
 com.atlassian.plugin.elements.ResourceLocation getResourceLocation(String type, String name)
           
 void init(com.atlassian.plugin.Plugin plugin, org.dom4j.Element element)
           
 boolean isEnabledByDefault()
           
 boolean isSystemModule()
           
 boolean satisfiesMinJavaVersion()
           
 void setKey(String key)
           
 void setPlugin(com.atlassian.plugin.Plugin plugin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.plugin.ModuleDescriptor
equals, getModule, hashCode
 

Constructor Detail

MockModuleDescriptor

public MockModuleDescriptor(Class<T> type,
                            com.atlassian.plugin.Plugin plugin,
                            String key)

MockModuleDescriptor

public MockModuleDescriptor(Class<T> type)
Method Detail

setKey

public void setKey(String key)

setPlugin

public void setPlugin(com.atlassian.plugin.Plugin plugin)

getCompleteKey

public String getCompleteKey()
Specified by:
getCompleteKey in interface com.atlassian.plugin.ModuleDescriptor<T>

getPluginKey

public String getPluginKey()
Specified by:
getPluginKey in interface com.atlassian.plugin.ModuleDescriptor<T>

getKey

public String getKey()
Specified by:
getKey in interface com.atlassian.plugin.ModuleDescriptor<T>

getName

public String getName()
Specified by:
getName in interface com.atlassian.plugin.ModuleDescriptor<T>

getDescription

public String getDescription()
Specified by:
getDescription in interface com.atlassian.plugin.ModuleDescriptor<T>

getModuleClass

public Class<T> getModuleClass()
Specified by:
getModuleClass in interface com.atlassian.plugin.ModuleDescriptor<T>

init

public void init(@NotNull
                 com.atlassian.plugin.Plugin plugin,
                 @NotNull
                 org.dom4j.Element element)
Specified by:
init in interface com.atlassian.plugin.ModuleDescriptor<T>

isEnabledByDefault

public boolean isEnabledByDefault()
Specified by:
isEnabledByDefault in interface com.atlassian.plugin.ModuleDescriptor<T>

isSystemModule

public boolean isSystemModule()
Specified by:
isSystemModule in interface com.atlassian.plugin.ModuleDescriptor<T>

destroy

public void destroy(com.atlassian.plugin.Plugin plugin)
Specified by:
destroy in interface com.atlassian.plugin.ModuleDescriptor<T>

destroy

public void destroy()
Specified by:
destroy in interface com.atlassian.plugin.ModuleDescriptor<T>

getMinJavaVersion

public Float getMinJavaVersion()
Specified by:
getMinJavaVersion in interface com.atlassian.plugin.ModuleDescriptor<T>

satisfiesMinJavaVersion

public boolean satisfiesMinJavaVersion()
Specified by:
satisfiesMinJavaVersion in interface com.atlassian.plugin.ModuleDescriptor<T>

getParams

public Map<String,String> getParams()
Specified by:
getParams in interface com.atlassian.plugin.ModuleDescriptor<T>

getI18nNameKey

public String getI18nNameKey()
Specified by:
getI18nNameKey in interface com.atlassian.plugin.ModuleDescriptor<T>

getDescriptionKey

public String getDescriptionKey()
Specified by:
getDescriptionKey in interface com.atlassian.plugin.ModuleDescriptor<T>

getPlugin

public com.atlassian.plugin.Plugin getPlugin()
Specified by:
getPlugin in interface com.atlassian.plugin.ModuleDescriptor<T>

getResourceDescriptors

public List<com.atlassian.plugin.elements.ResourceDescriptor> getResourceDescriptors()
Specified by:
getResourceDescriptors in interface com.atlassian.plugin.Resourced

getResourceDescriptors

public List<com.atlassian.plugin.elements.ResourceDescriptor> getResourceDescriptors(String type)
Specified by:
getResourceDescriptors in interface com.atlassian.plugin.Resourced

getResourceDescriptor

public com.atlassian.plugin.elements.ResourceDescriptor getResourceDescriptor(String type,
                                                                              String name)
Specified by:
getResourceDescriptor in interface com.atlassian.plugin.Resourced

getResourceLocation

public com.atlassian.plugin.elements.ResourceLocation getResourceLocation(String type,
                                                                          String name)
Specified by:
getResourceLocation in interface com.atlassian.plugin.Resourced

createI18nResource

public com.atlassian.plugin.elements.ResourceDescriptor createI18nResource(String name,
                                                                           String location)

createHelpResource

public com.atlassian.plugin.elements.ResourceDescriptor createHelpResource(String name,
                                                                           String location)


Copyright © 2002-2014 Atlassian. All Rights Reserved.