com.wm.util.coder
Interface IDataCodable


public interface IDataCodable

This class is an interface that you can use to convert a non-codable object to codable. Codable is defined as the ability of an Object to be encoded to an OutputStream or decoded from an InputStream to the original Object value, using the coder classes in the com.wm.util.coder package. You must provide a specific format that allows your derived class to be encoded as an IData object and decoded from an IData object.

Note: Your provided format must contain codable objects. For more information about codable objects, refer to the coder classes in the com.wm.util.coder package.

See Also:
IDataXMLCoder, Codable, IData

Method Summary
 IData getIData()
          Generates an IData object that represents the current state of the implementing class.
 void setIData(IData idata)
          Initializes all class variables from the data values in the specified IData object.
 

Method Detail

getIData

IData getIData()
Generates an IData object that represents the current state of the implementing class.

Returns:
An IData object encoded by the implementing class.

setIData

void setIData(IData idata)
Initializes all class variables from the data values in the specified IData object. (The keys in the specified IData object must match those produced by the getIData method for this class.)

Parameters:
idata - An IData object representing the encoded form of the implementing class.