| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| KeyDate |
|
| 1.0;1 |
| 1 | /** | |
| 2 | * Copyright 2010 The Kuali Foundation Licensed under the | |
| 3 | * Educational Community License, Version 2.0 (the "License"); you may | |
| 4 | * not use this file except in compliance with the License. You may | |
| 5 | * obtain a copy of the License at | |
| 6 | * | |
| 7 | * http://www.osedu.org/licenses/ECL-2.0 | |
| 8 | * | |
| 9 | * Unless required by applicable law or agreed to in writing, | |
| 10 | * software distributed under the License is distributed on an "AS IS" | |
| 11 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | |
| 12 | * or implied. See the License for the specific language governing | |
| 13 | * permissions and limitations under the License. | |
| 14 | */ | |
| 15 | ||
| 16 | package org.kuali.student.enrollment.classII.academiccalendar.infc; | |
| 17 | ||
| 18 | import java.util.Date; | |
| 19 | ||
| 20 | import org.kuali.student.r2.common.infc.KeyEntity; | |
| 21 | ||
| 22 | ||
| 23 | /** | |
| 24 | * Information about a key date. A key date may represent a single | |
| 25 | * point in time or a range depending on the value of isDateRange(). | |
| 26 | * | |
| 27 | * @Author tom | |
| 28 | * @Since Tue Apr 05 14:22:34 EDT 2011 | |
| 29 | */ | |
| 30 | ||
| 31 | public interface KeyDate extends KeyEntity { | |
| 32 | ||
| 33 | /** | |
| 34 | * Name: Is All Day | |
| 35 | * Tests if this key date is an all day event. An all-day event | |
| 36 | * does not have a meaningful time component in the date. | |
| 37 | * | |
| 38 | * @return true if this is an all-day event, false otherwise | |
| 39 | */ | |
| 40 | public Boolean getIsAllDay(); | |
| 41 | ||
| 42 | /** | |
| 43 | * Name: Is Date Range | |
| 44 | * Tests if this key date has a date range. | |
| 45 | * | |
| 46 | * @return true if the end date is different than the start date, | |
| 47 | * false if the start end end date ar ethe same | |
| 48 | */ | |
| 49 | public Boolean getIsDateRange(); | |
| 50 | ||
| 51 | /** | |
| 52 | * Name: Start Date | |
| 53 | * The start date and time of the key date. | |
| 54 | * | |
| 55 | * @return the key date start date | |
| 56 | */ | |
| 57 | public Date getStartDate(); | |
| 58 | ||
| 59 | /** | |
| 60 | * Name: End Date | |
| 61 | * The end date and time of the key date. The end | |
| 62 | * date must be equal to or greater that the start. | |
| 63 | * | |
| 64 | * @return the key date end date | |
| 65 | */ | |
| 66 | public Date getEndDate(); | |
| 67 | } |