Coverage Report - org.kuali.student.core.academiccalendar.dto.EnrollmentDateGroupInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
EnrollmentDateGroupInfo
0%
0/34
N/A
1
EnrollmentDateGroupInfo$Builder
0%
0/46
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.core.academiccalendar.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.Date;
 20  
 
 21  
 import javax.xml.bind.annotation.XmlAccessType;
 22  
 import javax.xml.bind.annotation.XmlAccessorType;
 23  
 import javax.xml.bind.annotation.XmlAttribute;
 24  
 import javax.xml.bind.annotation.XmlElement;
 25  
 import javax.xml.bind.annotation.XmlType;
 26  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 27  
 
 28  
 import org.kuali.student.common.infc.ModelBuilder;
 29  
 import org.kuali.student.common.dto.KeyEntityInfo;
 30  
 import org.kuali.student.core.academiccalendar.infc.EnrollmentDateGroupInfc;
 31  
 
 32  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 33  
 
 34  
 
 35  
 /**
 36  
  * A cluster of hardened dates pertinent to an academic term.
 37  
  *
 38  
  * @Author tom
 39  
  * @Since Tue Apr 05 14:22:34 EDT 2011
 40  
  */ 
 41  
 
 42  
 @XmlAccessorType(XmlAccessType.FIELD)
 43  
 public class EnrollmentDateGroupInfo implements EnrollmentDateGroupInfc, Serializable {
 44  
 
 45  
     private static final long serialVersionUID = 1L;
 46  
 
 47  
     @XmlElement
 48  
     private final Date registrationStart;
 49  
 
 50  
     @XmlElement
 51  
     private final Date registrationEnd;
 52  
 
 53  
     @XmlElement
 54  
     private final Date classStart;
 55  
 
 56  
     @XmlElement
 57  
     private final Date classEnd;
 58  
 
 59  
     @XmlElement
 60  
     private final Date addDate;
 61  
 
 62  
     @XmlElement
 63  
     private final Date dropDate;
 64  
 
 65  
     @XmlElement
 66  
     private final Date finalsStart;
 67  
 
 68  
     @XmlElement
 69  
     private final Date finalsEnd;
 70  
 
 71  
     @XmlElement
 72  
     private final Date gradingStart;
 73  
 
 74  
     @XmlElement
 75  
     private final Date gradingEnd;
 76  
 
 77  0
     private EnrollmentDateGroupInfo() {
 78  0
         registrationStart = null;
 79  0
         registrationEnd = null;
 80  0
         classStart = null;
 81  0
         classEnd = null;
 82  0
         addDate = null;
 83  0
         dropDate = null;
 84  0
         finalsStart = null;
 85  0
         finalsEnd = null;
 86  0
         gradingStart = null;
 87  0
         gradingEnd = null;
 88  0
     }
 89  
 
 90  
     /**
 91  
      * Constructs a new EnrollmentDateGroupInfo from another
 92  
      * EnrollmentDateGroupInfo.
 93  
      *
 94  
      * @param dateGroup the EnrollmentDateGroup to copy
 95  
      */
 96  0
     public EnrollmentDateGroupInfo(EnrollmentDateGroupInfc dateGroup) {
 97  0
         this.registrationStart = dateGroup.getRegistrationStartDate();
 98  0
         this.registrationEnd = dateGroup.getRegistrationEndDate();
 99  0
         this.classStart = dateGroup.getClassStartDate();
 100  0
         this.classEnd = dateGroup.getClassEndDate();
 101  0
         this.addDate = dateGroup.getAddDate();
 102  0
         this.dropDate = dateGroup.getDropDate();
 103  0
         this.finalsStart = dateGroup.getFinalExamStartDate();
 104  0
         this.finalsEnd = dateGroup.getFinalExamEndDate();
 105  0
         this.gradingStart = dateGroup.getGradingStartDate();
 106  0
         this.gradingEnd = dateGroup.getGradingEndDate();
 107  0
     }
 108  
 
 109  
 
 110  
     /**
 111  
      * Name: RegistrationStart
 112  
      * Gets the registration start date.
 113  
      *
 114  
      * @return the registration start date
 115  
      */
 116  
     public Date getRegistrationStartDate() {
 117  0
         return registrationStart;
 118  
     }
 119  
 
 120  
     /**
 121  
      * Name: RegistrationEnd
 122  
      * Gets the registration end date.
 123  
      *
 124  
      * @return the registration end date
 125  
      */
 126  
     public Date getRegistrationEndDate() {
 127  0
         return registrationEnd;
 128  
     }
 129  
 
 130  
     /**
 131  
      * Name: ClassStart
 132  
      * Gets the class start date.
 133  
      *
 134  
      * @return the class start date
 135  
      */
 136  
     @Override
 137  
     public Date getClassStartDate() {
 138  0
         return classStart;
 139  
     }
 140  
 
 141  
     /**
 142  
      * Name: ClassEnd
 143  
      * Gets the class end date.
 144  
      *
 145  
      * @return the class end date
 146  
      */
 147  
     @Override
 148  
     public Date getClassEndDate() {
 149  0
         return classEnd;
 150  
     }
 151  
 
 152  
     /**
 153  
      * Name: AddDate
 154  
      * Gets the add date.
 155  
      *
 156  
      * @return add date
 157  
      */
 158  
     @Override
 159  
     public Date getAddDate() {
 160  0
         return addDate;
 161  
     }
 162  
 
 163  
     /**
 164  
      * Name: DropDate
 165  
      * Gets the drop date.
 166  
      *
 167  
      * @return drop date
 168  
      */
 169  
     @Override
 170  
     public Date getDropDate() {
 171  0
         return dropDate;
 172  
     }
 173  
 
 174  
     /**
 175  
      * Name: FinalExamStart
 176  
      * Gets the final exam start date.
 177  
      *
 178  
      * @return the final exam start date
 179  
      */
 180  
     @Override
 181  
     public Date getFinalExamStartDate() {
 182  0
         return finalsStart;
 183  
     }
 184  
 
 185  
     /**
 186  
      * Name: FinalExamEnd
 187  
      * Gets the final exam end date.
 188  
      *
 189  
      * @return the final exam end date
 190  
      */
 191  
     @Override
 192  
     public Date getFinalExamEndDate() {
 193  0
         return finalsEnd;
 194  
     }
 195  
 
 196  
     /**
 197  
      * Name: GradingStart
 198  
      * Gets the grading period start date.
 199  
      *
 200  
      * @return the grading start date
 201  
      */
 202  
     @Override
 203  
     public Date getGradingStartDate() {
 204  0
         return gradingStart;
 205  
     }
 206  
 
 207  
     /**
 208  
      * Name: GradingEnd
 209  
      * Gets the grading period end date.
 210  
      *
 211  
      * @return the grading end date
 212  
      */
 213  
     @Override
 214  
     public Date getGradingEndDate() {
 215  0
         return gradingEnd;
 216  
     }
 217  
 
 218  
     /**
 219  
      * The builder class for this DateInfo.
 220  
      */
 221  0
     public static class Builder implements ModelBuilder<EnrollmentDateGroupInfo>, EnrollmentDateGroupInfc {
 222  
 
 223  
         private Date registrationStart;
 224  
         private Date registrationEnd;
 225  
         private Date classStart;
 226  
         private Date classEnd;
 227  
         private Date addDate;
 228  
         private Date dropDate;
 229  
         private Date finalsStart;
 230  
         private Date finalsEnd;
 231  
         private Date gradingStart;
 232  
         private Date gradingEnd;
 233  
 
 234  
         /**
 235  
          * Constructs a new builder.
 236  
          */
 237  0
         public Builder() {
 238  0
         }
 239  
 
 240  
         /**
 241  
          *  Constructs a new builder initialized from another
 242  
          *  EnrollmentDateGroup.
 243  
          */
 244  0
         public Builder(EnrollmentDateGroupInfc dateGroupInfo) {
 245  0
             registrationStart = dateGroupInfo.getRegistrationStartDate();
 246  0
             registrationEnd = dateGroupInfo.getRegistrationStartDate();
 247  0
             classStart =  dateGroupInfo.getClassStartDate();
 248  0
             classEnd =  dateGroupInfo.getClassStartDate();
 249  0
             addDate =  dateGroupInfo.getAddDate();
 250  0
             dropDate =  dateGroupInfo.getDropDate();
 251  0
             finalsStart =  dateGroupInfo.getFinalExamStartDate();
 252  0
             finalsEnd =  dateGroupInfo.getFinalExamStartDate();
 253  0
             gradingStart =  dateGroupInfo.getGradingStartDate();
 254  0
             gradingEnd =  dateGroupInfo.getGradingStartDate();
 255  0
         }
 256  
 
 257  
         /**
 258  
          * Builds the EnrollmentDateGroup.
 259  
          *
 260  
          * @return a new EnrollmentDateGroup
 261  
          */
 262  
         public EnrollmentDateGroupInfo build() {
 263  0
             return new EnrollmentDateGroupInfo(this);
 264  
         }
 265  
 
 266  
 
 267  
         /**
 268  
          * Name: RegistrationStart
 269  
          * Gets the registration start date.
 270  
          *
 271  
          * @return the registration start date
 272  
          */
 273  
         @Override
 274  
         public Date getRegistrationStartDate() {
 275  0
             return registrationStart;
 276  
         }
 277  
 
 278  
         public void setRegistrationStartDate(Date date) {
 279  0
             this.registrationStart = date;
 280  0
         }
 281  
 
 282  
         /**
 283  
          * Name: RegistrationEnd
 284  
          * Gets the registration end date.
 285  
          *
 286  
          * @return the registration end date
 287  
          */
 288  
         @Override
 289  
         public Date getRegistrationEndDate() {
 290  0
             return registrationEnd;
 291  
         }
 292  
 
 293  
         public void setRegistrationEndDate(Date date) {
 294  0
             this.registrationEnd = date;
 295  0
         }
 296  
 
 297  
         /**
 298  
          * Name: ClassStart
 299  
          * Gets the class start date.
 300  
          *
 301  
          * @return the class start date
 302  
          */
 303  
         @Override
 304  
         public Date getClassStartDate() {
 305  0
             return classStart;
 306  
         }
 307  
 
 308  
         public void setClassStartDate(Date date) {
 309  0
             this.classStart = date;
 310  0
         }
 311  
 
 312  
         /**
 313  
          * Name: ClassEnd
 314  
          * Gets the class end date.
 315  
          *
 316  
          * @return the class end date
 317  
          */
 318  
         @Override
 319  
         public Date getClassEndDate() {
 320  0
             return classEnd;
 321  
         }
 322  
 
 323  
         public void setClassEndDate(Date date) {
 324  0
             this.classEnd = date;
 325  0
         }
 326  
 
 327  
         /**
 328  
          * Name: AddDate
 329  
          * Gets the add date.
 330  
          *
 331  
          * @return add date
 332  
          */
 333  
         @Override
 334  
         public Date getAddDate() {
 335  0
             return addDate;
 336  
         }
 337  
 
 338  
         public void setAddDate(Date date) {
 339  0
             this.addDate = date;
 340  0
         }
 341  
         
 342  
         /**
 343  
          * Name: DropDate
 344  
          * Gets the drop date.
 345  
          *
 346  
          * @return drop date
 347  
          */
 348  
         @Override
 349  
         public Date getDropDate() {
 350  0
             return dropDate;
 351  
         }
 352  
         
 353  
         public void setDropDate(Date date) {
 354  0
             this.dropDate = date;
 355  0
         }
 356  
 
 357  
         /**
 358  
          * Name: FinalExamStart
 359  
          * Gets the final exam start date.
 360  
          *
 361  
          * @return the final exam start date
 362  
          */
 363  
         @Override
 364  
         public Date getFinalExamStartDate() {
 365  0
             return finalsStart;
 366  
         }
 367  
 
 368  
         public void setFinalExamStartDate(Date date) {
 369  0
             this.finalsStart = date;
 370  0
         }
 371  
 
 372  
         /**
 373  
          * Name: FinalExamEnd
 374  
          * Gets the final exam end date.
 375  
          *
 376  
          * @return the final exam end date
 377  
          */
 378  
         @Override
 379  
         public Date getFinalExamEndDate() {
 380  0
             return finalsEnd;
 381  
         }
 382  
 
 383  
         public void setFinalExamEndDate(Date date) {
 384  0
             this.finalsEnd = date;
 385  0
         }
 386  
 
 387  
         /**
 388  
          * Name: GradingStart
 389  
          * Gets grading period start date.
 390  
          *
 391  
          * @return the grading period start date
 392  
          */
 393  
         @Override
 394  
         public Date getGradingStartDate() {
 395  0
             return gradingStart;
 396  
         }
 397  
 
 398  
         public void setGradingStartDate(Date date) {
 399  0
             this.gradingStart = date;
 400  0
         }
 401  
 
 402  
         /**
 403  
          * Name: GradingEnd
 404  
          * Gets the grading period end date.
 405  
          *
 406  
          * @return the grading end date
 407  
          */
 408  
         @Override
 409  
         public Date getGradingEndDate() {
 410  0
             return gradingEnd;
 411  
         }
 412  
 
 413  
         public void setGradingEndDate(Date date) {
 414  0
             this.gradingEnd = date;
 415  0
         }
 416  
     }
 417  
 }