Class GenericListBlockParser
- java.lang.Object
-
- org.apache.maven.doxia.module.twiki.parser.GenericListBlockParser
-
- All Implemented Interfaces:
BlockParser
public class GenericListBlockParser extends java.lang.Object implements BlockParser
Generic list parser- Version:
- $Id: GenericListBlockParser.java 1438269 2013-01-24 23:47:50Z olamy $
- Author:
- Juan F. Codagnone
-
-
Constructor Summary
Constructors Constructor Description GenericListBlockParser()
Creates the GenericListBlockParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.lang.String line)
accept.void
setTextParser(FormatedTextParser textParser)
Sets the formatTextParser.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
-
setTextParser
public final void setTextParser(FormatedTextParser textParser)
Sets the formatTextParser.- Parameters:
textParser
-FormatedTextParser
with the formatTextParser.
-
-