package test.interfaces;

/**
 * Generated by XDoclet/ejbdoclet/strutsform. This class can be further processed with XDoclet/webdoclet/strutsconfigxml and XDoclet/webdoclet/strutsvalidationxml.
 *
 * @struts.form name="person.Full"
 */
public class PersonFullForm
    extends    org.apache.struts.action.ActionForm
    implements java.io.Serializable
{
    protected java.lang.String id;
    protected java.lang.String name;
    protected java.lang.String firstName;
    protected java.lang.String phone;
    protected java.lang.String fax;
    protected java.lang.Integer nonPersistentFormField;
    protected java.lang.String computedField;
    protected java.util.Date creationDate;
    protected javax.ejb.EntityContext entityContext;

    /** Default empty constructor. */
    public PersonFullForm() {}

    /** Constructor that takes the data object as argument. */
    public PersonFullForm(test.interfaces.PersonData dataHolder)
    {
       this.setId(dataHolder.getId());
       this.setName(dataHolder.getName());
       this.setFirstName(dataHolder.getFirstName());
       this.setPhone(dataHolder.getPhone());
       this.setFax(dataHolder.getFax());
       this.setCreationDate(dataHolder.getCreationDate());
    }

    public java.lang.String getId()
    {
        return this.id;
    }

   /**
    */
    public void setId( java.lang.String id )
    {
        this.id = id;
    }

    public java.lang.String getName()
    {
        return this.name;
    }

   /**
    * @struts.validator type="required"
    */
    public void setName( java.lang.String name )
    {
        this.name = name;
    }

    public java.lang.String getFirstName()
    {
        return this.firstName;
    }

   /**
    */
    public void setFirstName( java.lang.String firstName )
    {
        this.firstName = firstName;
    }

    public java.lang.String getPhone()
    {
        return this.phone;
    }

   /**
    */
    public void setPhone( java.lang.String phone )
    {
        this.phone = phone;
    }

    public java.lang.String getFax()
    {
        return this.fax;
    }

   /**
    */
    public void setFax( java.lang.String fax )
    {
        this.fax = fax;
    }

    public java.lang.Integer getNonPersistentFormField()
    {
        return this.nonPersistentFormField;
    }

   /**
    */
    public void setNonPersistentFormField( java.lang.Integer nonPersistentFormField )
    {
        this.nonPersistentFormField = nonPersistentFormField;
    }

    public java.lang.String getComputedField()
    {
        return this.computedField;
    }

   /**
    */
    public void setComputedField( java.lang.String computedField )
    {
        this.computedField = computedField;
    }

    public java.util.Date getCreationDate()
    {
        return this.creationDate;
    }

   /**
    */
    public void setCreationDate( java.util.Date creationDate )
    {
        this.creationDate = creationDate;
    }

    public javax.ejb.EntityContext getEntityContext()
    {
        return this.entityContext;
    }

   /**
    */
    public void setEntityContext( javax.ejb.EntityContext entityContext )
    {
        this.entityContext = entityContext;
    }

    public test.interfaces.PersonData getData(test.interfaces.PersonData dataHolder)
    {
       test.interfaces.PersonData retData = new test.interfaces.PersonData(dataHolder);

        retData.setId(this.getId());
        retData.setName(this.getName());
        retData.setFirstName(this.getFirstName());
        retData.setPhone(this.getPhone());
        retData.setFax(this.getFax());
        retData.setCreationDate(this.getCreationDate());

        return retData;
    }

    public test.interfaces.PersonData getData()
    {
       test.interfaces.PersonData retData = new test.interfaces.PersonData();

        retData.setId(this.getId());
        retData.setName(this.getName());
        retData.setFirstName(this.getFirstName());
        retData.setPhone(this.getPhone());
        retData.setFax(this.getFax());
        retData.setCreationDate(this.getCreationDate());

        return retData;
    }

    public void setData(test.interfaces.PersonData dataHolder)
    {
        this.setId (dataHolder.getId());
        this.setName (dataHolder.getName());
        this.setFirstName (dataHolder.getFirstName());
        this.setPhone (dataHolder.getPhone());
        this.setFax (dataHolder.getFax());
        this.setCreationDate (dataHolder.getCreationDate());
    }

}
