Class CompositeBlockMatcher

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

public class CompositeBlockMatcher extends Object implements BlockMatcher
Implementation of BlockMatcher which matches blocks using passed matchers in series.
Since:
3.0M3
Version:
$Id: 9011a50c3e8015c6527d7899d29f3bcef91bdb5a $
  • Constructor Details

    • CompositeBlockMatcher

      public CompositeBlockMatcher(List<BlockMatcher> matchers)
      Parameters:
      matchers - list of matchers to add
    • CompositeBlockMatcher

      public CompositeBlockMatcher(BlockMatcher... matchers)
      Parameters:
      matchers - vararg list of matchers to add
  • 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
      Parameters:
      block - the block to match
      Returns:
      true if the provided block is matched, false otherwise