com.atlassian.plugin.web.descriptors
Class DefaultAbstractWebFragmentModuleDescriptor

java.lang.Object
  extended by com.atlassian.plugin.web.descriptors.DefaultAbstractWebFragmentModuleDescriptor
All Implemented Interfaces:
ModuleDescriptor, Resourced, StateAware, WebFragmentModuleDescriptor, WeightedDescriptor

public class DefaultAbstractWebFragmentModuleDescriptor
extends java.lang.Object
implements StateAware, WebFragmentModuleDescriptor

Wrapper for WebFragmentModuleDescriptor, so that it could be extended by application specific wrappers to provide additional methods.


Field Summary
 
Fields inherited from interface com.atlassian.plugin.web.descriptors.WebFragmentModuleDescriptor
COMPOSITE_TYPE_AND, COMPOSITE_TYPE_OR
 
Constructor Summary
DefaultAbstractWebFragmentModuleDescriptor(WebFragmentModuleDescriptor abstractDescriptor)
           
 
Method Summary
 void destroy(Plugin plugin)
           
 void disabled()
           
 void enabled()
           
 java.lang.String getCompleteKey()
           
 Condition getCondition()
           
 ContextProvider getContextProvider()
           
protected  WebFragmentModuleDescriptor getDecoratedDescriptor()
           
 java.lang.String getDescription()
           
 java.lang.String getDescriptionKey()
           
 java.lang.String getI18nNameKey()
           
 java.lang.String getKey()
           
 java.lang.Float getMinJavaVersion()
           
 java.lang.Object getModule()
           
 java.lang.Class getModuleClass()
           
 java.lang.String getName()
           
 java.util.Map getParams()
           
 Plugin getPlugin()
           
 java.lang.String getPluginKey()
           
 ResourceDescriptor getResourceDescriptor(java.lang.String type, java.lang.String name)
           
 java.util.List getResourceDescriptors()
           
 java.util.List getResourceDescriptors(java.lang.String type)
           
 ResourceLocation getResourceLocation(java.lang.String type, java.lang.String name)
           
 WebLabel getTooltip()
           
 WebLabel getWebLabel()
           
 WebParam getWebParams()
           
 int getWeight()
           
 void init(Plugin plugin, org.dom4j.Element element)
           
 boolean isEnabledByDefault()
           
 boolean isSystemModule()
           
 boolean satisfiesMinJavaVersion()
           
 void setWebInterfaceManager(WebInterfaceManager webInterfaceManager)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultAbstractWebFragmentModuleDescriptor

public DefaultAbstractWebFragmentModuleDescriptor(WebFragmentModuleDescriptor abstractDescriptor)
Method Detail

enabled

public void enabled()
Specified by:
enabled in interface StateAware

disabled

public void disabled()
Specified by:
disabled in interface StateAware

getDecoratedDescriptor

protected WebFragmentModuleDescriptor getDecoratedDescriptor()

getWeight

public int getWeight()
Specified by:
getWeight in interface WebFragmentModuleDescriptor
Specified by:
getWeight in interface WeightedDescriptor

getKey

public java.lang.String getKey()
Specified by:
getKey in interface ModuleDescriptor

getModule

public java.lang.Object getModule()
Specified by:
getModule in interface ModuleDescriptor
Specified by:
getModule in interface WebFragmentModuleDescriptor

getI18nNameKey

public java.lang.String getI18nNameKey()
Specified by:
getI18nNameKey in interface ModuleDescriptor

getDescriptionKey

public java.lang.String getDescriptionKey()
Specified by:
getDescriptionKey in interface ModuleDescriptor

getPlugin

public Plugin getPlugin()
Specified by:
getPlugin in interface ModuleDescriptor

getWebLabel

public WebLabel getWebLabel()
Specified by:
getWebLabel in interface WebFragmentModuleDescriptor

getTooltip

public WebLabel getTooltip()
Specified by:
getTooltip in interface WebFragmentModuleDescriptor

setWebInterfaceManager

public void setWebInterfaceManager(WebInterfaceManager webInterfaceManager)

getCondition

public Condition getCondition()
Specified by:
getCondition in interface WebFragmentModuleDescriptor

getContextProvider

public ContextProvider getContextProvider()
Specified by:
getContextProvider in interface WebFragmentModuleDescriptor

getWebParams

public WebParam getWebParams()
Specified by:
getWebParams in interface WebFragmentModuleDescriptor

getCompleteKey

public java.lang.String getCompleteKey()
Specified by:
getCompleteKey in interface ModuleDescriptor

getPluginKey

public java.lang.String getPluginKey()
Specified by:
getPluginKey in interface ModuleDescriptor

getName

public java.lang.String getName()
Specified by:
getName in interface ModuleDescriptor

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ModuleDescriptor

getModuleClass

public java.lang.Class getModuleClass()
Specified by:
getModuleClass in interface ModuleDescriptor

init

public void init(Plugin plugin,
                 org.dom4j.Element element)
          throws PluginParseException
Specified by:
init in interface ModuleDescriptor
Throws:
PluginParseException

isEnabledByDefault

public boolean isEnabledByDefault()
Specified by:
isEnabledByDefault in interface ModuleDescriptor

isSystemModule

public boolean isSystemModule()
Specified by:
isSystemModule in interface ModuleDescriptor

destroy

public void destroy(Plugin plugin)
Specified by:
destroy in interface ModuleDescriptor

getMinJavaVersion

public java.lang.Float getMinJavaVersion()
Specified by:
getMinJavaVersion in interface ModuleDescriptor

satisfiesMinJavaVersion

public boolean satisfiesMinJavaVersion()
Specified by:
satisfiesMinJavaVersion in interface ModuleDescriptor

getParams

public java.util.Map getParams()
Specified by:
getParams in interface ModuleDescriptor

getResourceDescriptors

public java.util.List getResourceDescriptors()
Specified by:
getResourceDescriptors in interface Resourced

getResourceDescriptors

public java.util.List getResourceDescriptors(java.lang.String type)
Specified by:
getResourceDescriptors in interface Resourced

getResourceLocation

public ResourceLocation getResourceLocation(java.lang.String type,
                                            java.lang.String name)
Specified by:
getResourceLocation in interface Resourced

getResourceDescriptor

public ResourceDescriptor getResourceDescriptor(java.lang.String type,
                                                java.lang.String name)
Specified by:
getResourceDescriptor in interface Resourced

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.