home *** CD-ROM | disk | FTP | other *** search
- package org.apache.cocoon.forms.samples;
-
- import java.util.ArrayList;
- import java.util.Collection;
- import java.util.Date;
-
- public class Form2Bean {
- private String email;
- private String phoneCountry;
- private String phoneZone;
- private String phoneNumber;
- private String ipAddress;
- private Date birthday;
- private int aNumber;
- private boolean choose;
- private Sex sex;
- private Collection contacts = new ArrayList();
- private Collection drinks = new ArrayList();
-
- public Sex getSex() {
- return this.sex;
- }
-
- public void setSex(Sex sex) {
- this.sex = sex;
- }
-
- public String getEmail() {
- return this.email;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
- public String getPhoneCountry() {
- return this.phoneCountry;
- }
-
- public void setPhoneCountry(String phoneCountry) {
- this.phoneCountry = phoneCountry;
- }
-
- public String getPhoneZone() {
- return this.phoneZone;
- }
-
- public void setPhoneZone(String phoneZone) {
- this.phoneZone = phoneZone;
- }
-
- public String getPhoneNumber() {
- return this.phoneNumber;
- }
-
- public void setPhoneNumber(String phoneNumber) {
- this.phoneNumber = phoneNumber;
- }
-
- public String getIpAddress() {
- return this.ipAddress;
- }
-
- public void setIpAddress(String ipAddress) {
- this.ipAddress = ipAddress;
- }
-
- public Date getBirthday() {
- return this.birthday;
- }
-
- public void setBirthday(Date birthday) {
- this.birthday = birthday;
- }
-
- public int getaNumber() {
- return this.aNumber;
- }
-
- public void setaNumber(int aNumber) {
- this.aNumber = aNumber;
- }
-
- public boolean isChoose() {
- return this.choose;
- }
-
- public void setChoose(boolean choose) {
- this.choose = choose;
- }
-
- public Collection getDrinks() {
- return this.drinks;
- }
-
- public void setDrinks(Collection drinks) {
- this.drinks = drinks;
- }
-
- public void addDrink(String drink) {
- this.drinks.add(drink);
- }
-
- public Collection getContacts() {
- return this.contacts;
- }
-
- public void setContacts(Collection contacts) {
- this.contacts = contacts;
- }
-
- public void addContact(Contact contact) {
- this.contacts.add(contact);
- }
-
- public String toString() {
- return "email = " + this.email + ", phoneCountry = " + this.phoneCountry + ", phoneZone = " + this.phoneZone + ", phoneNumber = " + this.phoneNumber + ", ipAddress = " + this.ipAddress + ", contacts = " + this.contacts.toString();
- }
- }
-