01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-hibernate/src/java/org/sakaiproject/tool/assessment/data/dao/assessment/ItemFeedback.java $
03: * $Id: ItemFeedback.java 13062 2006-07-28 21:46:55Z lydial@stanford.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the"License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.tool.assessment.data.dao.assessment;
21:
22: import java.io.IOException;
23: import java.io.Serializable;
24:
25: import org.apache.log4j.Category;
26:
27: import org.sakaiproject.tool.assessment.data.ifc.assessment.ItemDataIfc;
28: import org.sakaiproject.tool.assessment.data.ifc.assessment.ItemFeedbackIfc;
29:
30: public class ItemFeedback implements Serializable, ItemFeedbackIfc {
31: static Category errorLogger = Category.getInstance("errorLogger");
32:
33: private static final long serialVersionUID = 7526471155622776147L;
34: public static final String CORRECT_FEEDBACK = "Correct Feedback";
35: public static final String INCORRECT_FEEDBACK = "InCorrect Feedback";
36:
37: private Long id;
38: private ItemDataIfc item;
39: private String typeId;
40: private String text;
41:
42: public ItemFeedback() {
43: }
44:
45: public ItemFeedback(ItemData item, String typeId, String text) {
46: this .item = item;
47: this .typeId = typeId;
48: this .text = text;
49: }
50:
51: public Long getId() {
52: return id;
53: }
54:
55: public void setId(Long id) {
56: this .id = id;
57: }
58:
59: public ItemDataIfc getItem() {
60: return item;
61: }
62:
63: public void setItem(ItemDataIfc item) {
64: this .item = item;
65: }
66:
67: public String getTypeId() {
68: return typeId;
69: }
70:
71: public void setTypeId(String typeId) {
72: this .typeId = typeId;
73: }
74:
75: public String getText() {
76: return text;
77: }
78:
79: public void setText(String text) {
80: this .text = text;
81: }
82:
83: private void writeObject(java.io.ObjectOutputStream out)
84: throws IOException {
85: out.defaultWriteObject();
86: }
87:
88: private void readObject(java.io.ObjectInputStream in)
89: throws IOException, ClassNotFoundException {
90: in.defaultReadObject();
91: }
92:
93: }
|