|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.neu.ccs.XObject
|
+--edu.neu.ccs.XString
Object wrapper for the
class that also provides
String capabilities.
The default value for this class is
the StringableString representation of epsilon,
"".
| Field Summary |
| Fields inherited from class edu.neu.ccs.XObject |
changeAdapter, VALUE |
| Constructor Summary | |
XString()
Constructs a wrapper for the default String value; |
|
XString(String s)
Constructs a wrapper for the given String value. |
|
| Method Summary | |
boolean |
equals(Object other)
Returns true if the wrapped String
is equal to the given object, and false
if it is not. |
void |
fromStringData(String s)
Sets the state of this object using information contained in the given String. |
String |
getValue()
Returns the wrapped value of this object. |
int |
hashCode()
Returns an int hash code
appropriate for the wrapped object. |
void |
setValue(String s)
Sets the value wrapped by this object to the given value. |
String |
toString()
Returns the wrapped String. |
String |
toStringData()
Returns a String encapsulation of this object
that contains information needed
to set the state of this object at a later time. |
static XString[] |
toXArray(String[] a)
Returns an array of XString objects
initialized from the given array
of String objects. |
| Methods inherited from class edu.neu.ccs.XObject |
addPropertyChangeListener, addPropertyChangeListener, formatErrorMessage, removePropertyChangeListener, removePropertyChangeListener, toStringArray |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XString()
String value;
XString(String)public XString(String s)
String value.
s - the desired StringXString()| Method Detail |
public void fromStringData(String s)
StringableString.
fromStringData in interface StringablefromStringData in class XObjects - the String containing state informationStringable.toStringData()public String toStringData()
StringableString encapsulation of this object
that contains information needed
to set the state of this object at a later time.
toStringData in interface StringabletoStringData in class XObjectStringable.fromStringData(String)public boolean equals(Object other)
true if the wrapped String
is equal to the given object, and false
if it is not.
equals in class Objectpublic int hashCode()
int hash code
appropriate for the wrapped object.
hashCode in class Objectpublic String toString()
String.
toString in class Objectpublic void setValue(String s)
null, the value is set
to the empty string, "".
s - the value to be wrappedgetValue()public String getValue()
setValue(String)public static XString[] toXArray(String[] a)
XString objects
initialized from the given array
of String objects.
a - an array of Strings
XString objects
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||