|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
java.lang.Object getValue(java.lang.String key)
key
- A String specifying the key whose value you want to obtain.
java.lang.String[] getValueKeys()
void setValue(java.lang.String key, java.lang.Object value)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |