001: /*
002: * Copyright 2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.opensource.org/licenses/ecl1.php
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016:
017: package org.kuali.module.vendor.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.Inactivateable;
022: import org.kuali.core.bo.PersistableBusinessObjectBase;
023:
024: /**
025: * Phone number for a Vendor Contact.
026: */
027: public class VendorContactPhoneNumber extends
028: PersistableBusinessObjectBase implements Inactivateable {
029:
030: private Integer vendorContactPhoneGeneratedIdentifier;
031: private Integer vendorContactGeneratedIdentifier;
032: private String vendorPhoneTypeCode;
033: private String vendorPhoneNumber;
034: private String vendorPhoneExtensionNumber;
035: private boolean active;
036:
037: private PhoneType vendorPhoneType;
038:
039: /**
040: * Default constructor.
041: */
042: public VendorContactPhoneNumber() {
043:
044: }
045:
046: public Integer getVendorContactPhoneGeneratedIdentifier() {
047:
048: return vendorContactPhoneGeneratedIdentifier;
049: }
050:
051: public void setVendorContactPhoneGeneratedIdentifier(
052: Integer vendorContactPhoneGeneratedIdentifier) {
053: this .vendorContactPhoneGeneratedIdentifier = vendorContactPhoneGeneratedIdentifier;
054: }
055:
056: public Integer getVendorContactGeneratedIdentifier() {
057:
058: return vendorContactGeneratedIdentifier;
059: }
060:
061: public void setVendorContactGeneratedIdentifier(
062: Integer vendorContactGeneratedIdentifier) {
063: this .vendorContactGeneratedIdentifier = vendorContactGeneratedIdentifier;
064: }
065:
066: public String getVendorPhoneTypeCode() {
067:
068: return vendorPhoneTypeCode;
069: }
070:
071: public void setVendorPhoneTypeCode(String vendorPhoneTypeCode) {
072: this .vendorPhoneTypeCode = vendorPhoneTypeCode;
073: }
074:
075: public String getVendorPhoneNumber() {
076:
077: return vendorPhoneNumber;
078: }
079:
080: public void setVendorPhoneNumber(String vendorPhoneNumber) {
081: this .vendorPhoneNumber = vendorPhoneNumber;
082: }
083:
084: public String getVendorPhoneExtensionNumber() {
085:
086: return vendorPhoneExtensionNumber;
087: }
088:
089: public void setVendorPhoneExtensionNumber(
090: String vendorPhoneExtensionNumber) {
091: this .vendorPhoneExtensionNumber = vendorPhoneExtensionNumber;
092: }
093:
094: public boolean isActive() {
095:
096: return active;
097: }
098:
099: public void setActive(boolean active) {
100: this .active = active;
101: }
102:
103: public PhoneType getVendorPhoneType() {
104:
105: return vendorPhoneType;
106: }
107:
108: /**
109: * Sets the vendorPhoneType attribute value.
110: *
111: * @param vendorPhoneType The vendorPhoneType to set.
112: * @deprecated
113: */
114: public void setVendorPhoneType(PhoneType vendorPhoneType) {
115: this .vendorPhoneType = vendorPhoneType;
116: }
117:
118: /**
119: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
120: */
121: protected LinkedHashMap toStringMapper() {
122: LinkedHashMap m = new LinkedHashMap();
123: if (this .vendorContactPhoneGeneratedIdentifier != null) {
124: m.put("vendorContactPhoneGeneratedIdentifier",
125: this.vendorContactPhoneGeneratedIdentifier
126: .toString());
127: }
128:
129: return m;
130: }
131:
132: }
|