Class TestMacro

  • All Implemented Interfaces:
    Comparable<org.xwiki.rendering.macro.Macro<?>>, org.xwiki.component.phase.Initializable, org.xwiki.rendering.macro.Macro<TestMacroParameters>

    @Component
    @Named("test")
    @Singleton
    public class TestMacro
    extends org.xwiki.rendering.macro.AbstractMacro<TestMacroParameters>
    A macro used to test Bean Validation.
    Version:
    $Id: 99ba57c5569c44a2e69f42793efa674f87a28e40 $
    • Field Summary

      • Fields inherited from class org.xwiki.rendering.macro.AbstractMacro

        beanManager, DEFAULT_CATEGORY_CONTENT, DEFAULT_CATEGORY_DEPRECATED, DEFAULT_CATEGORY_DEVELOPMENT, DEFAULT_CATEGORY_FORMATTING, DEFAULT_CATEGORY_INTERNAL, DEFAULT_CATEGORY_LAYOUT, DEFAULT_CATEGORY_NAVIGATION
    • Constructor Summary

      Constructors 
      Constructor Description
      TestMacro()
      Setup the macro.
    • Constructor Detail

      • TestMacro

        public TestMacro()
        Setup the macro.
    • Method Detail

      • execute

        public List<org.xwiki.rendering.block.Block> execute​(TestMacroParameters parameters,
                                                             String content,
                                                             org.xwiki.rendering.transformation.MacroTransformationContext context)
                                                      throws org.xwiki.rendering.macro.MacroExecutionException
        Throws:
        org.xwiki.rendering.macro.MacroExecutionException
      • supportsInlineMode

        public boolean supportsInlineMode()