/*
 * Generated by XCodeGen v1.0
 * Sun Jul 07 16:05:41 EDT 2002
 */

package xcodegen.sample.domain.dto;

import java.io.Serializable;

/**
 * Person
 *
 * @author Herve Tchepannou
 * @version 
 */
public class PersonDTO
    implements Serializable
{

///////////////////////////////////////////////////
// Fields
///////////////////////////////////////////////////


    /** User's identification number */
    private int id;

    /**  */
    private String firstname;

    /**  */
    private String lastname;

    /**  */
    private String email;


///////////////////////////////////////////////////
// Constructors
///////////////////////////////////////////////////

    public PersonDTO ()
    {
    }
    

    
///////////////////////////////////////////////////
// Public methods
///////////////////////////////////////////////////

    public boolean equals( Object obj )
    {
        if ( ( obj != null ) && ( obj.getClass() == getClass() ) )
        {
            return toString().equals( obj.toString() );
        }
        else
        {
            return false;
        }
    }
    
    public String toString()
    {
        StringBuffer buff = new StringBuffer();
        buff.append( getClass().getName() ).append( "{" );
        
        
        buff.append( "id=" ).append( getId () );
            
        buff.append( "," ).append( "firstname=" ).append( getFirstname () );
            
        buff.append( "," ).append( "lastname=" ).append( getLastname () );
            
        buff.append( "," ).append( "email=" ).append( getEmail () );
    
        buff.append( "}" );
        return buff.toString();
    }

    public java.util.Collection validate()
    {

        java.util.Collection errors = new java.util.ArrayList();


        return errors;
    }
        


///////////////////////////////////////////////////
// accessor methods for attributes
///////////////////////////////////////////////////

    
    /**
     * Getter of <code>id</code>
     * @see #id
     */
    public int getId () { return this.id; }
    
    /** 
     * Setter of <code>id</code>
     * @see #id
     */
    public void setId ( int value ) { this.id = value; }
    
    /**
     * Getter of <code>firstname</code>
     * @see #firstname
     */
    public String getFirstname () { return this.firstname; }
    
    /** 
     * Setter of <code>firstname</code>
     * @see #firstname
     */
    public void setFirstname ( String value ) { this.firstname = value; }
    
    /**
     * Getter of <code>lastname</code>
     * @see #lastname
     */
    public String getLastname () { return this.lastname; }
    
    /** 
     * Setter of <code>lastname</code>
     * @see #lastname
     */
    public void setLastname ( String value ) { this.lastname = value; }
    
    /**
     * Getter of <code>email</code>
     * @see #email
     */
    public String getEmail () { return this.email; }
    
    /** 
     * Setter of <code>email</code>
     * @see #email
     */
    public void setEmail ( String value ) { this.email = value; }
}
