001/**
002 * Copyright 2005-2014 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 */
016package edu.sampleu.demo.kitchensink;
017
018/**
019 * used to test spring expressions in the addline of a collection group - based on a KS class
020 *
021 * @author Kuali Rice Team (rice.collab@kuali.org)
022 */
023public class TimeInfo {
024    private String startTime;
025    private String startTimeAmPm;
026    private boolean allDay;
027
028    /**
029     * constructor
030     * @param startTime - the start time
031     * @param startTimeAmPm - whether the start time is PM/AM
032     * @param allDay - whether the event is all day
033     */
034    public TimeInfo(String startTime, String startTimeAmPm, boolean allDay) {
035        this.startTime = startTime;
036        this.startTimeAmPm = startTimeAmPm;
037        this.allDay = allDay;
038    }
039
040    /**
041     * default constructor
042     */
043    public TimeInfo() {}
044
045    /**
046
047     * the start time
048     *
049     * @return start time
050     */
051    public String getStartTime() {
052        return startTime;
053    }
054
055    /**
056     * set the start time
057     *
058     * @param startTime - the start time
059     */
060    public void setStartTime(String startTime) {
061        this.startTime = startTime;
062    }
063
064    /**
065     * get am or pm value
066     *
067     * @return  am or pm value
068     */
069    public String getStartTimeAmPm() {
070        return startTimeAmPm;
071    }
072
073    /**
074     *  get am or pm value
075     *
076     * @param startTimeAmPm - am or pm value
077     */
078    public void setStartTimeAmPm(String startTimeAmPm) {
079        this.startTimeAmPm = startTimeAmPm;
080    }
081
082    /**
083     * get all day value
084     *
085     * @return all day value
086     */
087    public boolean isAllDay() {
088        return allDay;
089    }
090
091    /**
092     * set all day value
093     *
094     * @param allDay -  all day value
095     */
096    public void setAllDay(boolean allDay) {
097        this.allDay = allDay;
098    }
099}