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

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

public class LinkBlock
extends Object
implements Block

Block that represents a link.

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

Constructor Summary
LinkBlock(String reference, String text)
          Creates the LinkBlock.
 
Method Summary
 boolean equals(Object obj)
           
 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

LinkBlock

public LinkBlock(String reference,
                 String text)
          throws IllegalArgumentException
Creates the LinkBlock.

Parameters:
reference - reference anchor
text - text to show
Throws:
IllegalArgumentException - if any argument is null
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)

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.