|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.object.value.AbstractNakedValue
org.nakedobjects.object.value.TextString
Value object representing an unformatted text string of unbounded length.
This object does support value listeners.
| Constructor Summary | |
TextString()
Creates an empty TextString. |
|
TextString(java.lang.String text)
Creates a TextString containing the specified text. |
|
TextString(TextString textString)
Creates a TextString containing a copy of the text in the specified TextString. |
|
| Method Summary | |
void |
clear()
clears the value (sets to null) and notifies any listeners. |
boolean |
contains(java.lang.String text)
Returns true if the specified text is found withing this object. |
boolean |
contains(java.lang.String text,
Case caseSensitive)
Returns true if the specified text is found withing this object. |
void |
copyObject(Naked object)
Copies the content of the specified object into this object. |
boolean |
endsWith(java.lang.String text)
Returns true if the specified text is found at the end of this object's text. |
boolean |
endsWith(java.lang.String text,
Case caseSensitive)
Returns true if the specified text is found at the end of this object's text. |
boolean |
equals(java.lang.Object object)
Deprecated. replaced by isSameAs |
protected org.apache.log4j.Logger |
getLogger()
subclasses can override (didn't make abstract so that existing subclasses won't break) |
java.lang.String |
getObjectHelpText()
Returns a textual desctiption of the object - its contents and possible uses. |
protected boolean |
isCharDisallowed(char c)
disallow CR, LF and TAB |
boolean |
isEmpty()
Returns true if this object's text has no characters in it. |
boolean |
isSameAs(Naked object)
delegates the comparsion to the isSameAs(TextString) method if specified object is a TextString else returns false. |
boolean |
isSameAs(java.lang.String text)
Returns true if the specified text is the same as (for all characters) the object's text. |
boolean |
isSameAs(java.lang.String text,
Case caseSensitive)
Returns true if the specified text is the same as (for all characters) the object's text. |
boolean |
isSameAs(TextString text)
Returns true if the specified text is the same as (for all characters) the object's text. |
boolean |
isSameAs(TextString text,
Case caseSensitive)
Returns true if the specified text is the same as (for all characters) the object's text. |
void |
parse(java.lang.String text)
Takes a user entry string which is parsed to set up the object. |
void |
reset()
Reset this string so it set to null (therefore equivalent to clear()) |
void |
restoreString(java.lang.String data)
Takes a storage string and uses it reinstate this value object to its previous state/ |
java.lang.String |
saveString()
Returns a basic string representation of this value for storage purposes. |
void |
setText(java.lang.String text)
Deprecated. replaced by setValue |
void |
setText(TextString text)
Deprecated. replaced by setValue |
void |
setValue(java.lang.String text)
Sets this object text to be same as the specified text. |
void |
setValue(TextString text)
Sets this object text to be same as the specified text. |
boolean |
startsWith(java.lang.String text)
Returns true if the specified text is found at the beginning of this object's text. |
boolean |
startsWith(java.lang.String text,
Case caseSensitive)
Returns true if the specified text is found at the beginning of this object's text. |
java.lang.String |
stringValue()
|
Title |
title()
Returns a Title object describing the object. |
| Methods inherited from class org.nakedobjects.object.value.AbstractNakedValue |
about, addNakedValueListener, checkCanOperate, contextualTitle, deepCopy, dumpObject, fireValueChanged, fireValueChanged, getClassName, getFullClassName, isNull, isValid, nakedValueListeners, removeNakedValueListener, setAbout, setNull, setValidity, summary, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TextString()
public TextString(java.lang.String text)
public TextString(TextString textString)
| Method Detail |
public boolean isEmpty()
public java.lang.String getObjectHelpText()
Naked
getObjectHelpText in interface NakedgetObjectHelpText in class AbstractNakedValuepublic boolean isSameAs(Naked object)
isSameAs(TextString) method if specified object is a TextString else returns false.
object - the object to compare
Naked.isSameAs(Naked)public boolean isSameAs(java.lang.String text)
public boolean isSameAs(java.lang.String text,
Case caseSensitive)
public boolean isSameAs(TextString text)
public boolean isSameAs(TextString text,
Case caseSensitive)
public void setText(java.lang.String text)
public void setText(TextString text)
public void setValue(java.lang.String text)
public void setValue(TextString text)
public void clear()
public boolean contains(java.lang.String text)
public boolean contains(java.lang.String text,
Case caseSensitive)
public void copyObject(Naked object)
Naked
public boolean endsWith(java.lang.String text)
public boolean endsWith(java.lang.String text,
Case caseSensitive)
public boolean equals(java.lang.Object object)
isSameAs(org.nakedobjects.object.Naked)
public void parse(java.lang.String text)
throws ValueParseException
NakedValue
ValueParseExceptionNakedValue.restoreString(String)public void reset()
NakedValue.reset(),
clear()public void restoreString(java.lang.String data)
NakedValue
data - NakedValue.parse(String)public java.lang.String saveString()
NakedValue
public boolean startsWith(java.lang.String text)
public boolean startsWith(java.lang.String text,
Case caseSensitive)
public java.lang.String stringValue()
public Title title()
Naked
protected boolean isCharDisallowed(char c)
c -
protected org.apache.log4j.Logger getLogger()
AbstractNakedValue
getLogger in class AbstractNakedValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||