Class ParagraphBlockParser
java.lang.Object
org.apache.maven.doxia.module.twiki.parser.ParagraphBlockParser
- All Implemented Interfaces:
BlockParser
Parse paragraphs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HRuleBlockParser
HRuleBlockParser
to use.private GenericListBlockParser
GenericListBlockParser
to use.private static final NopBlock
no operation blockprivate final Pattern
pattern used to dectect end of paragraphprivate SectionBlockParser
SectionBlockParser
to use.private TableBlockParser
TableBlockParser
to use.private FormatedTextParser
FormatedTextParser
to use.private VerbatimBlockParser
TableBlockParser
to use. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
accept.final void
setHrulerParser
(HRuleBlockParser aHrulerParser) Sets the hrulerParser.final void
setListParser
(GenericListBlockParser aListParser) Sets the listParser.final void
setSectionParser
(SectionBlockParser aSectionParser) Sets the sectionParser.final void
setTableBlockParser
(TableBlockParser aTableBlockParser) Setter for the fieldtableBlockParser
.final void
setTextParser
(FormatedTextParser aTextParser) Sets the formatTextParser.final void
setVerbatimParser
(VerbatimBlockParser aVerbatimParser) Sets the verbatimParser.final Block
visit
(String line, ByLineSource source) visit.
-
Field Details
-
paragraphSeparator
pattern used to dectect end of paragraph -
sectionParser
SectionBlockParser
to use. injected -
listParser
GenericListBlockParser
to use. injected -
textParser
FormatedTextParser
to use. injected -
hrulerParser
HRuleBlockParser
to use. injected -
tableBlockParser
TableBlockParser
to use. injected -
verbatimParser
TableBlockParser
to use. injected -
NOP
no operation block
-
-
Constructor Details
-
ParagraphBlockParser
public ParagraphBlockParser()
-
-
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
-
setSectionParser
Sets the sectionParser.- Parameters:
aSectionParser
-SectionBlockParser
with the sectionParser.
-
setListParser
Sets the listParser.- Parameters:
aListParser
-ListBlockParser
with the listParser.
-
setTextParser
Sets the formatTextParser.- Parameters:
aTextParser
-FormatedTextParser
with the formatTextParser.
-
setHrulerParser
Sets the hrulerParser.- Parameters:
aHrulerParser
-HRuleBlockParser
with the hrulerParser.
-
setTableBlockParser
Setter for the field
tableBlockParser
.- Parameters:
aTableBlockParser
- Table parser to use
-
setVerbatimParser
Sets the verbatimParser.- Parameters:
aVerbatimParser
-VerbatimBlockParser
with the verbatimParser.- Since:
- 1.1
-