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

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

public class ParagraphBlockParser
extends Object
implements BlockParser

Parse paragraphs.

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

Constructor Summary
ParagraphBlockParser()
           
 
Method Summary
 boolean accept(String line)
           
 void setHrulerParser(HRuleBlockParser hrulerParser)
          Sets the hrulerParser.
 void setListParser(GenericListBlockParser listParser)
          Sets the listParser.
 void setSectionParser(SectionBlockParser sectionParser)
          Sets the sectionParser.
 void setTableBlockParser(TableBlockParser tableBlockParser)
           
 void setTextParser(FormatedTextParser textParser)
          Sets the formatTextParser.
 Block visit(String line, ByLineSource source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParagraphBlockParser

public ParagraphBlockParser()
Method Detail

accept

public final boolean accept(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(String line,
                         ByLineSource source)
                  throws ParseException
Specified by:
visit in interface BlockParser
Parameters:
line - a line of text
source - the source of lines
Returns:
a block
Throws:
ParseException - on error
See Also:
BlockParser.visit(String, ByLineSource)

setSectionParser

public final void setSectionParser(SectionBlockParser sectionParser)
Sets the sectionParser.

Parameters:
sectionParser - SectionBlockParser with the sectionParser.

setListParser

public final void setListParser(GenericListBlockParser listParser)
Sets the listParser.

Parameters:
listParser - ListBlockParser with the listParser.

setTextParser

public final void setTextParser(FormatedTextParser textParser)
Sets the formatTextParser.

Parameters:
textParser - FormatedTextParser with the formatTextParser.

setHrulerParser

public final void setHrulerParser(HRuleBlockParser hrulerParser)
Sets the hrulerParser.

Parameters:
hrulerParser - HRuleBlockParser with the hrulerParser.

setTableBlockParser

public final void setTableBlockParser(TableBlockParser tableBlockParser)
Parameters:
tableBlockParser - Table parser to use


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.