com.wm.util.coder
Interface Codable

All Known Implementing Classes:
Group, Session, Table, TContext, UGClass, User, Values

public interface Codable

This interface describes a Codable object. Codable objects can be encoded to an OutputStream or decoded from an InputStream to their original Object value using the coder classes in the com.wm.util.coder package. If you implement this interface, your implementation must contain and manage the list of order pairs (key, value) in the object. Each entry is accessed by its key.

Note: Use codable Object values when implementing this class. For more information on codable objects refer to the coder classes in com.wm.util.coder.

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

Method Summary
 java.lang.Object getValue(java.lang.String key)
          Returns the value of the specified key.
 java.lang.String[] getValueKeys()
          Returns a list of the keys in this Codable object.
 void setValue(java.lang.String key, java.lang.Object value)
          Writes the specified value to the specified key in this Codable object.
 

Method Detail

getValue

java.lang.Object getValue(java.lang.String key)
Returns the value of the specified key.

Parameters:
key - A String specifying the key whose value you want to obtain.
Returns:
An Object containing the value of the specified key.

getValueKeys

java.lang.String[] getValueKeys()
Returns a list of the keys in this Codable object.

Returns:
A String [] containing the names of the keys in this Codable object.

setValue

void setValue(java.lang.String key,
              java.lang.Object value)
Writes the specified value to the specified key in this Codable object.

Parameters:
key - A String that specifies the key to which the value will be written.
value - The Object containing the value that is to be written to the specified key.