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: package org.kuali.module.kra.routingform.bo;
017:
018: import java.util.LinkedHashMap;
019:
020: import org.kuali.core.bo.PersistableBusinessObjectBase;
021:
022: public class RoutingFormResearchTypeCode extends
023: PersistableBusinessObjectBase {
024:
025: private String documentNumber;
026: private String researchTypeCode;
027:
028: private ResearchTypeCode researchType;
029:
030: /**
031: * Default constructor.
032: */
033: public RoutingFormResearchTypeCode() {
034:
035: }
036:
037: /**
038: * Constructs a RoutingFormResearchTypeCode.
039: *
040: * @param documentNumber
041: * @param researchType
042: */
043: public RoutingFormResearchTypeCode(String documentNumber,
044: ResearchTypeCode researchType) {
045: this ();
046: this .documentNumber = documentNumber;
047: this .researchTypeCode = researchType.getResearchTypeCode();
048: this .researchType = researchType;
049: }
050:
051: /**
052: * Gets the documentNumber attribute.
053: *
054: * @return Returns the documentNumber
055: */
056: public String getDocumentNumber() {
057: return documentNumber;
058: }
059:
060: /**
061: * Sets the documentNumber attribute.
062: *
063: * @param documentNumber The documentNumber to set.
064: */
065: public void setDocumentNumber(String documentNumber) {
066: this .documentNumber = documentNumber;
067: }
068:
069: /**
070: * Gets the researchTypeCode attribute.
071: *
072: * @return Returns the researchTypeCode
073: */
074: public String getResearchTypeCode() {
075: return researchTypeCode;
076: }
077:
078: /**
079: * Sets the researchTypeCode attribute.
080: *
081: * @param researchTypeCode The researchTypeCode to set.
082: */
083: public void setResearchTypeCode(String researchTypeCode) {
084: this .researchTypeCode = researchTypeCode;
085: }
086:
087: /**
088: * Gets the researchType attribute.
089: *
090: * @return Returns the researchType
091: */
092: public ResearchTypeCode getResearchType() {
093: return researchType;
094: }
095:
096: /**
097: * Sets the researchType attribute.
098: *
099: * @param researchType The researchType to set.
100: */
101: public void setResearchType(ResearchTypeCode researchType) {
102: this .researchType = researchType;
103: }
104:
105: /**
106: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
107: */
108: protected LinkedHashMap toStringMapper() {
109: LinkedHashMap m = new LinkedHashMap();
110: m.put("documentNumber", this .documentNumber);
111: m.put("researchTypeCode", this.researchTypeCode);
112: return m;
113: }
114: }
|