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) void
after(Sink sink)
method called after traversing the childs(package private) void
before(Sink sink)
method called before traversing the childsint
getLevel()
Returns the level.java.lang.String
getTitle()
Returns the title.private void
invokeVoidVoid(Sink sink, java.lang.String name)
Let you call sink's methods that returnsnull
and have no parameters.private void
sectionEnd(Sink sink)
call to sink.section_() private void
sectionStart(Sink sink)
call to sink.section() private void
sectionTitle(Sink sink)
private void
sectionTitle_(Sink sink)
java.lang.String
toString()
-
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 benull
level
- 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:
before
in classAbstractFatherBlock
- Parameters:
sink
- a sink to fill
-
after
final void after(Sink sink)
method called after traversing the childs- Specified by:
after
in 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 returnsnull
and have no parameters.- Parameters:
sink
- the Sinkname
- the name of the method to call
-
getLevel
public final int getLevel()
Returns the level.- Returns:
int
with the level.
-
getTitle
public final java.lang.String getTitle()
Returns the title.- Returns:
String
with the title.
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
sectionTitle
private void sectionTitle(Sink sink)
- Parameters:
sink
-
-
sectionTitle_
private void sectionTitle_(Sink sink)
- Parameters:
sink
-
-
-