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