01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/evaluation/HistogramSectionBean.java $
03: * $Id: HistogramSectionBean.java 15083 2006-09-20 20:03: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.ui.bean.evaluation;
21:
22: import java.io.Serializable;
23: import java.util.ArrayList;
24:
25: /**
26: *
27: * <p>Description: Helper bean for Histograms.
28: */
29:
30: public class HistogramSectionBean implements Serializable {
31: /**
32: *
33: */
34: private static final long serialVersionUID = -7669608870369454294L;
35: private ArrayList itemBeans; // The items for this section
36: private String partName; // Part name
37: private String sequence; // The number indicating order (1, 2, 3...)
38:
39: /**
40: * Returns a list of HistogramQuestionScoresBeans
41: * @return ArrayList
42: */
43: public ArrayList getItemBeans() {
44: return itemBeans;
45: }
46:
47: /**
48: * Sets a list of HistogramQuestionScoresBeans
49: * @param pquestionNumberList ArrayList
50: */
51: public void setItemBeans(ArrayList pItemBeans) {
52: itemBeans = pItemBeans;
53: }
54:
55: /**
56: * Adds an itembean.
57: */
58: public void addItemBean(HistogramQuestionScoresBean bean) {
59: if (itemBeans == null)
60: itemBeans = new ArrayList();
61: itemBeans.add(bean);
62: }
63:
64: /**
65: * Set the part name.
66: * @param ppartName String
67: */
68: public void setPartName(String ppartName) {
69: partName = ppartName;
70: }
71:
72: /**
73: * Get the part name.
74: */
75: public String getPartName() {
76: return partName;
77: }
78:
79: /**
80: * Set the sequence value.
81: */
82: public void setSequence(String newSeq) {
83: sequence = newSeq;
84: }
85:
86: /**
87: * Get the sequence value.
88: */
89: public String getSequence() {
90: return sequence;
91: }
92: }
|