Class ParagraphBlockParser

java.lang.Object
org.apache.maven.doxia.module.confluence.parser.ParagraphBlockParser
All Implemented Interfaces:
BlockParser

public class ParagraphBlockParser extends Object implements BlockParser

ParagraphBlockParser class.

  • Constructor Details

    • ParagraphBlockParser

      public ParagraphBlockParser(BlockParser[] parsers)

      Constructor for ParagraphBlockParser.

      Parameters:
      parsers - the parsers.
  • Method Details

    • accept

      public boolean accept(String line, org.apache.maven.doxia.util.ByLineSource source)
      accept.
      Specified by:
      accept in interface BlockParser
      Parameters:
      line - the line.
      source - the source.
      Returns:
      boolean true if valid.
    • visit

      public Block visit(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(String line, org.apache.maven.doxia.util.ByLineSource source) throws org.apache.maven.doxia.parser.ParseException
      visit.
      Specified by:
      visit in interface BlockParser
      Parameters:
      line - the line.
      source - the source.
      Returns:
      boolean true if valid.
      Throws:
      org.apache.maven.doxia.parser.ParseException - if any.