FileDocCategorySizeDatePackage
UserBean.javaAPI DocExample1022Sun Apr 13 05:43:46 BST 2003com.jspservletcookbook

UserBean

public class UserBean extends Object implements Serializable

Fields Summary
String
username
String
email
String
department
Constructors Summary
public UserBean()

Methods Summary
public java.lang.StringgetDepartment()

    
	 if(department != null)
         return department;
    else
        return "Unknown"; 
    
public java.lang.StringgetEmail()


   if(email != null)
        return email;
    else
        return "Unknown";
public java.lang.StringgetUsername()


    if(username != null)
        return username;
    else
        return "Unknown"; 
public voidsetDepartment(java.lang.String _department)


     if(_department != null && _department.length() > 0)
        department = _department;
    else
         department = "Unknown";
public voidsetEmail(java.lang.String _email)


     if(_email != null && _email.length() > 0)
        email = _email;
    else
         email = "Unknown";
public voidsetUsername(java.lang.String _username)


    if(_username != null && _username.length() > 0)
        username = _username;
    else
         username = "Unknown";