Class ListBlockParser
java.lang.Object
org.apache.maven.doxia.module.confluence.parser.list.ListBlockParser
- All Implemented Interfaces:
BlockParser
ListBlockParser class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
ConstantBULLETED_LIST=0
static final int
ConstantNUMBERED_LIST=1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(String line, ByLineSource source) accept.private void
addItem
(TreeListBuilder treeListBuilder, StringBuilder text) private int
private boolean
isBulletedList
(String line, int deph) private boolean
visit
(String line, ByLineSource source) visit.
-
Field Details
-
BULLETED_LIST
public static final int BULLETED_LISTConstantBULLETED_LIST=0
- See Also:
-
NUMBERED_LIST
public static final int NUMBERED_LISTConstantNUMBERED_LIST=1
- See Also:
-
-
Constructor Details
-
ListBlockParser
public ListBlockParser()
-
-
Method Details
-
accept
accept.- Specified by:
accept
in interfaceBlockParser
- Parameters:
line
- the line.source
- the source.- Returns:
- boolean true if valid.
-
visit
visit.- Specified by:
visit
in interfaceBlockParser
- Parameters:
line
- the line.source
- the source.- Returns:
- boolean true if valid.
- Throws:
ParseException
- if any.
-
addItem
-
getLevel
-
isBulletedList
-
isList
-