001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/author/MatchItemBean.java $
003: * $Id: MatchItemBean.java 9268 2006-05-10 21:27:24Z daisyf@stanford.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the"License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.sakaiproject.tool.assessment.ui.bean.author;
021:
022: import java.io.Serializable;
023:
024: public class MatchItemBean implements Serializable {
025:
026: private static final long serialVersionUID = 7526471155622776147L;
027:
028: // private String text;
029: private Long sequence;
030: // private String corrfeedback;
031: // private String incorrfeedback;
032: private Boolean isCorrect;
033: private String choice; //
034: private String match;
035: private String corrMatchFeedback;
036: private String incorrMatchFeedback;
037: private String sequenceStr;
038:
039: public MatchItemBean() {
040: // sequence = -1 for new items
041: sequence = new Long(-1);
042: sequenceStr = "-1";
043: }
044:
045: /*
046: public String getText() {
047: return text;
048: }
049:
050: public void setText(String text) {
051: this.text = text;
052: }
053: */
054:
055: public Long getSequence() {
056: return sequence;
057: }
058:
059: public void setSequence(Long sequence) {
060: this .sequence = sequence;
061: this .sequenceStr = sequence.toString();
062: }
063:
064: // used by jsf to check if the current pair is for editing
065: public String getSequenceStr() {
066: return sequenceStr;
067: }
068:
069: public void setSequenceStr(String param) {
070: this .sequenceStr = param;
071: }
072:
073: /*
074: public String getCorrfeedback() {
075: return corrfeedback;
076: }
077:
078: public void setCorrfeedback(String feedback) {
079: this.corrfeedback= feedback;
080: }
081:
082: public String getIncorrfeedback() {
083: return incorrfeedback;
084: }
085:
086: public void setIncorrfeedback(String feedback) {
087: this.incorrfeedback= feedback;
088: }
089:
090: */
091:
092: public Boolean getIsCorrect() {
093: return isCorrect;
094: }
095:
096: public void setIsCorrect(Boolean isCorrect) {
097: this .isCorrect = isCorrect;
098: }
099:
100: public String getChoice() {
101: return choice;
102: }
103:
104: public void setChoice(String param) {
105: this .choice = param;
106: }
107:
108: public String getMatch() {
109: return match;
110: }
111:
112: public void setMatch(String param) {
113: this .match = param;
114: }
115:
116: public String getCorrMatchFeedback() {
117: return corrMatchFeedback;
118: }
119:
120: public void setCorrMatchFeedback(String param) {
121: this .corrMatchFeedback = param;
122: }
123:
124: public String getIncorrMatchFeedback() {
125: return incorrMatchFeedback;
126: }
127:
128: public void setIncorrMatchFeedback(String param) {
129: this.incorrMatchFeedback = param;
130: }
131:
132: }
|