Class AbstractFatherBlock
- java.lang.Object
-
- org.apache.maven.doxia.module.twiki.parser.AbstractFatherBlock
-
- All Implemented Interfaces:
Block
- Direct Known Subclasses:
BoldBlock
,ItalicBlock
,ListBlock
,ListItemBlock
,MonospaceBlock
,ParagraphBlock
,SectionBlock
,TableBlock
,TableCellBlock
,TableCellHeaderBlock
,TableRowBlock
,VerbatimBlock
abstract class AbstractFatherBlock extends java.lang.Object implements Block
Generic Block for the Block that have child blocks.- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description private Block[]
childBlocks
-
Constructor Summary
Constructors Constructor Description AbstractFatherBlock(Block[] childBlocks)
Creates the AbstractFatherBlock.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract void
after(Sink sink)
method called after traversing the childs(package private) abstract void
before(Sink sink)
method called before traversing the childsboolean
equals(java.lang.Object obj)
Block[]
getBlocks()
Returns the childBlocks.int
hashCode()
void
traverse(Sink sink)
Traverse the block
-
-
-
Field Detail
-
childBlocks
private final Block[] childBlocks
- See Also:
AbstractFatherBlock(Block[])
-
-
Constructor Detail
-
AbstractFatherBlock
AbstractFatherBlock(Block[] childBlocks)
Creates the AbstractFatherBlock.- Parameters:
childBlocks
- child blocks
-
-
Method Detail
-
before
abstract void before(Sink sink)
method called before traversing the childs- Parameters:
sink
- a sink to fill
-
after
abstract void after(Sink sink)
method called after traversing the childs- Parameters:
sink
- a sink to fill
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-