Class GenericListBlockParser
java.lang.Object
org.apache.maven.doxia.module.twiki.parser.GenericListBlockParser
- All Implemented Interfaces:
BlockParser
Generic list parser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String
private FormatedTextParser
parser used to create text blocksprivate static final GenericListBlockParser.Type
unordered listprivate static final GenericListBlockParser.Type
a.private static final GenericListBlockParser.Type
A.private static final GenericListBlockParser.Type
1.private static final GenericListBlockParser.Type
i.private static final GenericListBlockParser.Type
I.private final Pattern[]
supported patternsprivate static final GenericListBlockParser.Type[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
accept.final void
setTextParser
(FormatedTextParser textParser) Sets the formatTextParser.final Block
visit
(String line, ByLineSource source) visit.
-
Field Details
-
EOL
-
formatedTextParser
parser used to create text blocks -
patterns
supported patterns -
LIST
unordered list -
ORDERED_LOWER_ALPHA
a. -
ORDERED_UPPER_ALPHA
A. -
ORDERERED_DECIMAL
1. -
ORDERERED_LOWER_ROMAN
i. -
ORDERERED_UPPER_ROMAN
I. -
TYPES
-
-
Constructor Details
-
GenericListBlockParser
public GenericListBlockParser()Creates the GenericListBlockParser.
-
-
Method Details
-
accept
accept.
- Specified by:
accept
in interfaceBlockParser
- Parameters:
line
- text line- Returns:
true
if this class can handle this line
-
visit
visit.
- Specified by:
visit
in interfaceBlockParser
- Parameters:
line
- a line of textsource
- the source of lines- Returns:
- a block
- Throws:
ParseException
- on error
-
setTextParser
Sets the formatTextParser.- Parameters:
textParser
-FormatedTextParser
with the formatTextParser.
-