org.encog.bot.dataunit

## Class TextDataUnit

- java.lang.Object
- - org.encog.bot.dataunit.DataUnit
  - - org.encog.bot.dataunit.TextDataUnit

-     public class TextDataUnit
      extends DataUnit

  A data unit that holds text.
  Author:
    jheaton

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TextDataUnit()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getText()`
    `void` | `setText(String str)` Set the text for this data unit.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### TextDataUnit

          public TextDataUnit()

  - ### Method Detail

    - #### getText

          public final String getText()

      Returns:
        The text for this data unit.

    - #### setText

          public final void setText(String str)

      Set the text for this data unit.
      Parameters:
        `str` - The text.

    - #### toString

          public final String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014. All Rights Reserved.