Package org.xwiki.rendering.block
Class PlainTextBlockFilter
- java.lang.Object
-
- org.xwiki.rendering.block.PlainTextBlockFilter
-
- All Implemented Interfaces:
BlockFilter
public class PlainTextBlockFilter extends Object implements BlockFilter
Used to filter plain text blocks.- Since:
- 1.9M1
- Version:
- $Id: 30ad554df12b0f5036f076af0291729d805c82c6 $
-
-
Constructor Summary
Constructors Constructor Description PlainTextBlockFilter(Parser plainTextParser, LinkLabelGenerator linkLabelGenerator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Block>
filter(Block block)
Filter provided block into zero or more block.
-
-
-
Constructor Detail
-
PlainTextBlockFilter
public PlainTextBlockFilter(Parser plainTextParser, LinkLabelGenerator linkLabelGenerator)
- Parameters:
plainTextParser
- a plain text parser used to transform link labels into plain textlinkLabelGenerator
- generate link label.- Since:
- 2.0M3
-
-
Method Detail
-
filter
public List<Block> filter(Block block)
Description copied from interface:BlockFilter
Filter provided block into zero or more block.- Specified by:
filter
in interfaceBlockFilter
- Parameters:
block
- the block to filter.- Returns:
- should never be null. The filtered blocks or empty list.
-
-