org.xwiki.rendering.block
Class PlainTextBlockFilter

java.lang.Object
  extended by 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: ffb41b4a0a40a98a9d2dde503f7c39b83486c728 $

Constructor Summary
PlainTextBlockFilter(Parser plainTextParser, LinkLabelGenerator linkLabelGenerator)
           
 
Method Summary
 List<Block> filter(Block block)
          Filter provided block into zero or more block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 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 interface BlockFilter
Parameters:
block - the block to filter.
Returns:
should never be null. The filtered blocks or empty list.


Copyright © 2004–2014 XWiki. All rights reserved.