org.jogre.common.comm
Class CommTableProperty
java.lang.Object
org.jogre.common.comm.CommGameMessage
org.jogre.common.comm.CommTableMessage
org.jogre.common.comm.CommTableProperty
- All Implemented Interfaces:
- ITransmittable
- public class CommTableProperty
- extends CommTableMessage
This class is used for sending a table property from a client to a server.
The server then informs the other clients that a table property
has been sent.
- Version:
- Alpha 0.2.3
- Author:
- Bob Marks
CommTableProperty
public CommTableProperty(String key,
String value)
- Constructor which takes a key and a value.
- Parameters:
key
- Property key.value
- Property value.
CommTableProperty
public CommTableProperty(XMLElement message)
- Constructor which takes an element and reads it key and value.
- Parameters:
message
-
getKey
public String getKey()
- Return the property key.
- Returns:
getValue
public String getValue()
- Return the property value.
- Returns:
flatten
public XMLElement flatten()
- Flatten to an object and set its key and value.
- Returns:
- XML version of the state of an object which can be constructed again.
- See Also:
ITransmittable.flatten()