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 RoutingFormQuestion extends PersistableBusinessObjectBase {
026:
027: private String documentNumber;
028: private String questionTypeCode;
029: private String yesNoIndicator;
030:
031: private QuestionType question;
032:
033: public RoutingFormQuestion() {
034: super ();
035: }
036:
037: public RoutingFormQuestion(String documentNumber,
038: QuestionType questionType) {
039: super ();
040: this .documentNumber = documentNumber;
041: this .questionTypeCode = questionType.getQuestionTypeCode();
042: this .question = questionType;
043: }
044:
045: /**
046: * Gets the documentNumber attribute.
047: *
048: * @return Returns the documentNumber.
049: */
050: public String getDocumentNumber() {
051: return documentNumber;
052: }
053:
054: /**
055: * Sets the documentNumber attribute value.
056: *
057: * @param documentNumber The documentNumber to set.
058: */
059: public void setDocumentNumber(String documentNumber) {
060: this .documentNumber = documentNumber;
061: }
062:
063: /**
064: * Gets the questionTypeCode attribute.
065: *
066: * @return Returns the questionTypeCode.
067: */
068: public String getQuestionTypeCode() {
069: return questionTypeCode;
070: }
071:
072: /**
073: * Sets the questionTypeCode attribute value.
074: *
075: * @param questionTypeCode The questionTypeCode to set.
076: */
077: public void setQuestionTypeCode(String questionTypeCode) {
078: this .questionTypeCode = questionTypeCode;
079: }
080:
081: /**
082: * Gets the yesNoIndicator attribute.
083: *
084: * @return Returns the yesNoIndicator.
085: */
086: public String getYesNoIndicator() {
087: return yesNoIndicator;
088: }
089:
090: /**
091: * Sets the yesNoIndicator attribute value.
092: *
093: * @param yesNoIndicator The yesNoIndicator to set.
094: */
095: public void setYesNoIndicator(String yesNoIndicator) {
096: this .yesNoIndicator = yesNoIndicator;
097: }
098:
099: /**
100: * Gets the question attribute.
101: *
102: * @return Returns the question.
103: */
104: public QuestionType getQuestion() {
105: return question;
106: }
107:
108: /**
109: * Sets the question attribute value.
110: *
111: * @param question The question to set.
112: */
113: public void setQuestion(QuestionType question) {
114: this .question = question;
115: }
116:
117: /**
118: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
119: */
120: protected LinkedHashMap toStringMapper() {
121: LinkedHashMap m = new LinkedHashMap();
122: m.put("documentNumber", this .documentNumber);
123: m.put("questionTypeCode", this.questionTypeCode);
124: return m;
125: }
126: }
|