Class SectionBlock
- java.lang.Object
-
- org.apache.maven.doxia.module.twiki.parser.SectionBlock
-
- All Implemented Interfaces:
Block
public class SectionBlock extends java.lang.ObjectBlock that represents a section- Version:
- $Id: SectionBlock.java 1438269 2013-01-24 23:47:50Z olamy $
- Author:
- Juan F. Codagnone
-
-
Constructor Summary
Constructors Constructor Description SectionBlock(java.lang.String title, int level, Block[] blocks)Creates the SectionBlock.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Block[]getBlocks()Returns the childBlocks.intgetLevel()Returns the level.java.lang.StringgetTitle()Returns the title.inthashCode()java.lang.StringtoString()voidtraverse(Sink sink)Traverse the block
-
-
-
Constructor Detail
-
SectionBlock
public SectionBlock(java.lang.String title, int level, Block[] blocks)Creates the SectionBlock. No parameter can benull- Parameters:
title- the section title.level- the section level: 0 < level < 6blocks- child blocks
-
-
Method Detail
-
getLevel
public final int getLevel()
Returns the level.- Returns:
intwith the level.
-
getTitle
public final java.lang.String getTitle()
Returns the title.- Returns:
Stringwith the title.
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
traverse
public final void traverse(Sink sink)
Traverse the block
-
getBlocks
public final Block[] getBlocks()
Returns the childBlocks.- Returns:
Block[]with the childBlocks.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-