Coverage Report - org.kuali.student.enrollment.exemption.dto.ExemptionInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ExemptionInfo
0%
0/84
0%
0/14
1.233
 
 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.enrollment.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.enrollment.exemption.infc.Exemption;
 24  
 import org.kuali.student.enrollment.exemption.infc.ExemptionRequest;
 25  
 import org.kuali.student.enrollment.exemption.infc.RestrictionOverride;
 26  
 import org.kuali.student.enrollment.exemption.infc.DateOverride;
 27  
 import org.kuali.student.enrollment.exemption.infc.MilestoneOverride;
 28  
 import org.kuali.student.enrollment.exemption.infc.StatementOverride;
 29  
 import org.kuali.student.enrollment.exemption.infc.HoldOverride;
 30  
 import org.kuali.student.enrollment.exemption.infc.LearningResultOverride;
 31  
 
 32  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 33  
 import org.w3c.dom.Element;
 34  
 
 35  0
 @XmlAccessorType(XmlAccessType.FIELD)
 36  
 @XmlType(name = "ExemptionInfo", propOrder = {"id", "typeKey", "stateKey", "name", "descr", "exemptionRequestId",
 37  
         "exemptedPersonId", "qualifierTypeKey", "qualifierId", "effectiveDate", "expirationDate", "useLimit",
 38  
         "useCount", "restrictionOverride", "dateOverride", "milestoneOverride", "statementOverride", "holdOverride",
 39  
         "learningResultOverride", "meta", "attributes", "_futureElements"})
 40  
 public class ExemptionInfo extends IdEntityInfo implements Exemption, Serializable {
 41  
     private static final long serialVersionUID = 1L;
 42  
 
 43  
     @XmlElement
 44  
     private String exemptionRequestId;
 45  
 
 46  
     @XmlElement
 47  
     private String exemptedPersonId;
 48  
 
 49  
     @XmlElement
 50  
     private String qualifierTypeKey;
 51  
 
 52  
     @XmlElement
 53  
     private String qualifierId;
 54  
 
 55  
     @XmlElement
 56  
     private Date effectiveDate;
 57  
 
 58  
     @XmlElement
 59  
     private Date expirationDate;
 60  
 
 61  
     @XmlElement
 62  
     private Integer useLimit;
 63  
 
 64  
     @XmlElement
 65  
     private Integer useCount;
 66  
 
 67  
     @XmlElement
 68  
     private RestrictionOverrideInfo restrictionOverride;
 69  
 
 70  
     @XmlElement
 71  
     private DateOverrideInfo dateOverride;
 72  
 
 73  
     @XmlElement
 74  
     private MilestoneOverrideInfo milestoneOverride;
 75  
 
 76  
     @XmlElement
 77  
     private StatementOverrideInfo statementOverride;
 78  
 
 79  
     @XmlElement
 80  
     private HoldOverrideInfo holdOverride;
 81  
 
 82  
     @XmlElement
 83  
     private LearningResultOverrideInfo learningResultOverride;
 84  
 
 85  
     @XmlAnyElement
 86  
     private List<Element> _futureElements;
 87  
 
 88  
     public ExemptionInfo() {
 89  0
         super();
 90  
 
 91  0
         exemptionRequestId = null;
 92  0
         exemptedPersonId = null;
 93  0
         qualifierTypeKey = null;
 94  0
         qualifierId = null;
 95  0
         effectiveDate = null;
 96  0
         expirationDate = null;
 97  0
         useLimit = null;
 98  0
         useCount = null;
 99  
 
 100  0
         restrictionOverride = null;
 101  0
         dateOverride = null;
 102  0
         milestoneOverride = null;
 103  0
         statementOverride = null;
 104  0
         holdOverride = null;
 105  0
         learningResultOverride = null;
 106  
 
 107  0
         _futureElements = null;
 108  0
     }
 109  
 
 110  
     /**
 111  
      * Constructs a new ExemptionInfo from another Exemption.
 112  
      * 
 113  
      * @param exemption
 114  
      *            the Exemption to copy
 115  
      */
 116  
     public ExemptionInfo(Exemption exemption) {
 117  0
         super(exemption);
 118  0
         if (null != exemption) {
 119  0
             this.exemptionRequestId = exemption.getExemptionRequestId();
 120  0
             this.exemptedPersonId = exemption.getExemptedPersonId();
 121  0
             this.qualifierTypeKey = exemption.getQualifierTypeKey();
 122  0
             this.qualifierId = exemption.getQualifierId();
 123  0
             this.effectiveDate = exemption.getEffectiveDate();
 124  0
             this.expirationDate = exemption.getExpirationDate();
 125  0
             this.useLimit = exemption.getUseLimit();
 126  0
             this.useCount = exemption.getUseCount();
 127  
 
 128  0
             if (exemption.getRestrictionOverride() != null) {
 129  0
                 this.restrictionOverride = new RestrictionOverrideInfo(exemption.getRestrictionOverride());
 130  
             }
 131  
 
 132  0
             if (exemption.getDateOverride() != null) {
 133  0
                 this.dateOverride = new DateOverrideInfo(exemption.getDateOverride());
 134  
             }
 135  
 
 136  0
             if (exemption.getMilestoneOverride() != null) {
 137  0
                 this.milestoneOverride = new MilestoneOverrideInfo(exemption.getMilestoneOverride());
 138  
             }
 139  
 
 140  0
             if (exemption.getStatementOverride() != null) {
 141  0
                 this.statementOverride = new StatementOverrideInfo(exemption.getStatementOverride());
 142  
             }
 143  
 
 144  0
             if (exemption.getHoldOverride() != null) {
 145  0
                 this.holdOverride = new HoldOverrideInfo(exemption.getHoldOverride());
 146  
             }
 147  
 
 148  0
             if (exemption.getLearningResultOverride() != null) {
 149  0
                 this.learningResultOverride = new LearningResultOverrideInfo(exemption.getLearningResultOverride());
 150  
             }
 151  
         }
 152  
 
 153  0
         _futureElements = null;
 154  0
     }
 155  
 
 156  
     @Override
 157  
     public String getExemptionRequestId() {
 158  0
         return exemptionRequestId;
 159  
     }
 160  
 
 161  
     public void setExemptionRequestId(String exemptionRequestId) {
 162  0
         this.exemptionRequestId = exemptionRequestId;
 163  0
     }
 164  
 
 165  
     @Override
 166  
     public String getExemptedPersonId() {
 167  0
         return exemptedPersonId;
 168  
     }
 169  
 
 170  
     public void setExemptedPersonId(String exemptedPersonId) {
 171  0
         this.exemptedPersonId = exemptedPersonId;
 172  0
     }
 173  
 
 174  
     @Override
 175  
     public String getQualifierTypeKey() {
 176  0
         return qualifierTypeKey;
 177  
     }
 178  
 
 179  
     public void setQualfiierTypeKey(String qualiferTypeKey) {
 180  0
         this.qualifierTypeKey = qualifierTypeKey;
 181  0
     }
 182  
 
 183  
     @Override
 184  
     public String getQualifierId() {
 185  0
         return qualifierId;
 186  
     }
 187  
 
 188  
     public void setQualfiierId(String qualiferId) {
 189  0
         this.qualifierId = qualifierId;
 190  0
     }
 191  
 
 192  
     @Override
 193  
     public Date getEffectiveDate() {
 194  0
         return effectiveDate;
 195  
     }
 196  
 
 197  
     public void setEffectiveDate(Date effectiveDate) {
 198  0
         this.effectiveDate = effectiveDate;
 199  0
     }
 200  
 
 201  
     @Override
 202  
     public Date getExpirationDate() {
 203  0
         return expirationDate;
 204  
     }
 205  
 
 206  
     public void setExpirationDate(Date expirationDate) {
 207  0
         this.expirationDate = expirationDate;
 208  0
     }
 209  
 
 210  
     @Override
 211  
     public Integer getUseLimit() {
 212  0
         return useLimit;
 213  
     }
 214  
 
 215  
     public void setUseLimit(Integer useLimit) {
 216  0
         this.useLimit = useLimit;
 217  0
     }
 218  
 
 219  
     @Override
 220  
     public Integer getUseCount() {
 221  0
         return useCount;
 222  
     }
 223  
 
 224  
     public void setUseCount(Integer useCount) {
 225  0
         this.useCount = useCount;
 226  0
     }
 227  
 
 228  
     @Override
 229  
     public RestrictionOverrideInfo getRestrictionOverride() {
 230  0
         return restrictionOverride;
 231  
     }
 232  
 
 233  
     public void setRestrictionOverride(RestrictionOverride restrictionOverride) {
 234  0
         this.restrictionOverride = new RestrictionOverrideInfo(restrictionOverride);
 235  0
     }
 236  
 
 237  
     @Override
 238  
     public DateOverrideInfo getDateOverride() {
 239  0
         return dateOverride;
 240  
     }
 241  
 
 242  
     public void setDateOverride(DateOverride dateOverride) {
 243  0
         this.dateOverride = new DateOverrideInfo(dateOverride);
 244  0
     }
 245  
 
 246  
     @Override
 247  
     public MilestoneOverrideInfo getMilestoneOverride() {
 248  0
         return milestoneOverride;
 249  
     }
 250  
 
 251  
     public void setMilestoneOverride(MilestoneOverride milestoneOverride) {
 252  0
         this.milestoneOverride = new MilestoneOverrideInfo(milestoneOverride);
 253  0
     }
 254  
 
 255  
     @Override
 256  
     public StatementOverrideInfo getStatementOverride() {
 257  0
         return statementOverride;
 258  
     }
 259  
 
 260  
     public void setStatementOverride(StatementOverride statementOverride) {
 261  0
         this.statementOverride = new StatementOverrideInfo(statementOverride);
 262  0
     }
 263  
 
 264  
     @Override
 265  
     public HoldOverrideInfo getHoldOverride() {
 266  0
         return holdOverride;
 267  
     }
 268  
 
 269  
     public void setHoldOverride(HoldOverride holdOverride) {
 270  0
         this.holdOverride = new HoldOverrideInfo(holdOverride);
 271  0
     }
 272  
 
 273  
     @Override
 274  
     public LearningResultOverrideInfo getLearningResultOverride() {
 275  0
         return learningResultOverride;
 276  
     }
 277  
 
 278  
     public void setLearningResultOverride(LearningResultOverride learningResultOverride) {
 279  0
         this.learningResultOverride = new LearningResultOverrideInfo(learningResultOverride);
 280  0
     }
 281  
 }