Class MacroMarkerBlockMatcher

java.lang.Object
org.xwiki.rendering.block.match.ClassBlockMatcher
org.xwiki.rendering.block.match.MacroMarkerBlockMatcher
All Implemented Interfaces:
BlockMatcher

public class MacroMarkerBlockMatcher extends ClassBlockMatcher
Implementation of BlockMatcher which matches MacroMarkerBlocks for a list of provided macro names.
Since:
11.4
Version:
$Id: 58e8506ec203e93fb50dcf5a19a36634ca81ce9f $
  • Constructor Details

    • MacroMarkerBlockMatcher

      public MacroMarkerBlockMatcher(String... macroIds)
      Match MacroMarkerBlocks having the passed ids.
      Parameters:
      macroIds - the macro ids to match
  • Method Details

    • match

      public boolean match(Block block)
      Description copied from interface: BlockMatcher
      True if the provided block is matched.
      Specified by:
      match in interface BlockMatcher
      Overrides:
      match in class ClassBlockMatcher
      Parameters:
      block - the block to match
      Returns:
      true if the provided block is matched, false otherwise