|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.Observable
org.jogre.common.User
Transmittable user data object. Contains the username and their rating (currently not implemented yet).
| Field Summary | |
protected int |
rating
Rating of User. |
protected String |
username
Username of User. |
static String |
XML_NAME
XML name. |
| Constructor Summary | |
User(String username,
int rating)
Constructor which takes a username and a rating. |
|
User(XMLElement message)
Constructor which creates a User object from the flatten () method of another User object. |
|
| Method Summary | |
XMLElement |
flatten()
Flatten the User object for transmission. |
int |
getRating()
Returns the rating of this particular user (currently not implemented). |
String |
getUsername()
Return the username of this user. |
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String XML_NAME
protected String username
protected int rating
| Constructor Detail |
public User(String username,
int rating)
username - rating -
public User(XMLElement message)
throws TransmissionException
message - XMLElement communication object.
TransmissionException - Thrown if there is a problem in transmission.| Method Detail |
public String getUsername()
public int getRating()
public XMLElement flatten()
flatten in interface ITransmittableITransmittable.flatten()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||