Coverage Report - org.kuali.student.r2.lum.lu.dto.LuTypeInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
LuTypeInfo
0%
0/14
0%
0/2
1.143
 
 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.r2.lum.lu.dto;
 17  
 
 18  
 import org.kuali.student.r2.core.type.dto.TypeInfo;
 19  
 import org.kuali.student.r2.lum.lu.infc.LuType;
 20  
 
 21  
 import javax.xml.bind.Element;
 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  
 import java.util.List;
 28  
 
 29  
 @XmlAccessorType(XmlAccessType.FIELD)
 30  
 @XmlType(name = "LuTypeInfo", propOrder = {
 31  
         "instructionalFormat", "deliveryMethod", "_futureElements"})
 32  
 public class LuTypeInfo extends TypeInfo implements LuType {
 33  
 
 34  
     private static final long serialVersionUID = 1L;
 35  
 
 36  
     @XmlElement
 37  
     private String instructionalFormat;
 38  
 
 39  
     @XmlElement
 40  
     private String deliveryMethod;
 41  
 
 42  
     @XmlAnyElement
 43  
     private List<Element> _futureElements;
 44  
 
 45  0
     public LuTypeInfo() {
 46  
 
 47  0
     }
 48  
 
 49  
     public LuTypeInfo(LuType luType) {
 50  0
         super(luType);
 51  0
         if (null != luType) {
 52  0
             this.instructionalFormat = luType.getInstructionalFormat();
 53  0
             this.deliveryMethod = luType.getDeliveryMethod();
 54  
         }
 55  0
     }
 56  
 
 57  
     @Override
 58  
     public String getInstructionalFormat() {
 59  0
         return instructionalFormat;
 60  
     }
 61  
 
 62  
     public void setInstructionalFormat(String instructionalFormat) {
 63  0
         this.instructionalFormat = instructionalFormat;
 64  0
     }
 65  
 
 66  
     @Override
 67  
     public String getDeliveryMethod() {
 68  0
         return deliveryMethod;
 69  
     }
 70  
 
 71  
     public void setDeliveryMethod(String deliveryMethod) {
 72  0
         this.deliveryMethod = deliveryMethod;
 73  0
     }
 74  
 
 75  
     @Override
 76  
     public String toString() {
 77  0
         return "LuTypeInfo[id=" + this.getKey() + "]";
 78  
     }
 79  
 }