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(AutodetectModuleFactoryHolder moduleFactoryHolder,
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(@NonNull com.atlassian.plugin.Plugin plugin,
@NonNull org.dom4j.Element element) |
boolean |
isAlwaysShowConfig() |
boolean |
isOutputDeviceTypeSupported(String deviceType)
Check if the specified device type is supported.
|
assertModuleClassImplements, checkPermissions, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toStringpublic XhtmlMacroModuleDescriptor(AutodetectModuleFactoryHolder moduleFactoryHolder, 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–2023 Atlassian. All rights reserved.