org.apache.maven.doxia.module.confluence.parser.list
Class ListBlockParser

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

public class ListBlockParser
extends Object
implements BlockParser

ListBlockParser class.

Version:
$Id: ListBlockParser.java 947266 2010-05-22 07:49:50Z ltheussl $
Author:
Jason van Zyl

Field Summary
static int BULLETED_LIST
          Constant BULLETED_LIST=0
static int NUMBERED_LIST
          Constant NUMBERED_LIST=1
 
Constructor Summary
ListBlockParser()
           
 
Method Summary
 boolean accept(String line, ByLineSource source)
          accept.
 Block visit(String line, ByLineSource source)
          visit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BULLETED_LIST

public static final int BULLETED_LIST
Constant BULLETED_LIST=0

See Also:
Constant Field Values

NUMBERED_LIST

public static final int NUMBERED_LIST
Constant NUMBERED_LIST=1

See Also:
Constant Field Values
Constructor Detail

ListBlockParser

public ListBlockParser()
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)
            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.