/********************************************************************************** * $URL: https://source.sakaiproject.org/svn/sam/trunk/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/author/MatchItemBean.java $ * $Id: MatchItemBean.java 106463 2012-04-02 12:20:09Z david.horwitz@uct.ac.za $ *********************************************************************************** * * Copyright (c) 2004, 2005, 2006, 2008, 2009 The Sakai Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/ECL-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * **********************************************************************************/ package org.sakaiproject.tool.assessment.ui.bean.author; import java.io.Serializable; public class MatchItemBean implements Serializable { private static final long serialVersionUID = 7526471155622776147L; public static final String CONTROLLING_SEQUENCE_DEFAULT = "*new*"; public static final String CONTROLLING_SEQUENCE_DISTRACTOR = "*distractor*"; // private String text; private Long sequence; // private String corrfeedback; // private String incorrfeedback; private Boolean isCorrect; private String choice; // private String match; private String corrMatchFeedback; private String incorrMatchFeedback; private String sequenceStr; private String controllingSequence; public MatchItemBean() { // sequence = -1 for new items sequence = Long.valueOf(-1); sequenceStr = "-1"; controllingSequence = CONTROLLING_SEQUENCE_DEFAULT; } /* public String getText() { return text; } public void setText(String text) { this.text = text; } */ /** * controllingSequence determines if the choice for this matching bean is defined * within the bean or within another bean in a list of beans. If the controllingSequence * is "Self", the choice comes from within this bean. If the controllingSequence is * "Distractor", there is no choice for this bean. Otherwise, use the value of * controllingSequence to locate the bean that has the choice test. * @param controllingSequence */ public void setControllingSequence(String controllingSequence) { this.controllingSequence = controllingSequence; } public String getControllingSequence() { return this.controllingSequence; } public Long getSequence() { return sequence; } public void setSequence(Long sequence) { this.sequence = sequence; this.sequenceStr = sequence.toString(); } // used by jsf to check if the current pair is for editing public String getSequenceStr() { return sequenceStr; } public void setSequenceStr(String param) { this.sequenceStr= param; } /* public String getCorrfeedback() { return corrfeedback; } public void setCorrfeedback(String feedback) { this.corrfeedback= feedback; } public String getIncorrfeedback() { return incorrfeedback; } public void setIncorrfeedback(String feedback) { this.incorrfeedback= feedback; } */ public Boolean getIsCorrect() { return isCorrect; } public void setIsCorrect(Boolean isCorrect) { this.isCorrect = isCorrect; } public String getChoice() { return choice; } public void setChoice(String param) { this.choice= param; } public String getMatch() { return match ; } public void setMatch(String param) { this.match= param; } public String getCorrMatchFeedback() { return corrMatchFeedback; } public void setCorrMatchFeedback(String param) { this.corrMatchFeedback= param; } public String getIncorrMatchFeedback() { return incorrMatchFeedback; } public void setIncorrMatchFeedback(String param) { this.incorrMatchFeedback= param; } }