public class OrBlockMatcher extends Object implements BlockMatcher
BlockMatcher which matches blocks by matching with any
of the configured matchers. This is different from CompositeBlockMatcher which does an AND.| Constructor and Description |
|---|
OrBlockMatcher(BlockMatcher... matchers) |
OrBlockMatcher(List<BlockMatcher> matchers) |
public OrBlockMatcher(List<BlockMatcher> matchers)
matchers - list of matchers to addpublic OrBlockMatcher(BlockMatcher... matchers)
matchers - vararg list of matchers to addpublic boolean match(Block block)
BlockMatchermatch in interface BlockMatcherblock - the block to matchCopyright © 2004–2014 XWiki. All rights reserved.