Coverage Report - org.kuali.student.enrollment.exemption.dto.DateOverrideInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
DateOverrideInfo
0%
0/22
0%
0/2
1.125
 
 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  
 package org.kuali.student.enrollment.exemption.dto;
 16  
 
 17  
 import java.io.Serializable;
 18  
 import java.util.Date;
 19  
 import java.util.List;
 20  
 
 21  
 import javax.xml.bind.annotation.XmlAccessType;
 22  
 import javax.xml.bind.annotation.XmlAccessorType;
 23  
 import javax.xml.bind.annotation.XmlAnyElement;
 24  
 import javax.xml.bind.annotation.XmlElement;
 25  
 import javax.xml.bind.annotation.XmlType;
 26  
 
 27  
 import org.kuali.student.enrollment.exemption.infc.DateOverride;
 28  
 import org.w3c.dom.Element;
 29  
 
 30  
 @XmlAccessorType(XmlAccessType.FIELD)
 31  
 @XmlType(name = "DateOverrideInfo", propOrder = { "milestoneKey", "effectiveStartDate", 
 32  
                  "effectiveEndDate", "_futureElements" })
 33  
 
 34  
 public class DateOverrideInfo implements DateOverride, Serializable {
 35  
         private static final long serialVersionUID = 1L;
 36  
 
 37  
         @XmlElement
 38  
         private String milestoneKey;
 39  
 
 40  
         @XmlElement
 41  
         private Date effectiveStartDate;
 42  
 
 43  
         @XmlElement
 44  
         private Date effectiveEndDate;
 45  
 
 46  
         @XmlAnyElement
 47  
         private List<Element> _futureElements;
 48  
 
 49  
         public DateOverrideInfo() {
 50  0
                 super();
 51  0
                 milestoneKey = null;
 52  0
                 effectiveStartDate = null;
 53  0
                 effectiveEndDate = null;
 54  0
                 _futureElements = null;
 55  0
         }
 56  
 
 57  
         /**
 58  
          * Constructs a new DateOverrideInfo from another DateOverride.
 59  
          * 
 60  
          * @param exemption the DateOverride to copy
 61  
          */
 62  
         public DateOverrideInfo(DateOverride dateOverride) {
 63  0
                 super();
 64  0
                 if (null != dateOverride) {
 65  0
                     this.milestoneKey = dateOverride.getMilestoneKey();
 66  0
                     this.effectiveStartDate = dateOverride.getEffectiveStartDate();
 67  0
                     this.effectiveEndDate = dateOverride.getEffectiveEndDate();
 68  
                 }
 69  
 
 70  0
                 _futureElements = null;
 71  0
         }
 72  
 
 73  
         @Override
 74  
         public String getMilestoneKey() {
 75  0
             return milestoneKey;
 76  
         }
 77  
 
 78  
         public void setMilestoneKey(String milestoneKey) {
 79  0
             this.milestoneKey = milestoneKey;
 80  0
         }
 81  
 
 82  
         @Override
 83  
         public Date getEffectiveStartDate() {
 84  0
             return effectiveStartDate;
 85  
         }
 86  
 
 87  
         public void setEffectiveStartDate(Date effectiveStartDate) {
 88  0
             this.effectiveStartDate = effectiveStartDate;
 89  0
         }
 90  
 
 91  
         @Override
 92  
         public Date getEffectiveEndDate() {
 93  0
             return effectiveEndDate;
 94  
         }
 95  
 
 96  
         public void setEffectiveEndDate(Date effectiveEndDate) {
 97  0
             this.effectiveEndDate = effectiveEndDate;
 98  0
         }
 99  
 }