Class SectionBlockParser
java.lang.Object
org.apache.maven.doxia.module.twiki.parser.SectionBlockParser
- All Implemented Interfaces:
BlockParser
Parse looking for sections
- Author:
- Juan F. Codagnone
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
accept.final void
setHrulerParser
(HRuleBlockParser hrulerParser) Sets the hrulerParser.final void
setParaParser
(ParagraphBlockParser paraParser) Sets the paraParser.final void
setVerbatimBlockParser
(VerbatimBlockParser verbatimBlockParser) Sets the verbatimBlockParser.final Block
visit.
-
Constructor Details
-
SectionBlockParser
public SectionBlockParser()
-
-
Method Details
-
accept
accept.
- Specified by:
accept
in interfaceBlockParser
- Parameters:
line
- text line- Returns:
true
if this class can handle this line
-
visit
public final Block visit(String line, org.apache.maven.doxia.util.ByLineSource source) throws org.apache.maven.doxia.parser.ParseException visit.
- Specified by:
visit
in interfaceBlockParser
- Parameters:
line
- a line of textsource
- the source of lines- Returns:
- a block
- Throws:
org.apache.maven.doxia.parser.ParseException
- on error
-
setParaParser
Sets the paraParser.- Parameters:
paraParser
-ParagraphBlockParser
with the paraParser.
-
setHrulerParser
Sets the hrulerParser.- Parameters:
hrulerParser
-HRuleBlockParser
with the hrulerParser.
-
setVerbatimBlockParser
Sets the verbatimBlockParser.- Parameters:
verbatimBlockParser
-VerbatimBlockParser
with the verbatimBlockParser.- Since:
- 1.1
-