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

    contentParser

    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
    Create and initialize the descriptor of the macro.
  • Method Summary

    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, isEditMode

    Methods inherited from class org.xwiki.rendering.macro.AbstractMacro

    compareTo, getDescriptor, getNonGeneratedContentMetaData, getNonGeneratedContentMetaData, getNonGeneratedContentMetaData, getNonGeneratedContentMetaData, getPriority, initialize, setDefaultCategories, setDescriptor, setPriority

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.xwiki.rendering.macro.Macro

    prepare
  • Constructor Details

    • HideIfMacro

      public HideIfMacro()
      Create and initialize the descriptor of the macro.
  • Method Details