1 /* 2 * Copyright 2006-2012 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.opensource.org/licenses/ecl2.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package edu.sampleu.demo.kitchensink; 18 19 /** 20 * used to test spring expressions in the addline of a collection group - based on a KS class 21 * 22 * @author Kuali Rice Team (rice.collab@kuali.org) 23 */ 24 public class TimeInfo { 25 private String startTime; 26 private String startTimeAmPm; 27 private boolean allDay; 28 29 /** 30 * constructor 31 * @param startTime - the start time 32 * @param startTimeAmPm - whether the start time is PM/AM 33 * @param allDay - whether the event is all day 34 */ 35 public TimeInfo(String startTime, String startTimeAmPm, boolean allDay) { 36 this.startTime = startTime; 37 this.startTimeAmPm = startTimeAmPm; 38 this.allDay = allDay; 39 } 40 41 /** 42 * default constructor 43 */ 44 public TimeInfo() {} 45 46 /** 47 48 * the start time 49 * 50 * @return start time 51 */ 52 public String getStartTime() { 53 return startTime; 54 } 55 56 /** 57 * set the start time 58 * 59 * @param startTime - the start time 60 */ 61 public void setStartTime(String startTime) { 62 this.startTime = startTime; 63 } 64 65 /** 66 * get am or pm value 67 * 68 * @return am or pm value 69 */ 70 public String getStartTimeAmPm() { 71 return startTimeAmPm; 72 } 73 74 /** 75 * get am or pm value 76 * 77 * @param startTimeAmPm - am or pm value 78 */ 79 public void setStartTimeAmPm(String startTimeAmPm) { 80 this.startTimeAmPm = startTimeAmPm; 81 } 82 83 /** 84 * get all day value 85 * 86 * @return all day value 87 */ 88 public boolean isAllDay() { 89 return allDay; 90 } 91 92 /** 93 * set all day value 94 * 95 * @param allDay - all day value 96 */ 97 public void setAllDay(boolean allDay) { 98 this.allDay = allDay; 99 } 100 }