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.woody.samples;
18:
19: /**
20: * Contact belongs to the {@link Form2Bean} demo.
21: *
22: * @version $Id: Contact.java 433543 2006-08-22 06:22:54Z crossley $
23: */
24: public class Contact {
25: private long id;
26: private String firstName;
27: private String lastName;
28: private String phone;
29: private String email;
30:
31: public long getId() {
32: return id;
33: }
34:
35: public void setId(long id) {
36: this .id = id;
37: }
38:
39: public String getFirstName() {
40: return firstName;
41: }
42:
43: public void setFirstName(String firstName) {
44: this .firstName = firstName;
45: }
46:
47: public String getLastName() {
48: return lastName;
49: }
50:
51: public void setLastName(String lastName) {
52: this .lastName = lastName;
53: }
54:
55: public String getPhone() {
56: return phone;
57: }
58:
59: public void setPhone(String phone) {
60: this .phone = phone;
61: }
62:
63: public String getEmail() {
64: return email;
65: }
66:
67: public void setEmail(String email) {
68: this .email = email;
69: }
70:
71: public String toString() {
72: return "< id = " + id + ", firstName = " + firstName
73: + ", lastName = " + lastName + ", phone = " + phone
74: + ", email = " + email + " >";
75: }
76: }
|