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

Class TextBlock

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
booleanequals(Object obj)
StringgetText()
Returns the text.
inthashCode()
StringtoString()
voidtraverse(Sink sink)

Constructor Detail

TextBlock

public TextBlock(String text)
Creates the TextBlock.

Parameters: text some text. can't ben null

Throws: IllegalArgumentException if parameters are not in the domain

Method Detail

equals

public final boolean equals(Object obj)

See Also: Object#equals(Object)

getText

public final String getText()
Returns the text.

Returns: String with the text.

hashCode

public final int hashCode()

See Also: Object#hashCode()

toString

public final String toString()

See Also: Object#toString()

traverse

public final void traverse(Sink sink)

See Also: traverse

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