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.- Author:
- Juan F. Codagnone
-
-
Constructor Summary
Constructors Constructor Description ParagraphBlockParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.lang.String line)accept.voidsetHrulerParser(HRuleBlockParser aHrulerParser)Sets the hrulerParser.voidsetListParser(GenericListBlockParser aListParser)Sets the listParser.voidsetSectionParser(SectionBlockParser aSectionParser)Sets the sectionParser.voidsetTableBlockParser(TableBlockParser aTableBlockParser)Setter for the fieldtableBlockParser.voidsetTextParser(FormatedTextParser aTextParser)Sets the formatTextParser.voidsetVerbatimParser(VerbatimBlockParser aVerbatimParser)Sets the verbatimParser.Blockvisit(java.lang.String line, org.apache.maven.doxia.util.ByLineSource source)visit.
-
-
-
Method Detail
-
accept
public final boolean accept(java.lang.String line)
accept.
- Specified by:
acceptin interfaceBlockParser- Parameters:
line- text line- Returns:
trueif this class can handle this line
-
visit
public final Block visit(java.lang.String line, org.apache.maven.doxia.util.ByLineSource source) throws org.apache.maven.doxia.parser.ParseException
visit.
- Specified by:
visitin interfaceBlockParser- Parameters:
line- a line of textsource- the source of lines- Returns:
- a block
- Throws:
org.apache.maven.doxia.parser.ParseException- on error
-
setSectionParser
public final void setSectionParser(SectionBlockParser aSectionParser)
Sets the sectionParser.- Parameters:
aSectionParser-SectionBlockParserwith the sectionParser.
-
setListParser
public final void setListParser(GenericListBlockParser aListParser)
Sets the listParser.- Parameters:
aListParser-ListBlockParserwith the listParser.
-
setTextParser
public final void setTextParser(FormatedTextParser aTextParser)
Sets the formatTextParser.- Parameters:
aTextParser-FormatedTextParserwith the formatTextParser.
-
setHrulerParser
public final void setHrulerParser(HRuleBlockParser aHrulerParser)
Sets the hrulerParser.- Parameters:
aHrulerParser-HRuleBlockParserwith 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-VerbatimBlockParserwith the verbatimParser.- Since:
- 1.1
-
-