org.apache.maven.doxia.module.twiki.parser
Class TableBlockParser

java.lang.Object
  extended by org.apache.maven.doxia.module.twiki.parser.TableBlockParser
All Implemented Interfaces:
BlockParser

public class TableBlockParser
extends java.lang.Object
implements BlockParser

Parse tables

Since:
Nov 9, 2005
Author:
Juan F. Codagnone

Constructor Summary
TableBlockParser()
           
 
Method Summary
 boolean accept(java.lang.String line)
           
 void setTextParser(FormatedTextParser textParser)
           
 Block visit(java.lang.String line, org.apache.maven.doxia.util.ByLineSource source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableBlockParser

public TableBlockParser()
Method Detail

accept

public final boolean accept(java.lang.String line)
Specified by:
accept in interface BlockParser
Parameters:
line - text line
Returns:
true if this class can handle this line
See Also:
BlockParser.accept(String)

visit

public final Block visit(java.lang.String line,
                         org.apache.maven.doxia.util.ByLineSource source)
                  throws org.apache.maven.doxia.parser.ParseException
Specified by:
visit in interface BlockParser
Parameters:
line - a line of text
source - the source of lines
Returns:
a block
Throws:
org.apache.maven.doxia.parser.ParseException - on error
See Also:
BlockParser.visit(String, ByLineSource)

setTextParser

public final void setTextParser(FormatedTextParser textParser)
Parameters:
textParser - text parser to be set


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.