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.introspection;
19  
20  /***
21   * Bean models a telephone number entry in a phone book.
22   * @author <a href='http://jakarta.apache.org/'>Jakarta Commons Team</a>
23   * @version $Revision: 1.2 $
24   */
25  public class PhoneNumberBean {
26      private String phoneNumber;
27      private String name;
28      //TODO: replace with enumerated type
29      private String type;
30      
31      public PhoneNumberBean() {}
32      
33      public PhoneNumberBean(String phoneNumber, String type) {
34          setPhoneNumber(phoneNumber);
35          setType(type);
36      }
37  
38      public String getPhoneNumber() {
39          return phoneNumber;
40      }
41  
42      public void setPhoneNumber(String string) {
43          phoneNumber = string;
44      }
45  
46  
47      public String getType() {
48          return type;
49      }
50  
51      public void setType(String string) {
52          type = string;
53      }
54      
55      public String getName() {
56          return name;
57      }
58  
59      public void setName(String string) {
60          name = string;
61      }
62  
63  }
64  
65