Coverage Report - org.kuali.student.r2.core.exemption.dto.ExemptionInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ExemptionInfo
0%
0/54
0%
0/8
1.167
 
 1  
 /*
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the Educational Community
 3  
  * License, Version 2.0 (the "License"); you may not use this file except in
 4  
  * compliance with the License. You may obtain a copy of the License at
 5  
  * http://www.osedu.org/licenses/ECL-2.0 Unless required by applicable law or
 6  
  * agreed to in writing, software distributed under the License is distributed
 7  
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 8  
  * express or implied. See the License for the specific language governing
 9  
  * permissions and limitations under the License.
 10  
  */
 11  
 package org.kuali.student.r2.core.exemption.dto;
 12  
 
 13  
 import java.io.Serializable;
 14  
 import java.util.Date;
 15  
 import java.util.List;
 16  
 
 17  
 import javax.xml.bind.annotation.XmlAccessType;
 18  
 import javax.xml.bind.annotation.XmlAccessorType;
 19  
 import javax.xml.bind.annotation.XmlAnyElement;
 20  
 import javax.xml.bind.annotation.XmlElement;
 21  
 import javax.xml.bind.annotation.XmlType;
 22  
 
 23  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 24  
 import org.kuali.student.r2.core.exemption.infc.Exemption;
 25  
 
 26  
 import org.w3c.dom.Element;
 27  
 
 28  0
 @XmlAccessorType(XmlAccessType.FIELD)
 29  
 @XmlType(name = "ExemptionInfo", propOrder = {"id", "typeKey", "stateKey", 
 30  
                 "name", "descr", "exemptionRequestId", "processKey", "checkKey",
 31  
                 "personId", "effectiveDate", "expirationDate", 
 32  
                 "useLimit", "useCount", "dateOverride", 
 33  
                 "milestoneOverride", "learningResultOverride", 
 34  
                 "meta", "attributes", "_futureElements"})
 35  
 
 36  
 public class ExemptionInfo 
 37  
     extends IdEntityInfo 
 38  
     implements Exemption, Serializable {
 39  
 
 40  
     private static final long serialVersionUID = 1L;
 41  
 
 42  
     @XmlElement
 43  
     private String exemptionRequestId;
 44  
     
 45  
     @XmlElement
 46  
     private String processKey;
 47  
     
 48  
     @XmlElement
 49  
     private String checkKey;
 50  
     @XmlElement
 51  
     private String personId;
 52  
 
 53  
     @XmlElement
 54  
     private Date effectiveDate;
 55  
 
 56  
     @XmlElement
 57  
     private Date expirationDate;
 58  
 
 59  
     @XmlElement
 60  
     private Integer useLimit;
 61  
 
 62  
     @XmlElement
 63  
     private Integer useCount;
 64  
 
 65  
     @XmlElement
 66  
     private DateOverrideInfo dateOverride;
 67  
 
 68  
     @XmlElement
 69  
     private MilestoneOverrideInfo milestoneOverride;
 70  
 
 71  
     @XmlElement
 72  
     private LearningResultOverrideInfo learningResultOverride;
 73  
 
 74  
     @XmlAnyElement
 75  
     private List<Element> _futureElements;
 76  
 
 77  
     public ExemptionInfo() {
 78  0
         super();
 79  0
     }
 80  
 
 81  
     /**
 82  
      * Constructs a new ExemptionInfo from another Exemption.
 83  
      * 
 84  
      * @param exemption
 85  
      *            the Exemption to copy
 86  
      */
 87  
     public ExemptionInfo(Exemption exemption) {
 88  0
         super(exemption);
 89  
 
 90  0
         if (null != exemption) {
 91  0
             this.exemptionRequestId = exemption.getExemptionRequestId();
 92  0
             this.processKey = exemption.getProcessKey();
 93  0
             this.checkKey = exemption.getCheckKey();
 94  0
             this.personId = exemption.getPersonId();
 95  0
             this.effectiveDate = exemption.getEffectiveDate();
 96  0
             this.expirationDate = exemption.getExpirationDate();
 97  0
             this.useLimit = exemption.getUseLimit();
 98  0
             this.useCount = exemption.getUseCount();
 99  
 
 100  0
             if (exemption.getDateOverride() != null) {
 101  0
                 this.dateOverride = new DateOverrideInfo(exemption.getDateOverride());
 102  
             }
 103  
 
 104  0
             if (exemption.getMilestoneOverride() != null) {
 105  0
                 this.milestoneOverride = new MilestoneOverrideInfo(exemption.getMilestoneOverride());
 106  
             }
 107  
 
 108  0
             if (exemption.getLearningResultOverride() != null) {
 109  0
                 this.learningResultOverride = new LearningResultOverrideInfo(exemption.getLearningResultOverride());
 110  
             }
 111  
         }
 112  
 
 113  0
         _futureElements = null;
 114  0
     }
 115  
 
 116  
     @Override
 117  
     public String getExemptionRequestId() {
 118  0
         return exemptionRequestId;
 119  
     }
 120  
 
 121  
     public void setExemptionRequestId(String exemptionRequestId) {
 122  0
         this.exemptionRequestId = exemptionRequestId;
 123  0
     }
 124  
 
 125  
     
 126  
     @Override
 127  
     public String getProcessKey() {
 128  0
         return processKey;
 129  
     }
 130  
 
 131  
     public void setProcessKey(String processKey) {
 132  0
         this.processKey = processKey;
 133  0
     }
 134  
 
 135  
     @Override
 136  
     public String getCheckKey() {
 137  0
         return checkKey;
 138  
     }
 139  
 
 140  
     public void setCheckKey(String checkKey) {
 141  0
         this.checkKey = checkKey;
 142  0
     }
 143  
     
 144  
     
 145  
     @Override
 146  
     public String getPersonId() {
 147  0
         return personId;
 148  
     }
 149  
 
 150  
     public void setPersonId(String personId) {
 151  0
         this.personId = personId;
 152  0
     }
 153  
 
 154  
     @Override
 155  
     public Date getEffectiveDate() {
 156  0
         return effectiveDate;
 157  
     }
 158  
 
 159  
     public void setEffectiveDate(Date effectiveDate) {
 160  0
         this.effectiveDate = effectiveDate;
 161  0
     }
 162  
 
 163  
     @Override
 164  
     public Date getExpirationDate() {
 165  0
         return expirationDate;
 166  
     }
 167  
 
 168  
     public void setExpirationDate(Date expirationDate) {
 169  0
         this.expirationDate = expirationDate;
 170  0
     }
 171  
 
 172  
     @Override
 173  
     public Integer getUseLimit() {
 174  0
         return useLimit;
 175  
     }
 176  
 
 177  
     public void setUseLimit(Integer useLimit) {
 178  0
         this.useLimit = useLimit;
 179  0
     }
 180  
 
 181  
     @Override
 182  
     public Integer getUseCount() {
 183  0
         return useCount;
 184  
     }
 185  
 
 186  
     public void setUseCount(Integer useCount) {
 187  0
         this.useCount = useCount;
 188  0
     }
 189  
 
 190  
     @Override
 191  
     public DateOverrideInfo getDateOverride() {
 192  0
         return dateOverride;
 193  
     }
 194  
 
 195  
     public void setDateOverride(DateOverrideInfo dateOverrideInfo) {
 196  0
         this.dateOverride = new DateOverrideInfo(dateOverrideInfo);
 197  0
     }
 198  
 
 199  
     @Override
 200  
     public MilestoneOverrideInfo getMilestoneOverride() {
 201  0
         return milestoneOverride;
 202  
     }
 203  
 
 204  
     public void setMilestoneOverride(MilestoneOverrideInfo milestoneOverrideInfo) {
 205  0
         this.milestoneOverride = milestoneOverrideInfo;
 206  0
     }
 207  
 
 208  
     @Override
 209  
     public LearningResultOverrideInfo getLearningResultOverride() {
 210  0
         return learningResultOverride;
 211  
     }
 212  
 
 213  
     public void setLearningResultOverride(LearningResultOverrideInfo learningResultOverrideInfo) {
 214  0
         this.learningResultOverride = learningResultOverrideInfo;
 215  0
     }
 216  
 }