org.xwiki.rendering.block
Class PlainTextBlockFilter

java.lang.Object
  extended by org.xwiki.rendering.block.PlainTextBlockFilter
All Implemented Interfaces:
BlockFilter

public class PlainTextBlockFilter
extends java.lang.Object
implements BlockFilter

Used to filter plain text blocks.

Since:
1.9M1
Version:
$Id: PlainTextBlockFilter.java 34813 2011-02-19 15:20:36Z vmassol $

Constructor Summary
PlainTextBlockFilter(Parser plainTextParser, LinkLabelGenerator linkLabelGenerator)
           
 
Method Summary
 java.util.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 java.util.List<Block> filter(Block block)
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.
See Also:
BlockFilter.filter(org.xwiki.rendering.block.Block)


Copyright © 2004-2011 XWiki. All Rights Reserved.