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

java.lang.Object
  extended byorg.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

public abstract class AbstractFatherBlock
extends Object
implements Block

Generic Block for the Block that have child blocks.

Since:
Nov 1, 2005
Author:
Juan F. Codagnone

Constructor Summary
AbstractFatherBlock(Block[] childBlocks)
          Creates the AbstractFatherBlock.
 
Method Summary
abstract  void after(Sink sink)
          method called after traversing the childs
abstract  void before(Sink sink)
          method called before traversing the childs
 boolean equals(Object obj)
           
 Block[] getBlocks()
          Returns the childBlocks.
 int hashCode()
           
 void traverse(Sink sink)
          Traverse the block
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFatherBlock

public AbstractFatherBlock(Block[] childBlocks)
Creates the AbstractFatherBlock.

Parameters:
childBlocks - child blocks
Method Detail

before

public abstract void before(Sink sink)
method called before traversing the childs

Parameters:
sink - a sink to fill

after

public abstract void after(Sink sink)
method called after traversing the childs

Parameters:
sink - a sink to fill

traverse

public final void traverse(Sink sink)
Description copied from interface: Block
Traverse the block

Specified by:
traverse in interface Block
Parameters:
sink - the sink that travers
See Also:
Block.traverse(org.apache.maven.doxia.sink.Sink)

getBlocks

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

Returns:
Block[] with the childBlocks.

equals

public boolean equals(Object obj)
See Also:
Object.equals(Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.