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
Block that represents a section
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSectionBlock(String title, int level, Block[] blocks) Creates the SectionBlock. -
Method Summary
Modifier and TypeMethodDescription(package private) final voidmethod called after traversing the childs(package private) final voidmethod called before traversing the childsfinal intgetLevel()Returns the level.final StringgetTitle()Returns the title.private voidinvokeVoidVoid(Sink sink, 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) final StringtoString()Methods inherited from class org.apache.maven.doxia.module.twiki.parser.AbstractFatherBlock
equals, getBlocks, hashCode, traverse
-
Field Details
-
title
-
level
private final int level
-
-
Constructor Details
-
SectionBlock
Creates the SectionBlock.- Parameters:
title- the section title, cannot benulllevel- the section level: 0 < level < 6blocks- child blocks, cannot benull
-
-
Method Details
-
before
method called before traversing the childs- Specified by:
beforein classAbstractFatherBlock- Parameters:
sink- a sink to fill
-
after
method called after traversing the childs- Specified by:
afterin classAbstractFatherBlock- Parameters:
sink- a sink to fill
-
sectionStart
call to sink.section() - Parameters:
sink- sink
-
sectionEnd
call to sink.section_() - Parameters:
sink- sink
-
invokeVoidVoid
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
Returns the title.- Returns:
Stringwith the title.
-
toString
-
sectionTitle
- Parameters:
sink-
-
sectionTitle_
- Parameters:
sink-
-