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 booleanaccept.final voidsetHrulerParser(HRuleBlockParser hrulerParser) Sets the hrulerParser.final voidsetParaParser(ParagraphBlockParser paraParser) Sets the paraParser.final voidsetVerbatimBlockParser(VerbatimBlockParser verbatimBlockParser) Sets the verbatimBlockParser.final Blockvisit.
-
Constructor Details
-
SectionBlockParser
public SectionBlockParser()
-
-
Method Details
-
accept
accept.
- Specified by:
acceptin interfaceBlockParser- Parameters:
line- text line- Returns:
trueif 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:
visitin 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-ParagraphBlockParserwith the paraParser.
-
setHrulerParser
Sets the hrulerParser.- Parameters:
hrulerParser-HRuleBlockParserwith the hrulerParser.
-
setVerbatimBlockParser
Sets the verbatimBlockParser.- Parameters:
verbatimBlockParser-VerbatimBlockParserwith the verbatimBlockParser.- Since:
- 1.1
-