org.ximtec.igesture.io
Class User
java.lang.Object
org.ximtec.igesture.core.DefaultPropertyChangeNotifier
org.ximtec.igesture.core.DefaultDataObject
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
User
public User()
User
public User(String name,
String initials)
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
Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.