Coverage Report - org.kuali.student.enrollment.classII.acal.dto.RegistrationDateGroupInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
RegistrationDateGroupInfo
0%
0/31
N/A
1
RegistrationDateGroupInfo$Builder
0%
0/38
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.classII.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.classII.acal.infc.RegistrationDateGroup;
 29  
 import org.kuali.student.r2.common.dto.DateRangeInfo;
 30  
 import org.kuali.student.r2.common.infc.ModelBuilder;
 31  
 import org.w3c.dom.Element;
 32  
 
 33  
 
 34  0
 @XmlAccessorType(XmlAccessType.FIELD)
 35  
 @XmlType(name = "RegistrationDateGroupInfo", propOrder = {"registrationDateDerivationGroup", "termKey", "registrationDateRange", "classDateRange", "addDate", "dropDate", "finalExamDateRange", "gradingDateRange", "_futureElements"})
 36  
 
 37  
 public class RegistrationDateGroupInfo implements RegistrationDateGroup, Serializable {
 38  
 
 39  
     private static final long serialVersionUID = 1L;
 40  
 
 41  
     @XmlElement
 42  
     private final RegistrationDateDerivationGroupInfo registrationDateDerivationGroup;
 43  
 
 44  
     @XmlElement
 45  
     private final String termKey;
 46  
 
 47  
     @XmlElement
 48  
     private final DateRangeInfo registrationDateRange;
 49  
 
 50  
     @XmlElement
 51  
     private final DateRangeInfo classDateRange;
 52  
 
 53  
     @XmlElement
 54  
     private final Date addDate;
 55  
 
 56  
     @XmlElement
 57  
     private final Date dropDate;
 58  
 
 59  
     @XmlElement
 60  
     private final DateRangeInfo finalExamDateRange;
 61  
 
 62  
     @XmlElement
 63  
     private final DateRangeInfo gradingDateRange;
 64  
 
 65  
     @XmlAnyElement
 66  
     private final List<Element> _futureElements;  
 67  
 
 68  0
     private RegistrationDateGroupInfo() {
 69  0
         registrationDateDerivationGroup = null;
 70  0
         termKey = null;
 71  0
         registrationDateRange = null;
 72  0
         classDateRange = null;
 73  0
         addDate = null;
 74  0
         dropDate = null;
 75  0
         finalExamDateRange = null;
 76  0
         gradingDateRange = null;
 77  0
         _futureElements = null;
 78  0
     }
 79  
 
 80  
     /**
 81  
      * Constructs a new RegistrationDateGroupInfo from another
 82  
      * RegistrationDateGroupInfo.
 83  
      *
 84  
      * @param dateGroup the RegistrationDateGroup to copy
 85  
      */
 86  0
     public RegistrationDateGroupInfo(RegistrationDateGroup dateGroup) {
 87  0
         this.registrationDateDerivationGroup = new RegistrationDateDerivationGroupInfo(dateGroup.getRegistrationDateDerivationGroup());
 88  0
         this.termKey = dateGroup.getTermKey();
 89  0
         this.registrationDateRange = new DateRangeInfo(dateGroup.getRegistrationDateRange());
 90  0
         this.classDateRange = new DateRangeInfo(dateGroup.getClassDateRange());
 91  0
         this.addDate = dateGroup.getAddDate();
 92  0
         this.dropDate = dateGroup.getDropDate();
 93  0
         this.finalExamDateRange = new DateRangeInfo(dateGroup.getFinalExamDateRange());
 94  0
         this.gradingDateRange = new DateRangeInfo(dateGroup.getGradingDateRange());
 95  0
         _futureElements = null;
 96  0
     }
 97  
 
 98  
     @Override
 99  
     public RegistrationDateDerivationGroupInfo getRegistrationDateDerivationGroup() {
 100  0
         return registrationDateDerivationGroup;
 101  
     }
 102  
 
 103  
     @Override
 104  
     public String getTermKey() {
 105  0
         return termKey;
 106  
     }
 107  
 
 108  
     @Override
 109  
     public DateRangeInfo getRegistrationDateRange() {
 110  0
         return registrationDateRange;
 111  
     }
 112  
 
 113  
     @Override
 114  
     public DateRangeInfo getClassDateRange() {
 115  0
         return classDateRange;
 116  
     }
 117  
 
 118  
     @Override
 119  
     public Date getAddDate() {
 120  0
         return addDate;
 121  
     }
 122  
 
 123  
     @Override
 124  
     public Date getDropDate() {
 125  0
         return dropDate;
 126  
     }
 127  
 
 128  
     @Override
 129  
     public DateRangeInfo getFinalExamDateRange() {
 130  0
         return finalExamDateRange;
 131  
     }
 132  
 
 133  
     @Override
 134  
     public DateRangeInfo getGradingDateRange() {
 135  0
         return gradingDateRange;
 136  
     }
 137  
 
 138  
     /**
 139  
      * The builder class for this DateInfo.
 140  
      */
 141  0
     public static class Builder implements ModelBuilder<RegistrationDateGroupInfo>, RegistrationDateGroup {
 142  
         private RegistrationDateDerivationGroupInfo registrationDateDerivationGroup;
 143  
         private String termKey;
 144  
         private DateRangeInfo registrationDateRange;
 145  
         private DateRangeInfo classDateRange;
 146  
         private Date addDate;
 147  
         private Date dropDate;
 148  
         private DateRangeInfo finalExamDateRange;
 149  
         private DateRangeInfo gradingDateRange;
 150  
 
 151  
         /**
 152  
          * Constructs a new builder.
 153  
          */
 154  0
         public Builder() {
 155  0
         }
 156  
 
 157  
         /**
 158  
          *  Constructs a new builder initialized from another
 159  
          *  RegistrationDateGroup.
 160  
          */
 161  0
         public Builder(RegistrationDateGroup dateGroup) {
 162  0
             registrationDateDerivationGroup = new RegistrationDateDerivationGroupInfo(dateGroup.getRegistrationDateDerivationGroup());
 163  0
             termKey = dateGroup.getTermKey();
 164  0
             registrationDateRange = new DateRangeInfo(dateGroup.getRegistrationDateRange());
 165  0
             classDateRange =  new DateRangeInfo(dateGroup.getClassDateRange());
 166  0
             addDate =  dateGroup.getAddDate();
 167  0
             dropDate =  dateGroup.getDropDate();
 168  0
             finalExamDateRange =  new DateRangeInfo(dateGroup.getFinalExamDateRange());
 169  0
             gradingDateRange =  new DateRangeInfo(dateGroup.getGradingDateRange());
 170  0
         }
 171  
 
 172  
         /**
 173  
          * Builds the RegistrationDateGroup.
 174  
          *
 175  
          * @return a new RegistrationDateGroup
 176  
          */
 177  
         public RegistrationDateGroupInfo build() {
 178  0
             return new RegistrationDateGroupInfo(this);
 179  
         }
 180  
 
 181  
         @Override
 182  
         public RegistrationDateDerivationGroupInfo getRegistrationDateDerivationGroup() {
 183  0
             return registrationDateDerivationGroup;
 184  
         }
 185  
 
 186  
         public void setRegistrationDateDerivationGroup(RegistrationDateDerivationGroupInfo derivationGroup) {
 187  0
             this.registrationDateDerivationGroup = registrationDateDerivationGroup;
 188  0
         }
 189  
 
 190  
         @Override
 191  
         public String getTermKey() {
 192  0
             return termKey;
 193  
         }
 194  
 
 195  
         public void setTermKey(String termKey) {
 196  0
             this.termKey = termKey;
 197  0
         }
 198  
 
 199  
         @Override
 200  
         public DateRangeInfo getRegistrationDateRange() {
 201  0
             return registrationDateRange;
 202  
         }
 203  
 
 204  
         public void setRegistrationDateRange(DateRangeInfo dateRange) {
 205  0
             this.registrationDateRange = dateRange;
 206  0
         }
 207  
 
 208  
         @Override
 209  
         public DateRangeInfo getClassDateRange() {
 210  0
             return classDateRange;
 211  
         }
 212  
 
 213  
         public void setClassDateRange(DateRangeInfo dateRange) {
 214  0
             this.classDateRange = dateRange;
 215  0
         }
 216  
 
 217  
         @Override
 218  
         public Date getAddDate() {
 219  0
             return addDate;
 220  
         }
 221  
 
 222  
         public void setAddDate(Date date) {
 223  0
             this.addDate = date;
 224  0
         }
 225  
 
 226  
         @Override
 227  
         public Date getDropDate() {
 228  0
             return dropDate;
 229  
         }
 230  
 
 231  
         public void setDropDate(Date date) {
 232  0
             this.dropDate = date;
 233  0
         }
 234  
 
 235  
         @Override
 236  
         public DateRangeInfo getFinalExamDateRange() {
 237  0
             return finalExamDateRange;
 238  
         }
 239  
 
 240  
         public void setFinalExamDateRange(DateRangeInfo dateRange) {
 241  0
             this.finalExamDateRange = dateRange;
 242  0
         }
 243  
 
 244  
         @Override
 245  
         public DateRangeInfo getGradingDateRange() {
 246  0
             return gradingDateRange;
 247  
         }
 248  
 
 249  
         public void setGradingDateRange(DateRangeInfo dateRange) {
 250  0
             this.gradingDateRange = dateRange;
 251  0
         }
 252  
     }
 253  
 }