01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.cocoon.forms.samples;
18:
19: /**
20: * Contact belongs to the {@link Form2Bean} demo.
21: *
22: * @version $Id: Contact.java 449149 2006-09-23 03:58:05Z crossley $
23: */
24: public class Contact {
25: private long id;
26: private String firstName;
27: private String middleInitial;
28: private String lastName;
29: private String phone;
30: private String email;
31: private PreferredContact preferred;
32:
33: public long getId() {
34: return id;
35: }
36:
37: public void setId(long id) {
38: this .id = id;
39: }
40:
41: public String getFirstName() {
42: return firstName;
43: }
44:
45: public void setFirstName(String firstName) {
46: this .firstName = firstName;
47: }
48:
49: public String getLastName() {
50: return lastName;
51: }
52:
53: public void setLastName(String lastName) {
54: this .lastName = lastName;
55: }
56:
57: public String getPhone() {
58: return phone;
59: }
60:
61: public void setPhone(String phone) {
62: this .phone = phone;
63: }
64:
65: public String getEmail() {
66: return email;
67: }
68:
69: public void setEmail(String email) {
70: this .email = email;
71: }
72:
73: public String toString() {
74: return "< id = " + id + ", firstName = " + firstName
75: + ", middleInitial = " + middleInitial
76: + ", lastName = " + lastName + ", phone = " + phone
77: + ", email = " + email + " >";
78: }
79:
80: public PreferredContact getPreferred() {
81: return preferred;
82: }
83:
84: public void setPreferred(PreferredContact preferred) {
85: this .preferred = preferred;
86: }
87:
88: public String getMiddleInitial() {
89: return middleInitial;
90: }
91:
92: public void setMiddleInitial(String middleInitial) {
93: this.middleInitial = middleInitial;
94: }
95: }
|