Package org.xwiki.rendering.block.match
Class AnyBlockMatcher
- java.lang.Object
-
- org.xwiki.rendering.block.match.AnyBlockMatcher
-
- All Implemented Interfaces:
BlockMatcher
public class AnyBlockMatcher extends Object implements BlockMatcher
Implementation ofBlockMatcherwhich match anyBlock.- Since:
- 3.0M3
- Version:
- $Id: 1830c645e9b1486b76a5280d35ea012eb942a1b2 $
-
-
Field Summary
Fields Modifier and Type Field Description static AnyBlockMatcherANYBLOCKMATCHERStatic version ofAnyBlockMatchersince it's always the same.
-
Constructor Summary
Constructors Constructor Description AnyBlockMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatch(Block block)True if the provided block is matched.
-
-
-
Field Detail
-
ANYBLOCKMATCHER
public static final AnyBlockMatcher ANYBLOCKMATCHER
Static version ofAnyBlockMatchersince it's always the same.
-
-
Method Detail
-
match
public boolean match(Block block)
Description copied from interface:BlockMatcherTrue if the provided block is matched.- Specified by:
matchin interfaceBlockMatcher- Parameters:
block- the block to match- Returns:
- true if the provided block is matched, false otherwise
-
-