Coverage Report - org.kuali.student.enrollment.acal.dto.RegistrationDateGroupInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
RegistrationDateGroupInfo
0%
0/48
N/A
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.acal.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.Date;
 20  
 import java.util.List;
 21  
 
 22  
 import javax.xml.bind.annotation.XmlAccessType;
 23  
 import javax.xml.bind.annotation.XmlAccessorType;
 24  
 import javax.xml.bind.annotation.XmlAnyElement;
 25  
 import javax.xml.bind.annotation.XmlElement;
 26  
 import javax.xml.bind.annotation.XmlType;
 27  
 
 28  
 import org.kuali.student.enrollment.acal.infc.RegistrationDateGroup;
 29  
 import org.kuali.student.r2.common.dto.DateRangeInfo;
 30  
 import org.w3c.dom.Element;
 31  
 
 32  0
 @XmlAccessorType(XmlAccessType.FIELD)
 33  
 @XmlType(name = "RegistrationDateGroupInfo", propOrder = {
 34  
                 "termKey", "registrationDateRange",
 35  
                 "classDateRange", "addDate", "dropDate", "finalExamDateRange",
 36  
                 "gradingDateRange", "registrationDateDerivationGroup", "_futureElements" })
 37  
 public class RegistrationDateGroupInfo implements RegistrationDateGroup,
 38  
                 Serializable {
 39  
 
 40  
         private static final long serialVersionUID = 1L;
 41  
 
 42  
         @XmlElement
 43  
         private RegistrationDateDerivationGroupInfo registrationDateDerivationGroup;
 44  
 
 45  
         @XmlElement
 46  
         private String termKey;
 47  
 
 48  
         @XmlElement
 49  
         private DateRangeInfo registrationDateRange;
 50  
 
 51  
         @XmlElement
 52  
         private DateRangeInfo classDateRange;
 53  
 
 54  
         @XmlElement
 55  
         private Date addDate;
 56  
 
 57  
         @XmlElement
 58  
         private Date dropDate;
 59  
 
 60  
         @XmlElement
 61  
         private DateRangeInfo finalExamDateRange;
 62  
 
 63  
         @XmlElement
 64  
         private DateRangeInfo gradingDateRange;
 65  
 
 66  
         @XmlAnyElement
 67  
         private List<Element> _futureElements;
 68  
 
 69  
         public RegistrationDateGroupInfo getInstance(RegistrationDateGroup dateGroup) {
 70  0
                 return new RegistrationDateGroupInfo(dateGroup);
 71  
         }
 72  
 
 73  0
         public RegistrationDateGroupInfo() {
 74  0
                 registrationDateDerivationGroup = null;
 75  0
                 termKey = null;
 76  0
                 registrationDateRange = null;
 77  0
                 classDateRange = null;
 78  0
                 addDate = null;
 79  0
                 dropDate = null;
 80  0
                 finalExamDateRange = null;
 81  0
                 gradingDateRange = null;
 82  0
                 _futureElements = null;
 83  0
         }
 84  
 
 85  
         /**
 86  
          * Constructs a new RegistrationDateGroupInfo from another
 87  
          * RegistrationDateGroupInfo.
 88  
          * 
 89  
          * @param dateGroup
 90  
          *            the RegistrationDateGroup to copy
 91  
          */
 92  0
         public RegistrationDateGroupInfo(RegistrationDateGroup dateGroup) {
 93  
 
 94  0
                 this.registrationDateDerivationGroup = new RegistrationDateDerivationGroupInfo(
 95  
                                 dateGroup.getRegistrationDateDerivationGroup());
 96  0
                 this.termKey = dateGroup.getTermKey();
 97  0
                 this.registrationDateRange = new DateRangeInfo(
 98  
                                 dateGroup.getRegistrationDateRange());
 99  0
                 this.classDateRange = new DateRangeInfo(dateGroup.getClassDateRange());
 100  0
                 this.addDate = dateGroup.getAddDate();
 101  0
                 this.dropDate = dateGroup.getDropDate();
 102  0
                 this.finalExamDateRange = new DateRangeInfo(
 103  
                                 dateGroup.getFinalExamDateRange());
 104  0
                 this.gradingDateRange = new DateRangeInfo(
 105  
                                 dateGroup.getGradingDateRange());
 106  0
                 _futureElements = null;
 107  0
         }
 108  
 
 109  
         @Override
 110  
         public RegistrationDateDerivationGroupInfo getRegistrationDateDerivationGroup() {
 111  0
                 return registrationDateDerivationGroup;
 112  
         }
 113  
 
 114  
         public void setRegistrationDateDerivationGroup(
 115  
                         RegistrationDateDerivationGroupInfo registrationDateDerivationGroup) {
 116  0
                 this.registrationDateDerivationGroup = registrationDateDerivationGroup;
 117  0
         }
 118  
 
 119  
         @Override
 120  
         public String getTermKey() {
 121  0
                 return termKey;
 122  
         }
 123  
 
 124  
         public void setTermKey(String termKey) {
 125  0
                 this.termKey = termKey;
 126  0
         }
 127  
 
 128  
         @Override
 129  
         public DateRangeInfo getRegistrationDateRange() {
 130  0
                 return registrationDateRange;
 131  
         }
 132  
 
 133  
         public void setRegistrationDateRange(DateRangeInfo registrationDateRange) {
 134  0
                 this.registrationDateRange = registrationDateRange;
 135  0
         }
 136  
 
 137  
         @Override
 138  
         public DateRangeInfo getClassDateRange() {
 139  0
                 return classDateRange;
 140  
         }
 141  
 
 142  
         public void setClassDateRange(DateRangeInfo classDateRange) {
 143  0
                 this.classDateRange = classDateRange;
 144  0
         }
 145  
 
 146  
         @Override
 147  
         public Date getAddDate() {
 148  0
                 return addDate;
 149  
         }
 150  
 
 151  
         public void setAddDate(Date addDate) {
 152  0
                 this.addDate = addDate;
 153  0
         }
 154  
 
 155  
         @Override
 156  
         public Date getDropDate() {
 157  0
                 return dropDate;
 158  
         }
 159  
 
 160  
         public void setDropDate(Date dropDate) {
 161  0
                 this.dropDate = dropDate;
 162  0
         }
 163  
 
 164  
         @Override
 165  
         public DateRangeInfo getFinalExamDateRange() {
 166  0
                 return finalExamDateRange;
 167  
         }
 168  
 
 169  
         public void setFinalExamDateRange(DateRangeInfo finalExamDateRange) {
 170  0
                 this.finalExamDateRange = finalExamDateRange;
 171  0
         }
 172  
 
 173  
         @Override
 174  
         public DateRangeInfo getGradingDateRange() {
 175  0
                 return gradingDateRange;
 176  
         }
 177  
 
 178  
         public void setGradingDateRange(DateRangeInfo gradingDateRange) {
 179  0
                 this.gradingDateRange = gradingDateRange;
 180  0
         }
 181  
 }