Class SectionBlock
- java.lang.Object
-
- org.apache.maven.doxia.module.twiki.parser.AbstractFatherBlock
-
- org.apache.maven.doxia.module.twiki.parser.SectionBlock
-
- All Implemented Interfaces:
Block
public class SectionBlock extends AbstractFatherBlock
Block that represents a section- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description SectionBlock(java.lang.String title, int level, Block[] blocks)Creates the SectionBlock.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidafter(Sink sink)method called after traversing the childs(package private) voidbefore(Sink sink)method called before traversing the childsintgetLevel()Returns the level.java.lang.StringgetTitle()Returns the title.private voidinvokeVoidVoid(Sink sink, java.lang.String name)Let you call sink's methods that returnsnulland have no parameters.private voidsectionEnd(Sink sink)call to sink.section_() private voidsectionStart(Sink sink)call to sink.section() private voidsectionTitle(Sink sink)private voidsectionTitle_(Sink sink)java.lang.StringtoString()-
Methods inherited from class org.apache.maven.doxia.module.twiki.parser.AbstractFatherBlock
equals, getBlocks, hashCode, traverse
-
-
-
-
Constructor Detail
-
SectionBlock
public SectionBlock(java.lang.String title, int level, Block[] blocks)Creates the SectionBlock.- Parameters:
title- the section title, cannot benulllevel- the section level: 0 < level < 6blocks- child blocks, cannot benull
-
-
Method Detail
-
before
final void before(Sink sink)
method called before traversing the childs- Specified by:
beforein classAbstractFatherBlock- Parameters:
sink- a sink to fill
-
after
final void after(Sink sink)
method called after traversing the childs- Specified by:
afterin classAbstractFatherBlock- Parameters:
sink- a sink to fill
-
sectionStart
private void sectionStart(Sink sink)
call to sink.section() - Parameters:
sink- sink
-
sectionEnd
private void sectionEnd(Sink sink)
call to sink.section_() - Parameters:
sink- sink
-
invokeVoidVoid
private void invokeVoidVoid(Sink sink, java.lang.String name)
Let you call sink's methods that returnsnulland have no parameters.- Parameters:
sink- the Sinkname- the name of the method to call
-
getLevel
public final int getLevel()
Returns the level.- Returns:
intwith the level.
-
getTitle
public final java.lang.String getTitle()
Returns the title.- Returns:
Stringwith the title.
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
sectionTitle
private void sectionTitle(Sink sink)
- Parameters:
sink-
-
sectionTitle_
private void sectionTitle_(Sink sink)
- Parameters:
sink-
-
-