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/AnswerFeedback.java $
03: * $Id: AnswerFeedback.java 9273 2006-05-10 22:34:28Z daisyf@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 org.sakaiproject.tool.assessment.data.ifc.assessment.AnswerFeedbackIfc;
23: import org.sakaiproject.tool.assessment.data.ifc.assessment.AnswerIfc;
24:
25: import java.io.*;
26:
27: import org.apache.log4j.*;
28:
29: public class AnswerFeedback implements Serializable, AnswerFeedbackIfc {
30: static Category errorLogger = Category.getInstance("errorLogger");
31:
32: private static final long serialVersionUID = 7526471155622776147L;
33:
34: private Long id;
35: private AnswerIfc answer;
36: private String typeId;
37: private String text;
38:
39: public AnswerFeedback() {
40: }
41:
42: public AnswerFeedback(AnswerIfc answer, String typeId, String text) {
43: this .answer = answer;
44: this .typeId = typeId;
45: this .text = text;
46: }
47:
48: public Long getId() {
49: return id;
50: }
51:
52: public void setId(Long id) {
53: this .id = id;
54: }
55:
56: public AnswerIfc getAnswer() {
57: return answer;
58: }
59:
60: public void setAnswer(AnswerIfc answer) {
61: this .answer = answer;
62: }
63:
64: public String getTypeId() {
65: return typeId;
66: }
67:
68: public void setTypeId(String typeId) {
69: this .typeId = typeId;
70: }
71:
72: public String getText() {
73: return text;
74: }
75:
76: public void setText(String text) {
77: this .text = text;
78: }
79:
80: private void writeObject(java.io.ObjectOutputStream out)
81: throws IOException {
82: out.defaultWriteObject();
83: }
84:
85: private void readObject(java.io.ObjectInputStream in)
86: throws IOException, ClassNotFoundException {
87: in.defaultReadObject();
88: }
89:
90: }
|