Class LinkBlock

  • All Implemented Interfaces:
    Block

    class LinkBlock
    extends java.lang.Object
    implements Block
    Block that represents a link.
    Version:
    $Id$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Block content
      link text
      private java.lang.String reference
      link reference
    • Constructor Summary

      Constructors 
      Constructor Description
      LinkBlock​(java.lang.String reference, java.lang.String text)
      Deprecated. 
      LinkBlock​(java.lang.String reference, Block content)
      Creates the LinkBlock.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.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
    • Field Detail

      • reference

        private final java.lang.String reference
        link reference
      • content

        private final Block content
        link text
    • Constructor Detail

      • LinkBlock

        LinkBlock​(java.lang.String reference,
                  java.lang.String text)
        Deprecated.
        Creates the LinkBlock.
        Parameters:
        reference - reference anchor
        text - text to display
      • LinkBlock

        LinkBlock​(java.lang.String reference,
                  Block content)
        Creates the LinkBlock.
        Parameters:
        reference - reference anchor, not null.
        content - block with the displayed content, not null.
    • Method Detail

      • traverse

        public final void traverse​(Sink sink)
        Traverse the block
        Specified by:
        traverse in interface Block
        Parameters:
        sink - the sink that travers
      • equals

        public final boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object