Package org.xwiki.rendering.block.match
Class OrBlockMatcher
java.lang.Object
org.xwiki.rendering.block.match.OrBlockMatcher
- All Implemented Interfaces:
BlockMatcher
Implementation of
BlockMatcher which matches blocks by matching with any
of the configured matchers. This is different from CompositeBlockMatcher which does an AND.- Since:
- 4.3M2
- Version:
- $Id: d3ead87adea751c53f85cfcc92ce7c90017a4763 $
-
Constructor Summary
ConstructorsConstructorDescriptionOrBlockMatcher(List<BlockMatcher> matchers) OrBlockMatcher(BlockMatcher... matchers) -
Method Summary
-
Constructor Details
-
OrBlockMatcher
- Parameters:
matchers- list of matchers to add
-
OrBlockMatcher
- 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
-