Class WikiWordBlock

  • All Implemented Interfaces:
    Block

    class WikiWordBlock
    extends java.lang.Object
    implements Block
    Represent a WikiWord
    Version:
    $Id$
    • Field Detail

      • wikiword

        private final java.lang.String wikiword
        the wiki word
      • content

        private final Block content
        content to show in the wiki word link
      • wikiWordLinkResolver

        private final WikiWordLinkResolver wikiWordLinkResolver
        Resolves WikiWord links
    • Constructor Detail

      • WikiWordBlock

        WikiWordBlock​(java.lang.String aWikiword,
                      WikiWordLinkResolver resolver)
        Parameters:
        aWikiword - the wikiWord
        resolver - responsible of resolving the link to the wikiWord
        See Also:
        #WikiWordBlock(String, String)
      • WikiWordBlock

        WikiWordBlock​(java.lang.String aWikiword,
                      java.lang.String aText,
                      WikiWordLinkResolver resolver)
        Deprecated.
        Creates the WikiWordBlock.
        Parameters:
        aWikiword - the wiki word
        aText - text to show in the wiki link
        resolver - responsible of resolving the link to the wikiWord
        Throws:
        java.lang.IllegalArgumentException - if the wikiword is null
      • WikiWordBlock

        WikiWordBlock​(java.lang.String aWikiword,
                      Block content,
                      WikiWordLinkResolver resolver)
        Creates the WikiWordBlock.
        Parameters:
        aWikiword - the wiki word
        content - content to show in the wiki link
        resolver - responsible of resolving the link to the wikiWord
        Throws:
        java.lang.IllegalArgumentException - if the wikiword is 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