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

Class AbstractFatherBlock

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 voidafter(Sink sink)
method called after traversing the childs
abstract voidbefore(Sink sink)
method called before traversing the childs
booleanequals(Object obj)
Block[]getBlocks()
Returns the childBlocks.
inthashCode()
voidtraverse(Sink sink)

Constructor Detail

AbstractFatherBlock

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

Parameters: childBlocks child blocks

Method Detail

after

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

Parameters: sink a sink to fill

before

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

Parameters: sink a sink to fill

equals

public boolean equals(Object obj)

See Also: Object#equals(Object)

getBlocks

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

Returns: Block[] with the childBlocks.

hashCode

public int hashCode()

See Also: Object#hashCode()

traverse

public final void traverse(Sink sink)

See Also: traverse

Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.