KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > woody > samples > Contact


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.woody.samples;
17
18 /**
19  * Contact belongs to the {@link Form2Bean} demo.
20  *
21  * @version $Id: Contact.java 30932 2004-07-29 17:35:38Z vgritsenko $
22  */

23 public class Contact {
24     private long id;
25     private String JavaDoc firstName;
26     private String JavaDoc lastName;
27     private String JavaDoc phone;
28     private String JavaDoc email;
29
30     public long getId() {
31         return id;
32     }
33
34     public void setId(long id) {
35         this.id = id;
36     }
37
38     public String JavaDoc getFirstName() {
39         return firstName;
40     }
41
42     public void setFirstName(String JavaDoc firstName) {
43         this.firstName = firstName;
44     }
45
46     public String JavaDoc getLastName() {
47         return lastName;
48     }
49
50     public void setLastName(String JavaDoc lastName) {
51         this.lastName = lastName;
52     }
53
54     public String JavaDoc getPhone() {
55         return phone;
56     }
57
58     public void setPhone(String JavaDoc phone) {
59         this.phone = phone;
60     }
61
62     public String JavaDoc getEmail() {
63         return email;
64     }
65
66     public void setEmail(String JavaDoc email) {
67         this.email = email;
68     }
69
70     public String JavaDoc toString() {
71         return "< id = " + id + ", firstName = " + firstName + ", lastName = " + lastName + ", phone = " + phone + ", email = " + email + " >";
72     }
73 }
74
Popular Tags