Class WikiWordBlock

java.lang.Object
org.apache.maven.doxia.module.twiki.parser.WikiWordBlock
All Implemented Interfaces:
Block

class WikiWordBlock extends Object implements Block
Represent a WikiWord
  • Field Details

    • wikiword

      private final 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 Details

    • WikiWordBlock

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

      WikiWordBlock(String aWikiword, 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:
      IllegalArgumentException - if the wikiword is null
    • WikiWordBlock

      WikiWordBlock(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:
      IllegalArgumentException - if the wikiword is null
  • Method Details

    • 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(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      a int.