001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-hibernate/src/java/org/sakaiproject/tool/assessment/data/dao/assessment/SectionMetaData.java $
003: * $Id: SectionMetaData.java 13062 2006-07-28 21:46:55Z lydial@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.dao.assessment;
021:
022: import java.io.IOException;
023: import java.io.Serializable;
024:
025: import org.apache.log4j.Category;
026:
027: import org.sakaiproject.tool.assessment.data.ifc.assessment.SectionDataIfc;
028: import org.sakaiproject.tool.assessment.data.ifc.assessment.SectionMetaDataIfc;
029:
030: public class SectionMetaData implements Serializable,
031: SectionMetaDataIfc {
032: static Category errorLogger = Category.getInstance("errorLogger");
033:
034: private static final long serialVersionUID = 7526471155622776147L;
035:
036: public static final String AUTHORS = "ASSESSMENT_AUTHORS";
037: public static final String KEYWORDS = "ASSESSMENT_KEYWORDS";
038: public static final String OBJECTIVES = "ASSESSMENT_OBJECTIVES";
039: public static final String RUBRICS = "ASSESSMENT_RUBRICS";
040: public static final String BGCOLOR = "ASSESSMENT_BGCOLOR";
041: public static final String BGIMAGE = "ASSESSMENT_BGIMAGE";
042:
043: private Long id;
044: private SectionDataIfc section;
045: private String label;
046: private String entry;
047:
048: public SectionMetaData() {
049: }
050:
051: public SectionMetaData(SectionDataIfc section, String label,
052: String entry) {
053: this .section = section;
054: this .label = label;
055: this .entry = entry;
056: }
057:
058: public Long getId() {
059: return id;
060: }
061:
062: public void setId(Long id) {
063: this .id = id;
064: }
065:
066: public SectionDataIfc getSection() {
067: return section;
068: }
069:
070: public void setSection(SectionDataIfc section) {
071: this .section = section;
072: }
073:
074: public String getLabel() {
075: return label;
076: }
077:
078: public void setLabel(String label) {
079: this .label = label;
080: }
081:
082: public String getEntry() {
083: return entry;
084: }
085:
086: public void setEntry(String entry) {
087: this .entry = entry;
088: }
089:
090: private void writeObject(java.io.ObjectOutputStream out)
091: throws IOException {
092: out.defaultWriteObject();
093: }
094:
095: private void readObject(java.io.ObjectInputStream in)
096: throws IOException, ClassNotFoundException {
097: in.defaultReadObject();
098: }
099:
100: }
|