org.apache.maven.doxia.module.twiki.parser

Class SectionBlock

public class SectionBlock extends AbstractFatherBlock

Block that represents a section

Since: Nov 1, 2005

Author: Juan F. Codagnone

Constructor Summary
SectionBlock(String title, int level, Block[] blocks)
Creates the SectionBlock.
Method Summary
voidafter(Sink sink)
voidbefore(Sink sink)
intgetLevel()
Returns the level.
StringgetTitle()
Returns the title.
StringtoString()

Constructor Detail

SectionBlock

public SectionBlock(String title, int level, Block[] blocks)
Creates the SectionBlock.

No parameter can be null

Parameters: title the section title. level the section level: 0 < level < 6 blocks child blocks

Throws: IllegalArgumentException if the parameters are not in the domain

Method Detail

after

public final void after(Sink sink)

See Also: after

before

public final void before(Sink sink)

See Also: before

getLevel

public final int getLevel()
Returns the level.

Returns: int with the level.

getTitle

public final String getTitle()
Returns the title.

Returns: String with the title.

toString

public final String toString()

See Also: Object#toString()

Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.