Class DefaultMacroDescriptor

  • All Implemented Interfaces:
    MacroDescriptor

    public class DefaultMacroDescriptor
    extends AbstractMacroDescriptor
    Describe a macro with no parameters.
    Since:
    1.6M1
    Version:
    $Id: fccc26f7990071f2818cc9f6967951d7de57085e $
    • Constructor Detail

      • DefaultMacroDescriptor

        public DefaultMacroDescriptor​(MacroId id,
                                      String name)
        Parameters:
        id - the id of the macro
        name - the name of the macro (eg "Table Of Contents" for the TOC macro)
        Since:
        2.3M1
      • DefaultMacroDescriptor

        public DefaultMacroDescriptor​(MacroId id,
                                      String name,
                                      String description)
        Parameters:
        id - the id of the macro
        name - the name of the macro (eg "Table Of Contents" for the TOC macro)
        description - the description of the macro.
        Since:
        2.3M1
      • DefaultMacroDescriptor

        public DefaultMacroDescriptor​(MacroId id,
                                      String name,
                                      String description,
                                      ContentDescriptor contentDescriptor)
        Parameters:
        id - the id of the macro
        name - the name of the macro (eg "Table Of Contents" for the TOC macro)
        description - the description of the macro.
        contentDescriptor - description of the macro content.
        Since:
        2.3M1
      • DefaultMacroDescriptor

        public DefaultMacroDescriptor​(MacroId id,
                                      String name,
                                      String description,
                                      ContentDescriptor contentDescriptor,
                                      org.xwiki.properties.BeanDescriptor parametersBeanDescriptor)
        Parameters:
        id - the id of the macro
        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.
        Since:
        2.3M1