org.xwiki.rendering.macro.descriptor
Interface MacroDescriptor
- All Known Implementing Classes:
- AbstractMacroDescriptor, DefaultMacroDescriptor
public interface MacroDescriptor
Describe a Macro (macro description and macro parameters description).
- Since:
- 1.6M1
- Version:
- $Id$
getId
MacroId getId()
- Returns:
- the id of the macro
- Since:
- 2.3M1
getName
java.lang.String getName()
- Returns:
- the human-readable name of the macro (eg "Table Of Contents" for the TOC macro).
- Since:
- 2.0M3
getDescription
java.lang.String getDescription()
- Returns:
- the description of the macro.
getParametersBeanClass
java.lang.Class<?> getParametersBeanClass()
- Returns:
- the class of the JAVA bean containing macro parameters.
getContentDescriptor
ContentDescriptor getContentDescriptor()
- Returns:
- describe the macro content. If null the macro does not support content.
- Since:
- 1.9M1
getParameterDescriptorMap
java.util.Map<java.lang.String,ParameterDescriptor> getParameterDescriptorMap()
- Returns:
- a
Map containing the ParameterDescriptor for each parameter. - Since:
- 1.7M2
getDefaultCategory
java.lang.String getDefaultCategory()
- A macro can define a default classification category under which it falls. For an example, the "skype" macro
would fall under the "Communication" category of macros. However, a wiki administrator has the ability to
override the default category for a given macro in order to organize categories as he sees fit. Thus this
default category is only an indication from the macro author about what category the macro should fall.
- Returns:
- the default category under which this macro should be listed or null if the macro doesn't have a
default category defined
- Since:
- 2.0M3
Copyright © 2004-2011 XWiki. All Rights Reserved.