org.apache.maven.doxia.module.confluence.parser
Class ParagraphBlockParser

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

public class ParagraphBlockParser
extends Object
implements BlockParser

ParagraphBlockParser class.

Version:
$Id: ParagraphBlockParser.java 775115 2009-05-15 12:54:18Z ltheussl $

Constructor Summary
ParagraphBlockParser(BlockParser[] parsers)
          Constructor for ParagraphBlockParser.
 
Method Summary
 boolean accept(String line, ByLineSource source)
          accept.
 Block visit(String line, ByLineSource source)
          visit.
 Block visit(String line, ByLineSource source, boolean generateParagraphTags)
          Visit the Block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParagraphBlockParser

public ParagraphBlockParser(BlockParser[] parsers)

Constructor for ParagraphBlockParser.

Parameters:
parsers - the parsers.
Method Detail

accept

public boolean accept(String line,
                      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,
                   ByLineSource source,
                   boolean generateParagraphTags)
            throws ParseException
Visit the Block.

Parameters:
line - the line to visit.
source - the source.
generateParagraphTags - whether to generate a paragraph.
Returns:
the visited Block.
Throws:
ParseException - if any

visit

public Block visit(String line,
                   ByLineSource source)
            throws ParseException
visit.

Specified by:
visit in interface BlockParser
Parameters:
line - the line.
source - the source.
Returns:
boolean true if valid.
Throws:
ParseException - if any.


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.