public class SectionBlock
extends java.lang.Object
Constructor and Description |
---|
SectionBlock(java.lang.String title,
int level,
Block[] blocks)
Creates the SectionBlock.
|
Modifier and Type | Method and 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(Sink sink)
Traverse the block
|
public SectionBlock(java.lang.String title, int level, Block[] blocks)
null
title
- the section title.level
- the section level: 0 < level < 6blocks
- child blockspublic final int getLevel()
int
with the level.public final java.lang.String getTitle()
String
with the title.public final java.lang.String toString()
toString
in class java.lang.Object
public final void traverse(Sink sink)
public final Block[] getBlocks()
Block[]
with the childBlocks.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.