Class GenericListBlockParser
java.lang.Object
org.apache.maven.doxia.module.twiki.parser.GenericListBlockParser
- All Implemented Interfaces:
BlockParser
Generic list parser
- Author:
- Juan F. Codagnone
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanaccept.final voidsetTextParser(FormatedTextParser textParser) Sets the formatTextParser.final Blockvisit.
-
Constructor Details
-
GenericListBlockParser
public GenericListBlockParser()Creates the GenericListBlockParser.
-
-
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
-
setTextParser
Sets the formatTextParser.- Parameters:
textParser-FormatedTextParserwith the formatTextParser.
-