Class ListBlockParser
- java.lang.Object
-
- org.apache.maven.doxia.module.confluence.parser.list.ListBlockParser
-
- All Implemented Interfaces:
BlockParser
public class ListBlockParser extends java.lang.Object implements BlockParser
ListBlockParser class.
- Version:
- $Id: ListBlockParser.java 1633964 2014-10-23 22:01:01Z hboutemy $
- Author:
- Jason van Zyl
-
-
Field Summary
Fields Modifier and Type Field Description static intBULLETED_LISTConstantBULLETED_LIST=0static intNUMBERED_LISTConstantNUMBERED_LIST=1
-
Constructor Summary
Constructors Constructor Description ListBlockParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.lang.String line, ByLineSource source)accept.Blockvisit(java.lang.String line, ByLineSource source)visit.
-
-
-
Field Detail
-
BULLETED_LIST
public static final int BULLETED_LIST
ConstantBULLETED_LIST=0- See Also:
- Constant Field Values
-
NUMBERED_LIST
public static final int NUMBERED_LIST
ConstantNUMBERED_LIST=1- See Also:
- Constant Field Values
-
-
Method Detail
-
accept
public boolean accept(java.lang.String line, ByLineSource source)accept.- Specified by:
acceptin interfaceBlockParser- Parameters:
line- the line.source- the source.- Returns:
- boolean true if valid.
-
visit
public Block visit(java.lang.String line, ByLineSource source) throws ParseException
visit.- Specified by:
visitin interfaceBlockParser- Parameters:
line- the line.source- the source.- Returns:
- boolean true if valid.
- Throws:
ParseException- if any.
-
-