org.xwiki.rendering.block.match
Class AnyBlockMatcher

java.lang.Object
  extended by org.xwiki.rendering.block.match.AnyBlockMatcher
All Implemented Interfaces:
BlockMatcher

public class AnyBlockMatcher
extends Object
implements BlockMatcher

Implementation of BlockMatcher which match any Block.

Since:
3.0M3
Version:
$Id: 36f9fe62e0e55cf80e2bc350ab8dd51eaf4a350b $

Field Summary
static AnyBlockMatcher ANYBLOCKMATCHER
          Static version of AnyBlockMatcher since it's always the same.
 
Constructor Summary
AnyBlockMatcher()
           
 
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
 

Field Detail

ANYBLOCKMATCHER

public static final AnyBlockMatcher ANYBLOCKMATCHER
Static version of AnyBlockMatcher since it's always the same.

Constructor Detail

AnyBlockMatcher

public AnyBlockMatcher()
Method Detail

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.