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

class TextBlock extends Object implements Block
Block that holds plain text
  • Field Details

    • text

      private final String text
      the text
  • Constructor Details

    • TextBlock

      TextBlock(String text)
      Creates the TextBlock.
      Parameters:
      text - some text. can't ben null
      Throws:
      IllegalArgumentException - if parameters are not in the domain
  • Method Details

    • traverse

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

      public final String toString()
      Overrides:
      toString in class Object
      Returns:
      a String object.
    • getText

      final String getText()
      Returns the text.
      Returns:
      String with the text.
    • 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.