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.PersistableBusinessObjectBase;
022:
023: /**
024: * Major classification of Vendors according to whether they are sufficiently set up to provide for an interaction via Purchase
025: * Orders.
026: */
027: public class VendorType extends PersistableBusinessObjectBase {
028:
029: private String vendorTypeCode;
030: private String vendorTypeDescription;
031: private boolean active;
032: private boolean vendorTaxNumberRequiredIndicator;
033: private boolean vendorTypeChangeAllowedIndicator;
034: private String vendorAddressTypeRequiredCode;
035: private boolean vendorContractAllowedIndicator;
036: private boolean vendorShowReviewIndicator;
037: private String vendorReviewText;
038:
039: private AddressType addressType;
040:
041: /**
042: * Default constructor.
043: */
044: public VendorType() {
045:
046: }
047:
048: public String getVendorTypeCode() {
049:
050: return vendorTypeCode;
051: }
052:
053: public void setVendorTypeCode(String vendorTypeCode) {
054: this .vendorTypeCode = vendorTypeCode;
055: }
056:
057: public String getVendorTypeDescription() {
058:
059: return vendorTypeDescription;
060: }
061:
062: public void setVendorTypeDescription(String vendorTypeDescription) {
063: this .vendorTypeDescription = vendorTypeDescription;
064: }
065:
066: public boolean isActive() {
067:
068: return active;
069: }
070:
071: public void setActive(boolean active) {
072: this .active = active;
073: }
074:
075: public String getVendorAddressTypeRequiredCode() {
076:
077: return vendorAddressTypeRequiredCode;
078: }
079:
080: public void setVendorAddressTypeRequiredCode(
081: String vendorAddressTypeRequiredCode) {
082: this .vendorAddressTypeRequiredCode = vendorAddressTypeRequiredCode;
083: }
084:
085: public boolean isVendorTaxNumberRequiredIndicator() {
086:
087: return vendorTaxNumberRequiredIndicator;
088: }
089:
090: public void setVendorTaxNumberRequiredIndicator(
091: boolean vendorTaxNumberRequiredIndicator) {
092: this .vendorTaxNumberRequiredIndicator = vendorTaxNumberRequiredIndicator;
093: }
094:
095: public boolean isVendorTypeChangeAllowedIndicator() {
096:
097: return vendorTypeChangeAllowedIndicator;
098: }
099:
100: public void setVendorTypeChangeAllowedIndicator(
101: boolean vendorTypeChangeAllowedIndicator) {
102: this .vendorTypeChangeAllowedIndicator = vendorTypeChangeAllowedIndicator;
103: }
104:
105: public boolean isVendorContractAllowedIndicator() {
106:
107: return vendorContractAllowedIndicator;
108: }
109:
110: public void setVendorContractAllowedIndicator(
111: boolean vendorContractAllowedIndicator) {
112: this .vendorContractAllowedIndicator = vendorContractAllowedIndicator;
113: }
114:
115: public String getVendorReviewText() {
116:
117: return vendorReviewText;
118: }
119:
120: public void setVendorReviewText(String vendorReviewText) {
121: this .vendorReviewText = vendorReviewText;
122: }
123:
124: public boolean isVendorShowReviewIndicator() {
125:
126: return vendorShowReviewIndicator;
127: }
128:
129: public void setVendorShowReviewIndicator(
130: boolean vendorShowReviewIndicator) {
131: this .vendorShowReviewIndicator = vendorShowReviewIndicator;
132: }
133:
134: public AddressType getAddressType() {
135:
136: return addressType;
137: }
138:
139: public void setAddressType(AddressType addressType) {
140: this .addressType = addressType;
141: }
142:
143: /**
144: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
145: */
146: protected LinkedHashMap toStringMapper() {
147: LinkedHashMap m = new LinkedHashMap();
148: m.put("vendorTypeCode", this.vendorTypeCode);
149:
150: return m;
151: }
152:
153: }
|