com.ricebridge.data
Class Text

java.lang.Object
  extended bycom.ricebridge.data.Text

public class Text
extends Object

Holds a reference to a String variable.

Since String variables are immutable, and are often used to mean the thing represented by their value (for example, a file path), this class is used to indentify a mutable textual value explicitly and unambiguously.


Constructor Summary
Text()
          Create an empty text value.
Text(String pText)
          Create a specific text value.
 
Method Summary
 String getText()
          Get String value of text.
 void setText(String pText)
          Set a specific text value.
 String toString()
          The String value itself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Text

public Text()
Create an empty text value.


Text

public Text(String pText)
Create a specific text value.

If pText is null, then convert to empty String.

Parameters:
pText - String value of text
Method Detail

getText

public String getText()
Get String value of text.


setText

public void setText(String pText)
Set a specific text value.

If pText is null, then convert to empty String.

Parameters:
pText - String value of text

toString

public String toString()
The String value itself.



Copyright © 2003-2006 Ricebridge