001 /*
002 * Copyright 2006-2012 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017 package edu.sampleu.demo.kitchensink;
018
019 /**
020 * used to test spring expressions in the addline of a collection group - based on a KS class
021 *
022 * @author Kuali Rice Team (rice.collab@kuali.org)
023 */
024 public class TimeInfo {
025 private String startTime;
026 private String startTimeAmPm;
027 private boolean allDay;
028
029 /**
030 * constructor
031 * @param startTime - the start time
032 * @param startTimeAmPm - whether the start time is PM/AM
033 * @param allDay - whether the event is all day
034 */
035 public TimeInfo(String startTime, String startTimeAmPm, boolean allDay) {
036 this.startTime = startTime;
037 this.startTimeAmPm = startTimeAmPm;
038 this.allDay = allDay;
039 }
040
041 /**
042 * default constructor
043 */
044 public TimeInfo() {}
045
046 /**
047
048 * the start time
049 *
050 * @return start time
051 */
052 public String getStartTime() {
053 return startTime;
054 }
055
056 /**
057 * set the start time
058 *
059 * @param startTime - the start time
060 */
061 public void setStartTime(String startTime) {
062 this.startTime = startTime;
063 }
064
065 /**
066 * get am or pm value
067 *
068 * @return am or pm value
069 */
070 public String getStartTimeAmPm() {
071 return startTimeAmPm;
072 }
073
074 /**
075 * get am or pm value
076 *
077 * @param startTimeAmPm - am or pm value
078 */
079 public void setStartTimeAmPm(String startTimeAmPm) {
080 this.startTimeAmPm = startTimeAmPm;
081 }
082
083 /**
084 * get all day value
085 *
086 * @return all day value
087 */
088 public boolean isAllDay() {
089 return allDay;
090 }
091
092 /**
093 * set all day value
094 *
095 * @param allDay - all day value
096 */
097 public void setAllDay(boolean allDay) {
098 this.allDay = allDay;
099 }
100 }