org.xwiki.rendering.block.match
Class CompositeBlockMatcher
java.lang.Object
org.xwiki.rendering.block.match.CompositeBlockMatcher
- All Implemented Interfaces:
- BlockMatcher
public class CompositeBlockMatcher
- extends Object
- implements BlockMatcher
Implementation of BlockMatcher which matches blocks using passed matchers in series.
- Since:
- 3.0M3
- Version:
- $Id: 9011a50c3e8015c6527d7899d29f3bcef91bdb5a $
|
Method Summary |
boolean |
match(Block block)
True if the provided block is matched. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeBlockMatcher
public CompositeBlockMatcher(List<BlockMatcher> matchers)
- Parameters:
matchers - list of matchers to add
CompositeBlockMatcher
public CompositeBlockMatcher(BlockMatcher... matchers)
- Parameters:
matchers - vararg list of matchers to add
match
public boolean match(Block block)
- Description copied from interface:
BlockMatcher
- True if the provided block is matched.
- Specified by:
match in interface BlockMatcher
- Parameters:
block - the block to match
- Returns:
- true if the provided block is matched, false otherwise
Copyright © 2004-2014 XWiki. All Rights Reserved.