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/PublishedMetaData.java $
03: * $Id: PublishedMetaData.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.AssessmentBaseIfc;
23: import org.sakaiproject.tool.assessment.data.ifc.assessment.AssessmentMetaDataIfc;
24:
25: import java.io.*;
26:
27: import org.apache.log4j.*;
28:
29: public class PublishedMetaData implements Serializable,
30: AssessmentMetaDataIfc {
31: static Category errorLogger = Category.getInstance("errorLogger");
32:
33: private static final long serialVersionUID = 7526471155622776147L;
34:
35: private Long id;
36: private AssessmentBaseIfc assessment;
37: private String label;
38: private String entry;
39:
40: public PublishedMetaData() {
41: }
42:
43: public PublishedMetaData(AssessmentBaseIfc assessment,
44: String label, String entry) {
45: this .assessment = assessment;
46: this .label = label;
47: this .entry = entry;
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 AssessmentBaseIfc getAssessment() {
59: return assessment;
60: }
61:
62: public void setAssessment(AssessmentBaseIfc assessment) {
63: this .assessment = assessment;
64: }
65:
66: public String getLabel() {
67: return label;
68: }
69:
70: public void setLabel(String label) {
71: this .label = label;
72: }
73:
74: public String getEntry() {
75: return entry;
76: }
77:
78: public void setEntry(String entry) {
79: this .entry = entry;
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: }
|