Class ShowIfMacro
- java.lang.Object
-
- org.xwiki.rendering.macro.AbstractMacro<P>
-
- com.xwiki.macros.AbstractProMacro<ShowHideIfMacroParameters>
-
- com.xwiki.macros.showhideif.internal.macro.AbstractShowHideIfMacro
-
- com.xwiki.macros.showhideif.macro.ShowIfMacro
-
- All Implemented Interfaces:
Comparable<org.xwiki.rendering.macro.Macro<?>>,org.xwiki.component.phase.Initializable,org.xwiki.rendering.macro.Macro<ShowHideIfMacroParameters>
@Component @Named("show-if") @Singleton public class ShowIfMacro extends com.xwiki.macros.showhideif.internal.macro.AbstractShowHideIfMacroShow if macro: Show the content if the constraint match.- Since:
- 1.23.0
- Version:
- $Id: $
-
-
Constructor Summary
Constructors Constructor Description ShowIfMacro()Create and initialize the descriptor of the macro.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<org.xwiki.rendering.block.Block>internalExecute(ShowHideIfMacroParameters parameters, String content, org.xwiki.rendering.transformation.MacroTransformationContext context)-
Methods inherited from class com.xwiki.macros.showhideif.internal.macro.AbstractShowHideIfMacro
doesMatch, maybeGetUnsupportedParameterErrorBlock, supportsInlineMode
-
Methods inherited from class com.xwiki.macros.AbstractProMacro
execute, getWikiDescriptorManager
-
-
-
-
Method Detail
-
internalExecute
protected List<org.xwiki.rendering.block.Block> internalExecute(ShowHideIfMacroParameters parameters, String content, org.xwiki.rendering.transformation.MacroTransformationContext context) throws org.xwiki.rendering.macro.MacroExecutionException
- Specified by:
internalExecutein classAbstractProMacro<ShowHideIfMacroParameters>- Throws:
org.xwiki.rendering.macro.MacroExecutionException
-
-