Class GenericListBlockParser

  • All Implemented Interfaces:
    BlockParser

    public class GenericListBlockParser
    extends java.lang.Object
    implements BlockParser
    Generic list parser
    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, org.apache.maven.doxia.util.ByLineSource source)
      visit.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenericListBlockParser

        public GenericListBlockParser()
        Creates the GenericListBlockParser.
    • Method Detail

      • accept

        public final boolean accept​(java.lang.String line)

        accept.

        Specified by:
        accept in interface BlockParser
        Parameters:
        line - text line
        Returns:
        true if this class can handle this line
      • visit

        public final 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 interface BlockParser
        Parameters:
        line - a line of text
        source - the source of lines
        Returns:
        a block
        Throws:
        org.apache.maven.doxia.parser.ParseException - on error
      • setTextParser

        public final void setTextParser​(FormatedTextParser textParser)
        Sets the formatTextParser.
        Parameters:
        textParser - FormatedTextParser with the formatTextParser.