Package org.xwiki.rendering.block.match
Class CompositeBlockMatcher
java.lang.Object
org.xwiki.rendering.block.match.CompositeBlockMatcher
- All Implemented Interfaces:
BlockMatcher
Implementation of
BlockMatcher which matches blocks using passed matchers in series.- Since:
- 3.0M3
- Version:
- $Id: 9011a50c3e8015c6527d7899d29f3bcef91bdb5a $
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeBlockMatcher(List<BlockMatcher> matchers) CompositeBlockMatcher(BlockMatcher... matchers) -
Method Summary
-
Constructor Details
-
CompositeBlockMatcher
- Parameters:
matchers- list of matchers to add
-
CompositeBlockMatcher
- Parameters:
matchers- vararg list of matchers to add
-
-
Method Details
-
match
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
-