KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > embedding > model > ProjectMember


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * 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
18 /* $Id: ProjectMember.java 426576 2006-07-28 15:44:37Z jeremias $ */
19  
20 package embedding.model;
21
22 /**
23  * This bean represents a project member.
24  */

25 public class ProjectMember {
26
27     private String JavaDoc name;
28     private String JavaDoc function;
29     private String JavaDoc email;
30
31
32     /**
33      * Default no-parameter constructor.
34      */

35     public ProjectMember() {
36     }
37     
38     
39     /**
40      * Convenience constructor.
41      * @param name name of the project member
42      * @param function function in the team
43      * @param email email address
44      */

45     public ProjectMember(String JavaDoc name, String JavaDoc function, String JavaDoc email) {
46         setName(name);
47         setFunction(function);
48         setEmail(email);
49     }
50
51     /**
52      * Returns the name.
53      * @return String the name
54      */

55     public String JavaDoc getName() {
56         return name;
57     }
58
59
60     /**
61      * Returns the function.
62      * @return String the function
63      */

64     public String JavaDoc getFunction() {
65         return function;
66     }
67
68
69     /**
70      * Returns the email address.
71      * @return String the email address
72      */

73     public String JavaDoc getEmail() {
74         return email;
75     }
76
77
78     /**
79      * Sets the name.
80      * @param name The name to set
81      */

82     public void setName(String JavaDoc name) {
83         this.name = name;
84     }
85
86
87     /**
88      * Sets the function.
89      * @param function The function to set
90      */

91     public void setFunction(String JavaDoc function) {
92         this.function = function;
93     }
94
95
96     /**
97      * Sets the email address.
98      * @param email The email address to set
99      */

100     public void setEmail(String JavaDoc email) {
101         this.email = email;
102     }
103
104 }
105
Popular Tags