01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.module.vendor.bo;
18:
19: import java.util.LinkedHashMap;
20:
21: import org.kuali.core.bo.PersistableBusinessObjectBase;
22:
23: /**
24: * Address Types for Vendor Addresses. Used to distinguish the intended use of this address among the various addresses that a
25: * vendor might give out.
26: *
27: * @see org.kuali.module.vendor.bo.VendorAddress
28: */
29: public class AddressType extends PersistableBusinessObjectBase {
30:
31: private String vendorAddressTypeCode;
32: private String vendorAddressTypeDescription;
33: private boolean vendorDefaultIndicator;
34: private boolean active;
35:
36: /**
37: * Default constructor.
38: */
39: public AddressType() {
40:
41: }
42:
43: public String getVendorAddressTypeCode() {
44:
45: return vendorAddressTypeCode;
46: }
47:
48: public void setVendorAddressTypeCode(String vendorAddressTypeCode) {
49: this .vendorAddressTypeCode = vendorAddressTypeCode;
50: }
51:
52: public String getVendorAddressTypeDescription() {
53:
54: return vendorAddressTypeDescription;
55: }
56:
57: public void setVendorAddressTypeDescription(
58: String vendorAddressTypeDescription) {
59: this .vendorAddressTypeDescription = vendorAddressTypeDescription;
60: }
61:
62: public boolean getVendorDefaultIndicator() {
63:
64: return vendorDefaultIndicator;
65: }
66:
67: public void setVendorDefaultIndicator(boolean vendorDefaultIndicator) {
68: this .vendorDefaultIndicator = vendorDefaultIndicator;
69: }
70:
71: /**
72: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
73: */
74: protected LinkedHashMap toStringMapper() {
75: LinkedHashMap m = new LinkedHashMap();
76: m.put("vendorAddressTypeCode", this .vendorAddressTypeCode);
77:
78: return m;
79: }
80:
81: public boolean isActive() {
82:
83: return active;
84: }
85:
86: public void setActive(boolean active) {
87: this.active = active;
88: }
89: }
|