001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/evaluation/HistogramBarBean.java $
003: * $Id: HistogramBarBean.java 15083 2006-09-20 20:03: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.ui.bean.evaluation;
021:
022: import java.io.Serializable;
023:
024: import org.sakaiproject.tool.assessment.ui.bean.util.Validator;
025:
026: /**
027: * @version $Id: HistogramBarBean.java 15083 2006-09-20 20:03:55Z lydial@stanford.edu $
028: * @author Ed Smiley
029: */
030: public class HistogramBarBean implements Serializable {
031: /**
032: *
033: */
034: private static final long serialVersionUID = -4501893986013465144L;
035: private int numStudents;
036: private String numStudentsText;
037: private String columnHeight;
038: private String rangeInfo;
039: private String label;
040: private Boolean isCorrect;
041:
042: /**
043: *
044: * @param numStudents int
045: */
046: public void setNumStudents(int numStudents) {
047: this .numStudents = numStudents;
048: }
049:
050: /**
051: *
052: * @return int
053: */
054: public int getNumStudents() {
055: return this .numStudents;
056: }
057:
058: /**
059: *
060: * @param pStudents String
061: */
062: public void setNumStudentsText(String pStudents) {
063: numStudentsText = pStudents;
064: }
065:
066: /**
067: *
068: * @return String
069: */
070: public String getNumStudentsText() {
071: return Validator.check(numStudentsText, "N/A");
072: }
073:
074: /**
075: *
076: * @param columnHeight String
077: */
078: public void setColumnHeight(String columnHeight) {
079: this .columnHeight = columnHeight;
080: }
081:
082: /**
083: *
084: * @return String
085: */
086: public String getColumnHeight() {
087: return Validator.check(this .columnHeight, "0");
088: }
089:
090: /**
091: *
092: * @param range String
093: */
094: public void setRangeInfo(String range) {
095: this .rangeInfo = range;
096: }
097:
098: /**
099: *
100: * @return String
101: */
102: public String getRangeInfo() {
103: return Validator.check(this .rangeInfo, "N/A");
104: }
105:
106: /**
107: *
108: * @param range String
109: */
110: public void setLabel(String plabel) {
111: label = plabel;
112: }
113:
114: /**
115: *
116: * @return String
117: */
118: public String getLabel() {
119: return Validator.check(label, "N/A");
120: }
121:
122: /**
123: * @param range String
124: */
125:
126: public void setIsCorrect(Boolean pcorrect) {
127: isCorrect = pcorrect;
128: }
129:
130: /**
131: *
132: * @return String
133: */
134: public Boolean getIsCorrect() {
135: return Validator.bcheck(isCorrect, false);
136: }
137:
138: }
|