public interface MacroDescriptor
Modifier and Type | Method and Description |
---|---|
ContentDescriptor |
getContentDescriptor() |
String |
getDefaultCategory()
A macro can define a default classification category under which it falls.
|
String |
getDescription() |
MacroId |
getId() |
String |
getName() |
Map<String,ParameterDescriptor> |
getParameterDescriptorMap()
Get all the parameters descriptors.
|
Class<?> |
getParametersBeanClass() |
default boolean |
supportsInlineMode() |
MacroId getId()
String getName()
String getDescription()
Class<?> getParametersBeanClass()
ContentDescriptor getContentDescriptor()
Map<String,ParameterDescriptor> getParameterDescriptorMap()
The Map
key is lower case. ParameterDescriptor.getId()
can be used to access the source parameter
identifier (with the source case).
Map
containing the ParameterDescriptor
for each parameter (the keys are lower cased).String getDefaultCategory()
default boolean supportsInlineMode()
== hello {{velocity}}world{{/velocity}}
then the Velocity macro must
support the inline mode and not generate a paragraph.Copyright © 2004–2022 XWiki. All rights reserved.