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