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: /**
023: *
024: */
025: public class QuestionType extends PersistableBusinessObjectBase {
026:
027: private String questionTypeCode;
028: private boolean dataObjectMaintenanceCodeActiveIndicator;
029: private String questionTypeDescription;
030: private Integer questionTypeSortNumber;
031: private String questionTypeWorkgroupName;
032: private String questionTypeNotificationValue;
033:
034: /**
035: * Gets the dataObjectMaintenanceCodeActiveIndicator attribute.
036: *
037: * @return Returns the dataObjectMaintenanceCodeActiveIndicator.
038: */
039: public boolean isDataObjectMaintenanceCodeActiveIndicator() {
040: return dataObjectMaintenanceCodeActiveIndicator;
041: }
042:
043: /**
044: * Sets the dataObjectMaintenanceCodeActiveIndicator attribute value.
045: *
046: * @param dataObjectMaintenanceCodeActiveIndicator The dataObjectMaintenanceCodeActiveIndicator to set.
047: */
048: public void setDataObjectMaintenanceCodeActiveIndicator(
049: boolean dataObjectMaintenanceCodeActiveIndicator) {
050: this .dataObjectMaintenanceCodeActiveIndicator = dataObjectMaintenanceCodeActiveIndicator;
051: }
052:
053: /**
054: * Gets the questionTypeCode attribute.
055: *
056: * @return Returns the questionTypeCode.
057: */
058: public String getQuestionTypeCode() {
059: return questionTypeCode;
060: }
061:
062: /**
063: * Sets the questionTypeCode attribute value.
064: *
065: * @param questionTypeCode The questionTypeCode to set.
066: */
067: public void setQuestionTypeCode(String questionTypeCode) {
068: this .questionTypeCode = questionTypeCode;
069: }
070:
071: /**
072: * Gets the questionTypeDescription attribute.
073: *
074: * @return Returns the questionTypeDescription.
075: */
076: public String getQuestionTypeDescription() {
077: return questionTypeDescription;
078: }
079:
080: /**
081: * Sets the questionTypeDescription attribute value.
082: *
083: * @param questionTypeDescription The questionTypeDescription to set.
084: */
085: public void setQuestionTypeDescription(
086: String questionTypeDescription) {
087: this .questionTypeDescription = questionTypeDescription;
088: }
089:
090: /**
091: * Gets the questionTypeSortNumber attribute.
092: *
093: * @return Returns the questionTypeSortNumber.
094: */
095: public Integer getQuestionTypeSortNumber() {
096: return questionTypeSortNumber;
097: }
098:
099: /**
100: * Sets the questionTypeSortNumber attribute value.
101: *
102: * @param questionTypeSortNumber The questionTypeSortNumber to set.
103: */
104: public void setQuestionTypeSortNumber(Integer questionTypeSortNumber) {
105: this .questionTypeSortNumber = questionTypeSortNumber;
106: }
107:
108: /**
109: * Gets the questionTypeWorkgroupName attribute.
110: *
111: * @return Returns the questionTypeWorkgroupName.
112: */
113: public String getQuestionTypeWorkgroupName() {
114: return questionTypeWorkgroupName;
115: }
116:
117: /**
118: * Sets the questionTypeWorkgroupName attribute value.
119: *
120: * @param questionTypeWorkgroupName The questionTypeWorkgroupName to set.
121: */
122: public void setQuestionTypeWorkgroupName(
123: String questionTypeWorkgroupName) {
124: this .questionTypeWorkgroupName = questionTypeWorkgroupName;
125: }
126:
127: /**
128: * Gets the questionTypeNotificationValue attribute.
129: *
130: * @return Returns the questionTypeNotificationValue.
131: */
132: public String getQuestionTypeNotificationValue() {
133: return questionTypeNotificationValue;
134: }
135:
136: /**
137: * Sets the questionTypeNotificationValue attribute value.
138: *
139: * @param questionTypeNotificationValue The questionTypeNotificationValue to set.
140: */
141: public void setQuestionTypeNotificationValue(
142: String questionTypeNotificationValue) {
143: this .questionTypeNotificationValue = questionTypeNotificationValue;
144: }
145:
146: @Override
147: public boolean equals(Object obj) {
148: if (obj instanceof QuestionType) {
149: return this .questionTypeCode.equals(((QuestionType) obj)
150: .getQuestionTypeCode());
151: }
152: return false;
153: }
154:
155: @Override
156: public int hashCode() {
157: int hashCode = 0;
158:
159: if (this .questionTypeCode != null) {
160: hashCode = this .questionTypeCode.hashCode();
161: }
162:
163: return hashCode;
164: }
165:
166: /**
167: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
168: */
169: protected LinkedHashMap toStringMapper() {
170: LinkedHashMap m = new LinkedHashMap();
171: m.put("questionTypeCode", this.questionTypeCode);
172: return m;
173: }
174: }
|