public abstract class MockModuleDescriptor<T> extends Object implements com.atlassian.plugin.ModuleDescriptor<T>
| Constructor and Description |
|---|
MockModuleDescriptor(Class<T> type) |
MockModuleDescriptor(Class<T> type,
com.atlassian.plugin.Plugin plugin,
String key) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.plugin.elements.ResourceDescriptor |
createHelpResource(String name,
String location) |
com.atlassian.plugin.elements.ResourceDescriptor |
createI18nResource(String name,
String location) |
void |
destroy() |
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() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic MockModuleDescriptor(Class<T> type, com.atlassian.plugin.Plugin plugin, String key)
public void setKey(String key)
public void setPlugin(com.atlassian.plugin.Plugin plugin)
public String getCompleteKey()
getCompleteKey in interface com.atlassian.plugin.ModuleDescriptor<T>public String getPluginKey()
getPluginKey in interface com.atlassian.plugin.ModuleDescriptor<T>public String getKey()
getKey in interface com.atlassian.plugin.ModuleDescriptor<T>public String getName()
getName in interface com.atlassian.plugin.ModuleDescriptor<T>public String getDescription()
getDescription in interface com.atlassian.plugin.ModuleDescriptor<T>public Class<T> getModuleClass()
getModuleClass in interface com.atlassian.plugin.ModuleDescriptor<T>public void init(@Nonnull com.atlassian.plugin.Plugin plugin, @Nonnull org.dom4j.Element element)
init in interface com.atlassian.plugin.ModuleDescriptor<T>public boolean isEnabledByDefault()
isEnabledByDefault in interface com.atlassian.plugin.ModuleDescriptor<T>public boolean isSystemModule()
isSystemModule in interface com.atlassian.plugin.ModuleDescriptor<T>public void destroy()
destroy in interface com.atlassian.plugin.ModuleDescriptor<T>public Float getMinJavaVersion()
getMinJavaVersion in interface com.atlassian.plugin.ModuleDescriptor<T>public boolean satisfiesMinJavaVersion()
satisfiesMinJavaVersion in interface com.atlassian.plugin.ModuleDescriptor<T>public Map<String,String> getParams()
getParams in interface com.atlassian.plugin.ModuleDescriptor<T>public String getI18nNameKey()
getI18nNameKey in interface com.atlassian.plugin.ModuleDescriptor<T>public String getDescriptionKey()
getDescriptionKey in interface com.atlassian.plugin.ModuleDescriptor<T>public com.atlassian.plugin.Plugin getPlugin()
getPlugin in interface com.atlassian.plugin.ModuleDescriptor<T>public List<com.atlassian.plugin.elements.ResourceDescriptor> getResourceDescriptors()
getResourceDescriptors in interface com.atlassian.plugin.Resourcedpublic com.atlassian.plugin.elements.ResourceDescriptor getResourceDescriptor(String type, String name)
getResourceDescriptor in interface com.atlassian.plugin.Resourcedpublic com.atlassian.plugin.elements.ResourceLocation getResourceLocation(String type, String name)
getResourceLocation in interface com.atlassian.plugin.Resourcedpublic com.atlassian.plugin.elements.ResourceDescriptor createI18nResource(String name, String location)
Copyright © 2002-2024 Atlassian. All Rights Reserved.