KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > betwixt > dotbetwixt > PersonWithNamespace


1 /*
2  * Copyright 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
17
18 package org.apache.commons.betwixt.dotbetwixt;
19
20 /**
21  * @author <a HREF='http://jakarta.apache.org/'>Jakarta Commons Team</a>
22  * @version $Revision: 1.2 $
23  */

24 public class PersonWithNamespace {
25
26     private String JavaDoc forename;
27     private String JavaDoc middlename;
28     private String JavaDoc lastname;
29     
30     public PersonWithNamespace () {}
31     
32     public PersonWithNamespace (String JavaDoc forename, String JavaDoc middlename, String JavaDoc lastname) {
33         setForename(forename);
34         setMiddlename(middlename);
35         setLastname(lastname);
36     }
37     
38
39     public String JavaDoc getForename() {
40         return forename;
41     }
42
43
44     public String JavaDoc getLastname() {
45         return lastname;
46     }
47
48
49     public String JavaDoc getMiddlename() {
50         return middlename;
51     }
52
53
54     public void setForename(String JavaDoc string) {
55         forename = string;
56     }
57
58     public void setLastname(String JavaDoc string) {
59         lastname = string;
60     }
61
62     public void setMiddlename(String JavaDoc string) {
63         middlename = string;
64     }
65
66 }
67
Popular Tags