View Javadoc

1   /**
2    * Copyright 2005-2014 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  package edu.sampleu.demo.kitchensink;
17  
18  /**
19   * used to test spring expressions in the addline of a collection group - based on a KS class
20   *
21   * @author Kuali Rice Team (rice.collab@kuali.org)
22   */
23  public class TimeInfo {
24      private String startTime;
25      private String startTimeAmPm;
26      private boolean allDay;
27  
28      /**
29       * constructor
30       * @param startTime - the start time
31       * @param startTimeAmPm - whether the start time is PM/AM
32       * @param allDay - whether the event is all day
33       */
34      public TimeInfo(String startTime, String startTimeAmPm, boolean allDay) {
35          this.startTime = startTime;
36          this.startTimeAmPm = startTimeAmPm;
37          this.allDay = allDay;
38      }
39  
40      /**
41       * default constructor
42       */
43      public TimeInfo() {}
44  
45      /**
46  
47       * the start time
48       *
49       * @return start time
50       */
51      public String getStartTime() {
52          return startTime;
53      }
54  
55      /**
56       * set the start time
57       *
58       * @param startTime - the start time
59       */
60      public void setStartTime(String startTime) {
61          this.startTime = startTime;
62      }
63  
64      /**
65       * get am or pm value
66       *
67       * @return  am or pm value
68       */
69      public String getStartTimeAmPm() {
70          return startTimeAmPm;
71      }
72  
73      /**
74       *  get am or pm value
75       *
76       * @param startTimeAmPm - am or pm value
77       */
78      public void setStartTimeAmPm(String startTimeAmPm) {
79          this.startTimeAmPm = startTimeAmPm;
80      }
81  
82      /**
83       * get all day value
84       *
85       * @return all day value
86       */
87      public boolean isAllDay() {
88          return allDay;
89      }
90  
91      /**
92       * set all day value
93       *
94       * @param allDay -  all day value
95       */
96      public void setAllDay(boolean allDay) {
97          this.allDay = allDay;
98      }
99  }