Package org.xwiki.rendering.block.match
Class MacroBlockMatcher
- java.lang.Object
-
- org.xwiki.rendering.block.match.ClassBlockMatcher
-
- org.xwiki.rendering.block.match.MacroBlockMatcher
-
- All Implemented Interfaces:
BlockMatcher
public class MacroBlockMatcher extends ClassBlockMatcher
Implementation ofBlockMatcherwhich matchesMacroBlocks.- Since:
- 3.0RC1
- Version:
- $Id: 4c636cc250d9cd2870284cf36561a78b830fae36 $
-
-
Constructor Summary
Constructors Constructor Description MacroBlockMatcher(String macroId)MatchMacroBlockhaving the passed id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(Block block)True if the provided block is matched.
-
-
-
Constructor Detail
-
MacroBlockMatcher
public MacroBlockMatcher(String macroId)
MatchMacroBlockhaving the passed id.- Parameters:
macroId- the macro id to match
-
-
Method Detail
-
match
public boolean match(Block block)
Description copied from interface:BlockMatcherTrue if the provided block is matched.- Specified by:
matchin interfaceBlockMatcher- Overrides:
matchin classClassBlockMatcher- Parameters:
block- the block to match- Returns:
- true if the provided block is matched, false otherwise
-
-