Class ParagraphBlockParser
- java.lang.Object
-
- org.apache.maven.doxia.module.twiki.parser.ParagraphBlockParser
-
- All Implemented Interfaces:
BlockParser
public class ParagraphBlockParser extends java.lang.Object implements BlockParser
Parse paragraphs.- Version:
- $Id: ParagraphBlockParser.java 1438269 2013-01-24 23:47:50Z olamy $
- Author:
- Juan F. Codagnone
-
-
Constructor Summary
Constructors Constructor Description ParagraphBlockParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.lang.String line)
accept.void
setHrulerParser(HRuleBlockParser aHrulerParser)
Sets the hrulerParser.void
setListParser(GenericListBlockParser aListParser)
Sets the listParser.void
setSectionParser(SectionBlockParser aSectionParser)
Sets the sectionParser.void
setTableBlockParser(TableBlockParser aTableBlockParser)
Setter for the fieldtableBlockParser
.void
setTextParser(FormatedTextParser aTextParser)
Sets the formatTextParser.void
setVerbatimParser(VerbatimBlockParser aVerbatimParser)
Sets the verbatimParser.Block
visit(java.lang.String line, ByLineSource source)
visit.
-
-
-
Method Detail
-
accept
public final boolean accept(java.lang.String line)
accept.
- Specified by:
accept
in interfaceBlockParser
- Parameters:
line
- text line- Returns:
true
if this class can handle this line
-
visit
public final Block visit(java.lang.String line, ByLineSource source) throws ParseException
visit.
- Specified by:
visit
in interfaceBlockParser
- Parameters:
line
- a line of textsource
- the source of lines- Returns:
- a block
- Throws:
ParseException
- on error
-
setSectionParser
public final void setSectionParser(SectionBlockParser aSectionParser)
Sets the sectionParser.- Parameters:
aSectionParser
-SectionBlockParser
with the sectionParser.
-
setListParser
public final void setListParser(GenericListBlockParser aListParser)
Sets the listParser.- Parameters:
aListParser
-ListBlockParser
with the listParser.
-
setTextParser
public final void setTextParser(FormatedTextParser aTextParser)
Sets the formatTextParser.- Parameters:
aTextParser
-FormatedTextParser
with the formatTextParser.
-
setHrulerParser
public final void setHrulerParser(HRuleBlockParser aHrulerParser)
Sets the hrulerParser.- Parameters:
aHrulerParser
-HRuleBlockParser
with the hrulerParser.
-
setTableBlockParser
public final void setTableBlockParser(TableBlockParser aTableBlockParser)
Setter for the field
tableBlockParser
.- Parameters:
aTableBlockParser
- Table parser to use
-
setVerbatimParser
public final void setVerbatimParser(VerbatimBlockParser aVerbatimParser)
Sets the verbatimParser.- Parameters:
aVerbatimParser
-VerbatimBlockParser
with the verbatimParser.- Since:
- 1.1
-
-