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

java.lang.Object
  extended byorg.apache.maven.doxia.module.twiki.parser.AbstractFatherBlock
      extended byorg.apache.maven.doxia.module.twiki.parser.ListItemBlock
All Implemented Interfaces:
Block

public class ListItemBlock
extends AbstractFatherBlock

Block that represents the item in a list

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

Constructor Summary
ListItemBlock(Block[] blocks)
           
ListItemBlock(Block[] blocks, ListBlock innerList)
          Creates the ListItemBlock.
 
Method Summary
 void after(Sink sink)
          method called after traversing the childs
 void before(Sink sink)
          method called before traversing the childs
 boolean equals(Object obj)
           
 ListBlock getInnerList()
          Returns the innerList.
 int hashCode()
           
 
Methods inherited from class org.apache.maven.doxia.module.twiki.parser.AbstractFatherBlock
getBlocks, traverse
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListItemBlock

public ListItemBlock(Block[] blocks)
              throws IllegalArgumentException
See Also:
ListItemBlock(Block[], ListBlock)

ListItemBlock

public ListItemBlock(Block[] blocks,
                     ListBlock innerList)
              throws IllegalArgumentException
Creates the ListItemBlock.

Parameters:
blocks - text
innerList - child list
Throws:
IllegalArgumentException - if textBlocks is null
Method Detail

before

public final void before(Sink sink)
Description copied from class: AbstractFatherBlock
method called before traversing the childs

Specified by:
before in class AbstractFatherBlock
Parameters:
sink - a sink to fill
See Also:
AbstractFatherBlock.before(org.apache.maven.doxia.sink.Sink)

after

public final void after(Sink sink)
Description copied from class: AbstractFatherBlock
method called after traversing the childs

Specified by:
after in class AbstractFatherBlock
Parameters:
sink - a sink to fill
See Also:
AbstractFatherBlock.after(org.apache.maven.doxia.sink.Sink)

getInnerList

public final ListBlock getInnerList()
Returns the innerList.

Returns:
UnorderedListBlock with the innerList.

equals

public final boolean equals(Object obj)
Overrides:
equals in class AbstractFatherBlock
See Also:
Object.equals(Object)

hashCode

public final int hashCode()
Overrides:
hashCode in class AbstractFatherBlock
See Also:
Object.hashCode()


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