home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / Form2Bean.class (.txt) < prev    next >
Encoding:
Java Class File  |  2004-07-12  |  3.5 KB  |  120 lines

  1. package org.apache.cocoon.forms.samples;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.Collection;
  5. import java.util.Date;
  6.  
  7. public class Form2Bean {
  8.    private String email;
  9.    private String phoneCountry;
  10.    private String phoneZone;
  11.    private String phoneNumber;
  12.    private String ipAddress;
  13.    private Date birthday;
  14.    private int aNumber;
  15.    private boolean choose;
  16.    private Sex sex;
  17.    private Collection contacts = new ArrayList();
  18.    private Collection drinks = new ArrayList();
  19.  
  20.    public Sex getSex() {
  21.       return this.sex;
  22.    }
  23.  
  24.    public void setSex(Sex sex) {
  25.       this.sex = sex;
  26.    }
  27.  
  28.    public String getEmail() {
  29.       return this.email;
  30.    }
  31.  
  32.    public void setEmail(String email) {
  33.       this.email = email;
  34.    }
  35.  
  36.    public String getPhoneCountry() {
  37.       return this.phoneCountry;
  38.    }
  39.  
  40.    public void setPhoneCountry(String phoneCountry) {
  41.       this.phoneCountry = phoneCountry;
  42.    }
  43.  
  44.    public String getPhoneZone() {
  45.       return this.phoneZone;
  46.    }
  47.  
  48.    public void setPhoneZone(String phoneZone) {
  49.       this.phoneZone = phoneZone;
  50.    }
  51.  
  52.    public String getPhoneNumber() {
  53.       return this.phoneNumber;
  54.    }
  55.  
  56.    public void setPhoneNumber(String phoneNumber) {
  57.       this.phoneNumber = phoneNumber;
  58.    }
  59.  
  60.    public String getIpAddress() {
  61.       return this.ipAddress;
  62.    }
  63.  
  64.    public void setIpAddress(String ipAddress) {
  65.       this.ipAddress = ipAddress;
  66.    }
  67.  
  68.    public Date getBirthday() {
  69.       return this.birthday;
  70.    }
  71.  
  72.    public void setBirthday(Date birthday) {
  73.       this.birthday = birthday;
  74.    }
  75.  
  76.    public int getaNumber() {
  77.       return this.aNumber;
  78.    }
  79.  
  80.    public void setaNumber(int aNumber) {
  81.       this.aNumber = aNumber;
  82.    }
  83.  
  84.    public boolean isChoose() {
  85.       return this.choose;
  86.    }
  87.  
  88.    public void setChoose(boolean choose) {
  89.       this.choose = choose;
  90.    }
  91.  
  92.    public Collection getDrinks() {
  93.       return this.drinks;
  94.    }
  95.  
  96.    public void setDrinks(Collection drinks) {
  97.       this.drinks = drinks;
  98.    }
  99.  
  100.    public void addDrink(String drink) {
  101.       this.drinks.add(drink);
  102.    }
  103.  
  104.    public Collection getContacts() {
  105.       return this.contacts;
  106.    }
  107.  
  108.    public void setContacts(Collection contacts) {
  109.       this.contacts = contacts;
  110.    }
  111.  
  112.    public void addContact(Contact contact) {
  113.       this.contacts.add(contact);
  114.    }
  115.  
  116.    public String toString() {
  117.       return "email = " + this.email + ", phoneCountry = " + this.phoneCountry + ", phoneZone = " + this.phoneZone + ", phoneNumber = " + this.phoneNumber + ", ipAddress = " + this.ipAddress + ", contacts = " + this.contacts.toString();
  118.    }
  119. }
  120.