org.apache.maven.doxia.module.twiki.parser
Interface BlockParser

All Known Implementing Classes:
GenericListBlockParser, HRuleBlockParser, ParagraphBlockParser, SectionBlockParser, TableBlockParser, VerbatimBlockParser

public interface BlockParser

Parse a twiki syntax block

Version:
$Id: BlockParser.java 785531 2009-06-17 09:47:59Z ltheussl $
Author:
Juan F. Codagnone

Method Summary
 boolean accept(String line)
          accept.
 Block visit(String line, ByLineSource source)
          visit.
 

Method Detail

accept

boolean accept(String line)

accept.

Parameters:
line - text line
Returns:
true if this class can handle this line

visit

Block visit(String line,
            ByLineSource source)
            throws ParseException

visit.

Parameters:
line - a line of text
source - the source of lines
Returns:
a block
Throws:
ParseException - on error


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.