|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.rendering.macro.descriptor.AbstractMacroDescriptor
public abstract class AbstractMacroDescriptor
Describe a macro.
| Constructor Summary | |
|---|---|
AbstractMacroDescriptor(MacroId id,
String name,
String description,
ContentDescriptor contentDescriptor,
org.xwiki.properties.BeanDescriptor parametersBeanDescriptor)
|
|
AbstractMacroDescriptor(String name,
String description,
ContentDescriptor contentDescriptor,
org.xwiki.properties.BeanDescriptor parametersBeanDescriptor)
Deprecated. since 2.3M1 use AbstractMacroDescriptor(MacroId, String, String, ContentDescriptor, BeanDescriptor) instead |
|
| Method Summary | |
|---|---|
protected void |
extractParameterDescriptorMap()
Extract parameters informations from parametersBeanDescriptor and insert it in
parameterDescriptorMap. |
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()
|
Class<?> |
getParametersBeanClass()
|
void |
setDefaultCategory(String defaultCategory)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMacroDescriptor(MacroId id,
String name,
String description,
ContentDescriptor contentDescriptor,
org.xwiki.properties.BeanDescriptor parametersBeanDescriptor)
id - the id of the macroname - the name of the macro (eg "Table Of Contents" for the TOC macro)description - the description of the macro.contentDescriptor - the description of the macro content. null indicate macro does not support content.parametersBeanDescriptor - the description of the parameters bean or null if there are no parameters for
this macro.
@Deprecated
public AbstractMacroDescriptor(String name,
String description,
ContentDescriptor contentDescriptor,
org.xwiki.properties.BeanDescriptor parametersBeanDescriptor)
AbstractMacroDescriptor(MacroId, String, String, ContentDescriptor, BeanDescriptor) instead
name - the name of the macro (eg "Table Of Contents" for the TOC macro)description - the description of the macro.contentDescriptor - the description of the macro content. null indicate macro does not support content.parametersBeanDescriptor - the description of the parameters bean or null if there are no parameters for
this macro.| Method Detail |
|---|
protected void extractParameterDescriptorMap()
parametersBeanDescriptor and insert it in
parameterDescriptorMap.
public MacroId getId()
getId in interface MacroDescriptorpublic String getName()
getName in interface MacroDescriptorpublic ContentDescriptor getContentDescriptor()
getContentDescriptor in interface MacroDescriptorpublic String getDescription()
getDescription in interface MacroDescriptorpublic Class<?> getParametersBeanClass()
getParametersBeanClass in interface MacroDescriptorpublic Map<String,ParameterDescriptor> getParameterDescriptorMap()
getParameterDescriptorMap in interface MacroDescriptorMap containing the ParameterDescriptor for each parameter.public String getDefaultCategory()
MacroDescriptor
getDefaultCategory in interface MacroDescriptorpublic void setDefaultCategory(String defaultCategory)
defaultCategory - default category under which this macro should be listed.MacroDescriptor.getDefaultCategory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||