com.wm.util.coder
Interface StringCodable


public interface StringCodable

This interface defines methods that are used to allow a non-codable object to become codable. Codable is defined as the ability of an Object to be encoded to an OutputStream or decoded from an InputStream to their original Object value by the coder classes in the com.wm.util.coder package. You must provide a specific format that allows your implemented class to be encoded as a String object and decoded from a String object.

Note: The implementing class' provided format must contain codable objects. For more information on codable objects refer to the coder classes in the com.wm.util.coder package.

See Also:
XMLCoder, Codable, IDataCodable, IDataXMLCoder, StringCodable, ValuesCodable

Method Summary
 java.lang.String getValue()
          Returns a String representation of the current state of the implementing class (encoded in the format defined by the implementing class).
 void setValue(java.lang.String val)
          Initializes the class variables from the contents of the specified String.
 

Method Detail

getValue

java.lang.String getValue()
Returns a String representation of the current state of the implementing class (encoded in the format defined by the implementing class).

Returns:
The encoded String object.

setValue

void setValue(java.lang.String val)
Initializes the class variables from the contents of the specified String. (Your implementation must parse the String and extract the data within it.)

Parameters:
val - A String that represents the encoded form of the implementing class.