public class XhtmlMacroModuleDescriptor extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Macro> implements MacroMetadataSource
| Modifier and Type | Field and Description | 
|---|---|
| protected Set<String> | supportedDeviceTypes | 
| Constructor and Description | 
|---|
| XhtmlMacroModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory,
                          MacroMetadataParser metadataParser) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | disabled() | 
| void | enabled() | 
| com.atlassian.plugin.elements.ResourceDescriptor | getHelpDescriptor()Returns the macro help descriptor, or null if there is no help. | 
| String | getHelpSection()Returns the section of notation guide in which the macro help appears. | 
| MacroMetadata | getMacroMetadata() | 
| Macro | getModule() | 
| boolean | hasHelp()Returns true if the macro has help, otherwise false. | 
| void | init(com.atlassian.plugin.Plugin plugin,
    org.dom4j.Element element) | 
| boolean | isAlwaysShowConfig() | 
| boolean | isOutputDeviceTypeSupported(String deviceType)Check if the specified device type is supported. | 
assertModuleClassImplements, checkPermissions, destroy, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toStringpublic XhtmlMacroModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory,
                                  MacroMetadataParser metadataParser)
public void enabled()
enabled in interface com.atlassian.plugin.StateAwareenabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Macro>public void disabled()
disabled in interface com.atlassian.plugin.StateAwaredisabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Macro>public void init(@Nonnull com.atlassian.plugin.Plugin plugin, @Nonnull org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException
public Macro getModule()
public MacroMetadata getMacroMetadata()
getMacroMetadata in interface MacroMetadataSourcepublic boolean isAlwaysShowConfig()
public boolean isOutputDeviceTypeSupported(String deviceType)
ConversionContextOutputDeviceType.DESKTOP type.deviceType - the device type to check.public boolean hasHelp()
public String getHelpSection()
IllegalStateException - if this is called when #hasHelp() is falsepublic com.atlassian.plugin.elements.ResourceDescriptor getHelpDescriptor()
Copyright © 2003–2017 Atlassian. All rights reserved.