|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester API Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rational.test.ft.value.ReadOnlyString
public class ReadOnlyString
Displays an object without allowing modification to the original object in the editor. This class is used to wrap fixed object values with a viewable representation. This class is primarily used in the editors to block editing of read-only values.
Constructor Summary | |
---|---|
ReadOnlyString(java.lang.Object base, java.lang.String value)
Enforces the separation between the true object and the viewable form of the object in the editors. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Overloads the core java.lang.Object implementation to compare the String directly. |
java.lang.Object |
getBaseObject()
Accesses the base object represented by the editor. |
java.lang.String |
getReadOnlyString()
Accesses the textual representation of the base value displayed in the editor. |
int |
hashCode()
Overloads the core java.lang.Object implementation of hashCode . |
void |
setReadOnlyString(java.lang.String value)
Updates the textual representation of the base value. |
java.lang.String |
toString()
Accesses the textual representation of the base value as defined in the constructor. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReadOnlyString(java.lang.Object base, java.lang.String value)
base
- the true object represented in the editorvalue
- the textual image of the base
object for display to the userMethod Detail |
---|
public java.lang.Object getBaseObject()
set
method to update the original value does not exist. That is, the original value cannot be updated.
public java.lang.String getReadOnlyString()
base
value displayed in the editor. This value can be updated, but will have no effect on the original base value.
public void setReadOnlyString(java.lang.String value)
base
value.
public java.lang.String toString()
base
value as defined in the constructor.
toString
in class java.lang.Object
public int hashCode()
java.lang.Object
implementation of hashCode
.
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
java.lang.Object
implementation to compare the String
directly.
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |