edu.neu.ccs
Interface Stringable

All Known Implementing Classes:
PathList, PathNode, SmallSet, XCircle, XFourier, XInterval, XLine2D, XObject, XOval, XPoint2D, XPolynomial, XPolynomialComplex, XRect, XRoundRect, XRoundSquare, XSquare

public interface Stringable

Interface to be implemented by data model objects whose state can be encapsulated as or decapsulated from a data String. This interface has intentional similarities to the behavior delivered by the automatic serialization process provided in the Java platform, but is intended for user input and output, not for object persistence.

Since:
1.0
Version:
2.2

Method Summary
 void fromStringData(String data)
          Sets the state of this object using information contained in the given 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.
 

Method Detail

fromStringData

public void fromStringData(String data)
                    throws ParseException
Sets the state of this object using information contained in the given String.

Parameters:
data - the String containing state information
Throws:
ParseException - if the data is malformed
See Also:
toStringData()

toStringData

public String toStringData()
Returns a String encapsulation of this object that contains information needed to set the state of this object at a later time.

See Also:
fromStringData(String)