Class SectionBlock
- java.lang.Object
-
- org.apache.maven.doxia.module.twiki.parser.SectionBlock
-
- All Implemented Interfaces:
Block
public class SectionBlock extends java.lang.Object
Block that represents a section- 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 boolean
equals(java.lang.Object obj)
Block[]
getBlocks()
Returns the childBlocks.int
getLevel()
Returns the level.java.lang.String
getTitle()
Returns the title.int
hashCode()
java.lang.String
toString()
void
traverse(org.apache.maven.doxia.sink.Sink sink)
Traverse the block
-
-
-
Constructor Detail
-
SectionBlock
public SectionBlock(java.lang.String title, int level, Block[] blocks)
Creates the SectionBlock.- Parameters:
title
- the section title, cannot benull
level
- the section level: 0 < level < 6blocks
- child blocks, cannot benull
-
-
Method Detail
-
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 classjava.lang.Object
- Returns:
- a
String
object.
-
traverse
public final void traverse(org.apache.maven.doxia.sink.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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- a int.
-
-