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 void
method called after traversing the childs(package private) final void
method called before traversing the childsfinal int
getLevel()
Returns the level.final String
getTitle()
Returns the title.private void
invokeVoidVoid
(Sink sink, 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) final String
toString()
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 benull
level
- the section level: 0 < level < 6blocks
- child blocks, cannot benull
-
-
Method Details
-
before
method called before traversing the childs- Specified by:
before
in classAbstractFatherBlock
- Parameters:
sink
- a sink to fill
-
after
method called after traversing the childs- Specified by:
after
in 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 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
Returns the title.- Returns:
String
with the title.
-
toString
-
sectionTitle
- Parameters:
sink
-
-
sectionTitle_
- Parameters:
sink
-
-