Package org.xwiki.rendering.block.match
Class ClassBlockMatcher
- java.lang.Object
-
- org.xwiki.rendering.block.match.ClassBlockMatcher
-
- All Implemented Interfaces:
BlockMatcher
- Direct Known Subclasses:
MacroBlockMatcher
,MacroMarkerBlockMatcher
,MetadataBlockMatcher
public class ClassBlockMatcher extends Object implements BlockMatcher
Implementation ofBlockMatcher
which match anyBlock
with the provided class.- Since:
- 3.0M3
- Version:
- $Id: 6c4698a7e696fae610545a1cdc07076c0fd338ae $
-
-
Constructor Summary
Constructors Constructor Description ClassBlockMatcher(Class<? extends Block> blockClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
match(Block block)
True if the provided block is matched.
-
-
-
Method Detail
-
match
public boolean match(Block block)
Description copied from interface:BlockMatcher
True if the provided block is matched.- Specified by:
match
in interfaceBlockMatcher
- Parameters:
block
- the block to match- Returns:
- true if the provided block is matched, false otherwise
-
-