001: /*
002: * Copyright 2005-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.cg.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.Inactivateable;
022: import org.kuali.core.bo.PersistableBusinessObjectBase;
023: import org.kuali.kfs.bo.Country;
024: import org.kuali.kfs.bo.State;
025:
026: /**
027: * Subcontractors are vendors involved with an awarded {@link Proposal}.
028: */
029: public class Subcontractor extends PersistableBusinessObjectBase
030: implements Inactivateable {
031:
032: private String subcontractorNumber;
033: private String subcontractorName;
034: private String subcontractorAddressLine1;
035: private String subcontractorAddressLine2;
036: private String subcontractorCity;
037: private String subcontractorStateCode;
038: private String subcontractorZipCode;
039: private String subcontractorCountryCode;
040: private boolean active;
041:
042: private State subcontractorState;
043: private Country subcontractorCountry;
044:
045: /**
046: * Default no-arg constructor.
047: */
048: public Subcontractor() {
049: }
050:
051: /**
052: * Gets the subcontractorNumber attribute.
053: *
054: * @return Returns the subcontractorNumber
055: */
056: public String getSubcontractorNumber() {
057: return subcontractorNumber;
058: }
059:
060: /**
061: * Sets the subcontractorNumber attribute.
062: *
063: * @param subcontractorNumber The subcontractorNumber to set.
064: */
065: public void setSubcontractorNumber(String subcontractorNumber) {
066: this .subcontractorNumber = subcontractorNumber;
067: }
068:
069: /**
070: * Gets the subcontractorName attribute.
071: *
072: * @return Returns the subcontractorName
073: */
074: public String getSubcontractorName() {
075: return subcontractorName;
076: }
077:
078: /**
079: * Sets the subcontractorName attribute.
080: *
081: * @param subcontractorName The subcontractorName to set.
082: */
083: public void setSubcontractorName(String subcontractorName) {
084: this .subcontractorName = subcontractorName;
085: }
086:
087: /**
088: * Gets the subcontractorAddressLine1 attribute.
089: *
090: * @return Returns the subcontractorAddressLine1
091: */
092: public String getSubcontractorAddressLine1() {
093: return subcontractorAddressLine1;
094: }
095:
096: /**
097: * Sets the subcontractorAddressLine1 attribute.
098: *
099: * @param subcontractorAddressLine1 The subcontractorAddressLine1 to set.
100: */
101: public void setSubcontractorAddressLine1(
102: String subcontractorAddressLine1) {
103: this .subcontractorAddressLine1 = subcontractorAddressLine1;
104: }
105:
106: /**
107: * Gets the subcontractorAddressLine2 attribute.
108: *
109: * @return Returns the subcontractorAddressLine2
110: */
111: public String getSubcontractorAddressLine2() {
112: return subcontractorAddressLine2;
113: }
114:
115: /**
116: * Sets the subcontractorAddressLine2 attribute.
117: *
118: * @param subcontractorAddressLine2 The subcontractorAddressLine2 to set.
119: */
120: public void setSubcontractorAddressLine2(
121: String subcontractorAddressLine2) {
122: this .subcontractorAddressLine2 = subcontractorAddressLine2;
123: }
124:
125: /**
126: * Gets the subcontractorCity attribute.
127: *
128: * @return Returns the subcontractorCity
129: */
130: public String getSubcontractorCity() {
131: return subcontractorCity;
132: }
133:
134: /**
135: * Sets the subcontractorCity attribute.
136: *
137: * @param subcontractorCity The subcontractorCity to set.
138: */
139: public void setSubcontractorCity(String subcontractorCity) {
140: this .subcontractorCity = subcontractorCity;
141: }
142:
143: /**
144: * Gets the subcontractorStateCode attribute.
145: *
146: * @return Returns the subcontractorStateCode.
147: */
148: public String getSubcontractorStateCode() {
149: return subcontractorStateCode;
150: }
151:
152: /**
153: * Sets the subcontractorStateCode attribute value.
154: *
155: * @param subcontractorStateCode The subcontractorStateCode to set.
156: */
157: public void setSubcontractorStateCode(String subcontractorStateCode) {
158: this .subcontractorStateCode = subcontractorStateCode;
159: }
160:
161: /**
162: * Gets the subcontractorZipCode attribute.
163: *
164: * @return Returns the subcontractorZipCode
165: */
166: public String getSubcontractorZipCode() {
167: return subcontractorZipCode;
168: }
169:
170: /**
171: * Sets the subcontractorZipCode attribute.
172: *
173: * @param subcontractorZipCode The subcontractorZipCode to set.
174: */
175: public void setSubcontractorZipCode(String subcontractorZipCode) {
176: this .subcontractorZipCode = subcontractorZipCode;
177: }
178:
179: /**
180: * Gets the subcontractorCountryCode attribute.
181: *
182: * @return Returns the subcontractorCountryCode
183: */
184: public String getSubcontractorCountryCode() {
185: return subcontractorCountryCode;
186: }
187:
188: /**
189: * Sets the subcontractorCountryCode attribute.
190: *
191: * @param subcontractorCountryCode The subcontractorCountryCode to set.
192: */
193: public void setSubcontractorCountryCode(
194: String subcontractorCountryCode) {
195: this .subcontractorCountryCode = subcontractorCountryCode;
196: }
197:
198: /**
199: * Gets the active attribute.
200: *
201: * @return Returns the active.
202: */
203: public boolean isActive() {
204: return active;
205: }
206:
207: /**
208: * Sets the active attribute value.
209: *
210: * @param active The active to set.
211: */
212: public void setActive(boolean active) {
213: this .active = active;
214: }
215:
216: /**
217: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
218: */
219: protected LinkedHashMap toStringMapper() {
220: LinkedHashMap m = new LinkedHashMap();
221: m.put("subcontractorNumber", this .getSubcontractorNumber());
222: return m;
223: }
224:
225: /**
226: * Gets the {@link Country} in which the subcontractor is located.
227: *
228: * @return the {@link Country} in which the subcontractor is located.
229: */
230: public Country getSubcontractorCountry() {
231: return subcontractorCountry;
232: }
233:
234: /**
235: * Sets the {@link Country} in which the subcontractor is located.
236: *
237: * @param country the {@link Country} in which the subcontractor is located.
238: */
239: public void setSubcontractorCountry(Country country) {
240: this .subcontractorCountry = country;
241: }
242:
243: /**
244: * Gets the {@link State} in which the subcontractor is located.
245: *
246: * @return the {@link State} in which the subcontractor is located.
247: */
248: public State getSubcontractorState() {
249: return subcontractorState;
250: }
251:
252: /**
253: * Sets the {@link State} in which the subcontractor is located.
254: *
255: * @param state the {@link State} in which the subcontractor is located.
256: */
257: public void setSubcontractorState(State state) {
258: this.subcontractorState = state;
259: }
260:
261: }
|