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

java.lang.Object
  extended by org.apache.maven.doxia.module.twiki.parser.AbstractFatherBlock
      extended by org.apache.maven.doxia.module.twiki.parser.SectionBlock
All Implemented Interfaces:
Block

public class SectionBlock
extends AbstractFatherBlock

Block that represents a section

Since:
Nov 1, 2005
Author:
Juan F. Codagnone

Constructor Summary
SectionBlock(java.lang.String title, int level, Block[] blocks)
          Creates the SectionBlock.
 
Method Summary
 void after(org.apache.maven.doxia.sink.Sink sink)
          method called after traversing the childs
 void before(org.apache.maven.doxia.sink.Sink sink)
          method called before traversing the childs
 int getLevel()
          Returns the level.
 java.lang.String getTitle()
          Returns the title.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.maven.doxia.module.twiki.parser.AbstractFatherBlock
equals, getBlocks, hashCode, traverse
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SectionBlock

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

No parameter can be null

Parameters:
title - the section title.
level - the section level: 0 < level < 6
blocks - child blocks
Throws:
java.lang.IllegalArgumentException - if the parameters are not in the domain
Method Detail

before

public final void before(org.apache.maven.doxia.sink.Sink sink)
Description copied from class: AbstractFatherBlock
method called before traversing the childs

Specified by:
before in class AbstractFatherBlock
Parameters:
sink - a sink to fill
See Also:
AbstractFatherBlock.before(org.apache.maven.doxia.sink.Sink)

after

public final void after(org.apache.maven.doxia.sink.Sink sink)
Description copied from class: AbstractFatherBlock
method called after traversing the childs

Specified by:
after in class AbstractFatherBlock
Parameters:
sink - a sink to fill
See Also:
AbstractFatherBlock.after(org.apache.maven.doxia.sink.Sink)

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 class java.lang.Object
See Also:
Object.toString()


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