KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > validator > NameBean


1 /*
2  * $Id: NameBean.java 155434 2005-02-26 13:16:41Z dirkv $
3  * $Rev$
4  * $Date: 2005-02-26 05:16:41 -0800 (Sat, 26 Feb 2005) $
5  *
6  * ====================================================================
7  * Copyright 2001-2005 The Apache Software Foundation
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */

21
22 package org.apache.commons.validator;
23
24 /**
25  * Value object that contains a first name and last name.
26  */

27 public class NameBean {
28
29     protected String JavaDoc firstName = null;
30
31     protected String JavaDoc middleName = null;
32
33     protected String JavaDoc lastName = null;
34
35     public String JavaDoc getFirstName() {
36         return firstName;
37     }
38
39     public void setFirstName(String JavaDoc firstName) {
40         this.firstName = firstName;
41     }
42
43     public String JavaDoc getMiddleName() {
44         return middleName;
45     }
46
47     public void setMiddleName(String JavaDoc middleName) {
48         this.middleName = middleName;
49     }
50
51     public String JavaDoc getLastName() {
52         return lastName;
53     }
54
55     public void setLastName(String JavaDoc lastName) {
56         this.lastName = lastName;
57     }
58
59 }
Popular Tags