Package org.xwiki.rendering.block.match
Class FunctionBlockMatcher<T>
java.lang.Object
org.xwiki.rendering.block.match.FunctionBlockMatcher<T>
- Type Parameters:
T- the type of searched value
- All Implemented Interfaces:
BlockMatcher
Search for a specific value in a
Block.- Since:
- 15.9RC1
- Version:
- $Id: 4bdbd32908c6c68cf84594f32ad5252d44417066 $
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FunctionBlockMatcher
- Parameters:
function- the function in charger of searching of the value in theBlock
-
-
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
-
getValue
- Returns:
- the found value
-