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 Details

    • PlainTextBlockFilter

      public PlainTextBlockFilter(Parser plainTextParser, LinkLabelGenerator linkLabelGenerator)
      Parameters:
      plainTextParser - a plain text parser used to transform link labels into plain text
      linkLabelGenerator - generate link label.
      Since:
      2.0M3
  • Method Details

    • filter

      public List<Block> filter(Block block)
      Description copied from interface: BlockFilter
      Filter provided block into zero or more block.
      Specified by:
      filter in interface BlockFilter
      Parameters:
      block - the block to filter.
      Returns:
      should never be null. The filtered blocks or empty list.