View Javadoc
1   /*
2    * Copyright 2007 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
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  package org.kuali.ole.vnd.businessobject;
18  
19  import java.util.LinkedHashMap;
20  
21  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
22  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23  
24  /**
25   * Phone number for a Vendor Contact.
26   */
27  public class VendorContactPhoneNumber extends PersistableBusinessObjectBase implements MutableInactivatable {
28  
29      private Integer vendorContactPhoneGeneratedIdentifier;
30      private Integer vendorContactGeneratedIdentifier;
31      private String vendorPhoneTypeCode;
32      private String vendorPhoneNumber;
33      private String vendorPhoneExtensionNumber;
34      private boolean active;
35  
36      private PhoneType vendorPhoneType;
37  
38      /**
39       * Default constructor.
40       */
41      public VendorContactPhoneNumber() {
42  
43      }
44  
45      public Integer getVendorContactPhoneGeneratedIdentifier() {
46  
47          return vendorContactPhoneGeneratedIdentifier;
48      }
49  
50      public void setVendorContactPhoneGeneratedIdentifier(Integer vendorContactPhoneGeneratedIdentifier) {
51          this.vendorContactPhoneGeneratedIdentifier = vendorContactPhoneGeneratedIdentifier;
52      }
53  
54      public Integer getVendorContactGeneratedIdentifier() {
55  
56          return vendorContactGeneratedIdentifier;
57      }
58  
59      public void setVendorContactGeneratedIdentifier(Integer vendorContactGeneratedIdentifier) {
60          this.vendorContactGeneratedIdentifier = vendorContactGeneratedIdentifier;
61      }
62  
63      public String getVendorPhoneTypeCode() {
64  
65          return vendorPhoneTypeCode;
66      }
67  
68      public void setVendorPhoneTypeCode(String vendorPhoneTypeCode) {
69          this.vendorPhoneTypeCode = vendorPhoneTypeCode;
70      }
71  
72      public String getVendorPhoneNumber() {
73  
74          return vendorPhoneNumber;
75      }
76  
77      public void setVendorPhoneNumber(String vendorPhoneNumber) {
78          this.vendorPhoneNumber = vendorPhoneNumber;
79      }
80  
81      public String getVendorPhoneExtensionNumber() {
82  
83          return vendorPhoneExtensionNumber;
84      }
85  
86      public void setVendorPhoneExtensionNumber(String vendorPhoneExtensionNumber) {
87          this.vendorPhoneExtensionNumber = vendorPhoneExtensionNumber;
88      }
89  
90      public boolean isActive() {
91  
92          return active;
93      }
94  
95      public void setActive(boolean active) {
96          this.active = active;
97      }
98  
99      public PhoneType getVendorPhoneType() {
100 
101         return vendorPhoneType;
102     }
103 
104     /**
105      * Sets the vendorPhoneType attribute value.
106      * 
107      * @param vendorPhoneType The vendorPhoneType to set.
108      * @deprecated
109      */
110     public void setVendorPhoneType(PhoneType vendorPhoneType) {
111         this.vendorPhoneType = vendorPhoneType;
112     }
113 
114     /**
115      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
116      */
117     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
118         LinkedHashMap m = new LinkedHashMap();
119         if (this.vendorContactPhoneGeneratedIdentifier != null) {
120             m.put("vendorContactPhoneGeneratedIdentifier", this.vendorContactPhoneGeneratedIdentifier.toString());
121         }
122 
123         return m;
124     }
125 
126 }