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

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

public class TextBlock
extends Object
implements Block

Block that holds plain text

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

Constructor Summary
TextBlock(String text)
          Creates the TextBlock.
 
Method Summary
 boolean equals(Object obj)
           
 String getText()
          Returns the text.
 int hashCode()
           
 String toString()
           
 void traverse(Sink sink)
          Traverse the block
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextBlock

public TextBlock(String text)
          throws IllegalArgumentException
Creates the TextBlock.

Parameters:
text - some text. can't ben null
Throws:
IllegalArgumentException - if parameters are not in the domain
Method Detail

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)

toString

public final String toString()
See Also:
Object.toString()

getText

public final String getText()
Returns the text.

Returns:
String with the text.

equals

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

hashCode

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


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