Coverage Report - org.kuali.student.r2.core.exemption.dto.HoldOverrideInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
HoldOverrideInfo
0%
0/12
0%
0/2
1.25
 
 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  
 package org.kuali.student.r2.core.exemption.dto;
 16  
 
 17  
 import java.io.Serializable;
 18  
 import java.util.List;
 19  
 
 20  
 import javax.xml.bind.annotation.XmlAccessType;
 21  
 import javax.xml.bind.annotation.XmlAccessorType;
 22  
 import javax.xml.bind.annotation.XmlAnyElement;
 23  
 import javax.xml.bind.annotation.XmlElement;
 24  
 import javax.xml.bind.annotation.XmlType;
 25  
 
 26  
 import org.kuali.student.r2.core.exemption.infc.HoldOverride;
 27  
 import org.w3c.dom.Element;
 28  
 
 29  
 @XmlAccessorType(XmlAccessType.FIELD)
 30  
 @XmlType(name = "HoldOverrideInfo", propOrder = { "holdId", "_futureElements" })
 31  
 
 32  
 public class HoldOverrideInfo implements HoldOverride, Serializable {
 33  
         private static final long serialVersionUID = 1L;
 34  
 
 35  
         @XmlElement
 36  
         private String holdId;
 37  
 
 38  
         @XmlAnyElement
 39  
         private List<Element> _futureElements;
 40  
 
 41  
         public HoldOverrideInfo() {
 42  0
                 super();
 43  0
                 holdId = null;
 44  0
                 _futureElements = null;
 45  0
         }
 46  
 
 47  
         /**
 48  
          * Constructs a new HoldOverrideInfo from another HoldOverride.
 49  
          * 
 50  
          * @param exemption the HoldOverride to copy
 51  
          */
 52  
         public HoldOverrideInfo(HoldOverride holdOverride) {
 53  0
                 super();
 54  0
                 if (null != holdOverride) {
 55  0
                         this.holdId = holdOverride.getHoldId();
 56  
                 }
 57  
 
 58  0
                 _futureElements = null;
 59  0
         }
 60  
 
 61  
         @Override
 62  
         public String getHoldId() {
 63  0
             return holdId;
 64  
         }
 65  
 
 66  
         public void setHoldId(String holdId) {
 67  0
             this.holdId = holdId;
 68  0
         }
 69  
 }