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

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

public class SectionBlock
extends Object

Block that represents a section

Version:
$Id: SectionBlock.java 763762 2009-04-09 18:19:56Z ltheussl $
Author:
Juan F. Codagnone

Constructor Summary
SectionBlock(String title, int level, Block[] blocks)
          Creates the SectionBlock.
 
Method Summary
 boolean equals(Object obj)
          
 Block[] getBlocks()
          Returns the childBlocks.
 int getLevel()
          Returns the level.
 String getTitle()
          Returns the title.
 int hashCode()
          
 String toString()
          
 void traverse(Sink sink)
          Traverse the block
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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
Method Detail

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()

Overrides:
toString in class Object

traverse

public final void traverse(Sink sink)
Traverse the block

Specified by:
traverse in interface Block
Parameters:
sink - the sink that travers

getBlocks

public final Block[] getBlocks()
Returns the childBlocks.

Returns:
Block[] with the childBlocks.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.