org.xwiki.rendering.block.match
Class MacroBlockMatcher

java.lang.Object
  extended by org.xwiki.rendering.block.match.ClassBlockMatcher
      extended by org.xwiki.rendering.block.match.MacroBlockMatcher
All Implemented Interfaces:
BlockMatcher

public class MacroBlockMatcher
extends ClassBlockMatcher

Implementation of BlockMatcher which matches MacroBlocks.

Since:
3.0RC1
Version:
$Id: 4c636cc250d9cd2870284cf36561a78b830fae36 $

Constructor Summary
MacroBlockMatcher(String macroId)
          Match MacroBlock having the passed id.
 
Method Summary
 boolean match(Block block)
          True if the provided block is matched.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroBlockMatcher

public MacroBlockMatcher(String macroId)
Match MacroBlock having the passed id.

Parameters:
macroId - the macro id to match
Method Detail

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


Copyright © 2004–2015 XWiki. All rights reserved.