Class HideIfMacro
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.HideIfMacro
- All Implemented Interfaces:
Comparable<org.xwiki.rendering.macro.Macro<?>>,org.xwiki.component.phase.Initializable,org.xwiki.rendering.macro.Macro<ShowHideIfMacroParameters>
@Component
@Named("hide-if")
@Singleton
public class HideIfMacro
extends com.xwiki.macros.showhideif.internal.macro.AbstractShowHideIfMacro
Hide if macro: Hide the content if the constraint match.
- Since:
- 1.23.0
- Version:
- $Id: $
-
Field Summary
Fields inherited from class com.xwiki.macros.showhideif.internal.macro.AbstractShowHideIfMacro
contentParserFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, supportsInlineModeMethods inherited from class com.xwiki.macros.AbstractProMacro
execute, getWikiDescriptorManager, isEditModeMethods inherited from class org.xwiki.rendering.macro.AbstractMacro
compareTo, getDescriptor, getNonGeneratedContentMetaData, getNonGeneratedContentMetaData, getNonGeneratedContentMetaData, getNonGeneratedContentMetaData, getPriority, initialize, setDefaultCategories, setDescriptor, setPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xwiki.rendering.macro.Macro
prepare
-
Constructor Details
-
HideIfMacro
public HideIfMacro()Create and initialize the descriptor of the macro.
-
-
Method Details
-
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
-