org.apache.maven.doxia.module.twiki.parser
Class SectionBlockParser
java.lang.Object
org.apache.maven.doxia.module.twiki.parser.SectionBlockParser
- All Implemented Interfaces:
- BlockParser
public class SectionBlockParser
- extends java.lang.Object
- implements BlockParser
Parse looking for sections
- Since:
- Nov 1, 2005
- Author:
- Juan F. Codagnone
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SectionBlockParser
public SectionBlockParser()
accept
public final boolean accept(java.lang.String s)
- Specified by:
accept
in interface BlockParser
- Parameters:
s
- text line
- Returns:
true
if this class can handle this line- See Also:
BlockParser.accept(String)
visit
public final Block visit(java.lang.String line,
org.apache.maven.doxia.util.ByLineSource source)
throws org.apache.maven.doxia.parser.ParseException
- Specified by:
visit
in interface BlockParser
- Parameters:
line
- a line of textsource
- the source of lines
- Returns:
- a block
- Throws:
org.apache.maven.doxia.parser.ParseException
- on error- See Also:
BlockParser#visit(String)
setParaParser
public final void setParaParser(ParagraphBlockParser paraParser)
- Sets the paraParser.
- Parameters:
paraParser
- ParagraphBlockParser
with the paraParser.
setHrulerParser
public final void setHrulerParser(HRuleBlockParser hrulerParser)
- Sets the hrulerParser.
- Parameters:
hrulerParser
- HRuleBlockParser
with the hrulerParser.
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.