Class SameBlockMatcher

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

public class SameBlockMatcher extends Object implements BlockMatcher
Implementation of BlockMatcher which match Block same as the registered Block.
Since:
3.0M3
Version:
$Id: 0fced97cd2a054d8e8d4594703409ba63f875943 $
  • Constructor Details

    • SameBlockMatcher

      public SameBlockMatcher(Block block)
      Parameters:
      block - the block 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
      Parameters:
      block - the block to match
      Returns:
      true if the provided block is matched, false otherwise