© 2006-2007 ETH Zurich

org.ximtec.igesture.io
Class User

java.lang.Object
  extended by org.ximtec.igesture.core.DefaultPropertyChangeNotifier
      extended by org.ximtec.igesture.core.DefaultDataObject
          extended by org.ximtec.igesture.io.User
All Implemented Interfaces:
Serializable, DataObject, PropertyChangeNotifier, IUser

public class User
extends DefaultDataObject
implements IUser

This class represents a User for the device manager. It implements the IUser interface and extends DefaultDataObject. The latter allows serialization of User objects.

Author:
Bjorn Puype, bpuype@gmail.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ximtec.igesture.core.DefaultDataObject
PROPERTY_ID
 
Fields inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier
propertyChangeSupport
 
Constructor Summary
User()
           
User(String name, String initials)
           
 
Method Summary
 boolean equals(Object user)
          Compare two Users.
 String getInitials()
          Get the initials of the user.
 String getName()
          Get the name of the user.
 void setInitials(String initials)
          Set the initials of the user.
 void setName(String name)
          Set the name of the user.
 String toString()
          Get a String representation of the user.
 
Methods inherited from class org.ximtec.igesture.core.DefaultDataObject
accept, getId, setId
 
Methods inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ximtec.igesture.core.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

User

public User()

User

public User(String name,
            String initials)
Method Detail

getInitials

public String getInitials()
Description copied from interface: IUser
Get the initials of the user.

Specified by:
getInitials in interface IUser
Returns:
Initials of the user.

getName

public String getName()
Description copied from interface: IUser
Get the name of the user.

Specified by:
getName in interface IUser
Returns:
Name of the user.

setInitials

public void setInitials(String initials)
Description copied from interface: IUser
Set the initials of the user.

Specified by:
setInitials in interface IUser

setName

public void setName(String name)
Description copied from interface: IUser
Set the name of the user.

Specified by:
setName in interface IUser
Parameters:
name - Name of the user.

toString

public String toString()
Description copied from interface: IUser
Get a String representation of the user.

Specified by:
toString in interface IUser
Overrides:
toString in class Object
Returns:
String representation of the user.

equals

public boolean equals(Object user)
Compare two Users. They are equal if they have the same name and initials.

Overrides:
equals in class Object

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.