001: /*
002: * Copyright 2006-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 RoutingFormDueDateType extends
023: PersistableBusinessObjectBase {
024:
025: private String documentNumber;
026: private String dueDateTypeCode;
027:
028: private DueDateType dueDateType;
029:
030: /**
031: * Default constructor.
032: */
033: public RoutingFormDueDateType() {
034:
035: }
036:
037: /**
038: * Constructs a RoutingFormDueDateType.
039: *
040: * @param documentNumber
041: * @param dueDateType
042: */
043: public RoutingFormDueDateType(String documentNumber,
044: DueDateType dueDateType) {
045: this ();
046: this .documentNumber = documentNumber;
047: this .dueDateTypeCode = dueDateType.getDueDateTypeCode();
048: this .dueDateType = dueDateType;
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 dueDateTypeCode attribute.
071: *
072: * @return Returns the dueDateTypeCode
073: */
074: public String getDueDateTypeCode() {
075: return dueDateTypeCode;
076: }
077:
078: /**
079: * Sets the dueDateTypeCode attribute.
080: *
081: * @param dueDateTypeCode The dueDateTypeCode to set.
082: */
083: public void setDueDateTypeCode(String dueDateTypeCode) {
084: this .dueDateTypeCode = dueDateTypeCode;
085: }
086:
087: /**
088: * Gets the dueDateType attribute.
089: *
090: * @return Returns the dueDateType
091: */
092: public DueDateType getDueDateType() {
093: return dueDateType;
094: }
095:
096: /**
097: * Sets the dueDateType attribute.
098: *
099: * @param dueDateType The dueDateType to set.
100: */
101: public void setDueDateType(DueDateType dueDateType) {
102: this .dueDateType = dueDateType;
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("dueDateTypeCode", this.dueDateTypeCode);
112: return m;
113: }
114: }
|