Class ParagraphBlockParser
- java.lang.Object
-
- org.apache.maven.doxia.module.confluence.parser.ParagraphBlockParser
-
- All Implemented Interfaces:
BlockParser
public class ParagraphBlockParser extends java.lang.Object implements BlockParser
ParagraphBlockParser class.
-
-
Constructor Summary
Constructors Constructor Description ParagraphBlockParser(BlockParser[] parsers)
Constructor for ParagraphBlockParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.lang.String line, org.apache.maven.doxia.util.ByLineSource source)
accept.Block
visit(java.lang.String line, org.apache.maven.doxia.util.ByLineSource source)
visit.Block
visit(java.lang.String line, org.apache.maven.doxia.util.ByLineSource source, boolean generateParagraphTags)
Visit the Block.
-
-
-
Constructor Detail
-
ParagraphBlockParser
public ParagraphBlockParser(BlockParser[] parsers)
Constructor for ParagraphBlockParser.
- Parameters:
parsers
- the parsers.
-
-
Method Detail
-
accept
public boolean accept(java.lang.String line, org.apache.maven.doxia.util.ByLineSource source)
accept.- Specified by:
accept
in interfaceBlockParser
- Parameters:
line
- the line.source
- the source.- Returns:
- boolean true if valid.
-
visit
public Block visit(java.lang.String line, org.apache.maven.doxia.util.ByLineSource source, boolean generateParagraphTags) throws org.apache.maven.doxia.parser.ParseException
Visit the Block.- Parameters:
line
- the line to visit.source
- the source.generateParagraphTags
- whether to generate a paragraph.- Returns:
- the visited Block.
- Throws:
org.apache.maven.doxia.parser.ParseException
- if any.
-
visit
public Block visit(java.lang.String line, org.apache.maven.doxia.util.ByLineSource source) throws org.apache.maven.doxia.parser.ParseException
visit.- Specified by:
visit
in interfaceBlockParser
- Parameters:
line
- the line.source
- the source.- Returns:
- boolean true if valid.
- Throws:
org.apache.maven.doxia.parser.ParseException
- if any.
-
-