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.kra.routingform.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022:
023: /**
024: *
025: */
026: public class Purpose extends PersistableBusinessObjectBase {
027:
028: private String purposeCode;
029: private boolean dataObjectMaintenanceCodeActiveIndicator;
030: private String purposeDescription;
031: private Integer userSortNumber;
032:
033: /**
034: * Default constructor.
035: */
036: public Purpose() {
037:
038: }
039:
040: /**
041: * Gets the purposeCode attribute.
042: *
043: * @return Returns the purposeCode
044: */
045: public String getPurposeCode() {
046: return purposeCode;
047: }
048:
049: /**
050: * Sets the purposeCode attribute.
051: *
052: * @param purposeCode The purposeCode to set.
053: */
054: public void setPurposeCode(String routingFormPurposeCode) {
055: this .purposeCode = routingFormPurposeCode;
056: }
057:
058: /**
059: * Gets the dataObjectMaintenanceCodeActiveIndicator attribute.
060: *
061: * @return Returns the dataObjectMaintenanceCodeActiveIndicator
062: */
063: public boolean isDataObjectMaintenanceCodeActiveIndicator() {
064: return dataObjectMaintenanceCodeActiveIndicator;
065: }
066:
067: /**
068: * Sets the dataObjectMaintenanceCodeActiveIndicator attribute.
069: *
070: * @param dataObjectMaintenanceCodeActiveIndicator The dataObjectMaintenanceCodeActiveIndicator to set.
071: */
072: public void setDataObjectMaintenanceCodeActiveIndicator(
073: boolean dataObjectMaintenanceCodeActiveIndicator) {
074: this .dataObjectMaintenanceCodeActiveIndicator = dataObjectMaintenanceCodeActiveIndicator;
075: }
076:
077: /**
078: * Gets the purposeDescription attribute.
079: *
080: * @return Returns the purposeDescription
081: */
082: public String getPurposeDescription() {
083: return purposeDescription;
084: }
085:
086: /**
087: * Sets the purposeDescription attribute.
088: *
089: * @param purposeDescription The purposeDescription to set.
090: */
091: public void setPurposeDescription(
092: String routingFormPurposeDescription) {
093: this .purposeDescription = routingFormPurposeDescription;
094: }
095:
096: /**
097: * Gets the userSortNumber attribute.
098: *
099: * @return Returns the userSortNumber.
100: */
101: public Integer getUserSortNumber() {
102: return userSortNumber;
103: }
104:
105: /**
106: * Sets the userSortNumber attribute value.
107: *
108: * @param userSortNumber The userSortNumber to set.
109: */
110: public void setUserSortNumber(Integer userSortNumber) {
111: this .userSortNumber = userSortNumber;
112: }
113:
114: /**
115: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
116: */
117: protected LinkedHashMap toStringMapper() {
118: LinkedHashMap m = new LinkedHashMap();
119: m.put("purposeCode", this.purposeCode);
120: return m;
121: }
122: }
|