Class ParagraphBlockParser
java.lang.Object
org.apache.maven.doxia.module.twiki.parser.ParagraphBlockParser
- All Implemented Interfaces:
BlockParser
Parse paragraphs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HRuleBlockParserHRuleBlockParserto use.private GenericListBlockParserGenericListBlockParserto use.private static final NopBlockno operation blockprivate final Patternpattern used to dectect end of paragraphprivate SectionBlockParserSectionBlockParserto use.private TableBlockParserTableBlockParserto use.private FormatedTextParserFormatedTextParserto use.private VerbatimBlockParserTableBlockParserto use. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanaccept.final voidsetHrulerParser(HRuleBlockParser aHrulerParser) Sets the hrulerParser.final voidsetListParser(GenericListBlockParser aListParser) Sets the listParser.final voidsetSectionParser(SectionBlockParser aSectionParser) Sets the sectionParser.final voidsetTableBlockParser(TableBlockParser aTableBlockParser) Setter for the fieldtableBlockParser.final voidsetTextParser(FormatedTextParser aTextParser) Sets the formatTextParser.final voidsetVerbatimParser(VerbatimBlockParser aVerbatimParser) Sets the verbatimParser.final Blockvisit(String line, ByLineSource source) visit.
-
Field Details
-
paragraphSeparator
pattern used to dectect end of paragraph -
sectionParser
SectionBlockParserto use. injected -
listParser
GenericListBlockParserto use. injected -
textParser
FormatedTextParserto use. injected -
hrulerParser
HRuleBlockParserto use. injected -
tableBlockParser
TableBlockParserto use. injected -
verbatimParser
TableBlockParserto use. injected -
NOP
no operation block
-
-
Constructor Details
-
ParagraphBlockParser
public ParagraphBlockParser()
-
-
Method Details
-
accept
accept.
- Specified by:
acceptin interfaceBlockParser- Parameters:
line- text line- Returns:
trueif this class can handle this line
-
visit
visit.
- Specified by:
visitin interfaceBlockParser- Parameters:
line- a line of textsource- the source of lines- Returns:
- a block
- Throws:
ParseException- on error
-
setSectionParser
Sets the sectionParser.- Parameters:
aSectionParser-SectionBlockParserwith the sectionParser.
-
setListParser
Sets the listParser.- Parameters:
aListParser-ListBlockParserwith the listParser.
-
setTextParser
Sets the formatTextParser.- Parameters:
aTextParser-FormatedTextParserwith the formatTextParser.
-
setHrulerParser
Sets the hrulerParser.- Parameters:
aHrulerParser-HRuleBlockParserwith the hrulerParser.
-
setTableBlockParser
Setter for the field
tableBlockParser.- Parameters:
aTableBlockParser- Table parser to use
-
setVerbatimParser
Sets the verbatimParser.- Parameters:
aVerbatimParser-VerbatimBlockParserwith the verbatimParser.- Since:
- 1.1
-