001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-api/src/java/org/sakaiproject/tool/assessment/data/ifc/assessment/ItemDataIfc.java $
003: * $Id: ItemDataIfc.java 13846 2006-08-18 19:47:19Z 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.data.ifc.assessment;
021:
022: import java.util.ArrayList;
023: import java.util.Date;
024: import java.util.HashMap;
025: import java.util.Set;
026: import java.util.List;
027:
028: import org.sakaiproject.tool.assessment.data.ifc.shared.TypeIfc;
029:
030: public interface ItemDataIfc extends java.io.Serializable {
031:
032: public static Integer ACTIVE_STATUS = new Integer(1);
033: public static Integer INACTIVE_STATUS = new Integer(0);
034:
035: Long getItemId();
036:
037: void setItemId(Long itemId);
038:
039: String getItemIdString();
040:
041: void setItemIdString(String itemIdString);
042:
043: SectionDataIfc getSection();
044:
045: void setSection(SectionDataIfc section);
046:
047: Integer getSequence();
048:
049: void setSequence(Integer sequence);
050:
051: Integer getDuration();
052:
053: void setTriesAllowed(Integer triesAllowed);
054:
055: Integer getTriesAllowed();
056:
057: void setDuration(Integer duration);
058:
059: String getInstruction();
060:
061: void setInstruction(String instruction);
062:
063: String getDescription();
064:
065: void setDescription(String description);
066:
067: Long getTypeId();
068:
069: void setTypeId(Long typeId);
070:
071: String getGrade();
072:
073: void setGrade(String grade);
074:
075: Float getScore();
076:
077: void setScore(Float score);
078:
079: String getHint();
080:
081: void setHint(String hint);
082:
083: Boolean getHasRationale();
084:
085: void setHasRationale(Boolean hasRationale);
086:
087: Integer getStatus();
088:
089: void setStatus(Integer status);
090:
091: String getCreatedBy();
092:
093: void setCreatedBy(String createdBy);
094:
095: Date getCreatedDate();
096:
097: void setCreatedDate(Date createdDate);
098:
099: String getLastModifiedBy();
100:
101: void setLastModifiedBy(String lastModifiedBy);
102:
103: Date getLastModifiedDate();
104:
105: void setLastModifiedDate(Date lastModifiedDate);
106:
107: Set getItemTextSet();
108:
109: void setItemTextSet(Set itemTextSet);
110:
111: void addItemText(String itemText, Set answerSet);
112:
113: Set getItemMetaDataSet();
114:
115: void setItemMetaDataSet(Set itemMetaDataSet);
116:
117: HashMap getItemMetaDataMap(Set itemMetaDataSet);
118:
119: Set getItemFeedbackSet();
120:
121: void setItemFeedbackSet(Set itemFeedbackSet);
122:
123: HashMap getItemFeedbackMap(Set itemFeedbackSet);
124:
125: String getItemMetaDataByLabel(String label);
126:
127: void addItemMetaData(String label, String entry);
128:
129: String getCorrectItemFeedback();
130:
131: void setCorrectItemFeedback(String text);
132:
133: String getInCorrectItemFeedback();
134:
135: void setInCorrectItemFeedback(String text);
136:
137: String getGeneralItemFeedback();
138:
139: void setGeneralItemFeedback(String text);
140:
141: String getItemFeedback(String typeId);
142:
143: void addItemFeedback(String typeId, String text);
144:
145: void removeFeedbackByType(String typeId);
146:
147: void removeMetaDataByType(String typeId);
148:
149: public Boolean getIsTrue();
150:
151: public String getText();
152:
153: TypeIfc getType();
154:
155: ArrayList getItemTextArray();
156:
157: ArrayList getItemTextArraySorted();
158:
159: String getAnswerKey();
160:
161: Set getItemAttachmentSet();
162:
163: void setItemAttachmentSet(Set itemAttachmentSet);
164:
165: List getItemAttachmentList();
166: }
|