Coverage Report - org.kuali.student.r2.core.room.dto.RoomUsageInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
RoomUsageInfo
0%
0/25
0%
0/2
1.083
 
 1  
 package org.kuali.student.r2.core.room.dto;
 2  
 
 3  
 import org.kuali.student.r2.common.dto.HasAttributesAndMetaInfo;
 4  
 import org.kuali.student.r2.core.room.infc.RoomUsage;
 5  
 import org.w3c.dom.Element;
 6  
 
 7  
 import javax.xml.bind.annotation.*;
 8  
 import java.io.Serializable;
 9  
 import java.util.List;
 10  
 
 11  
 /**
 12  
  * @Version 2.0
 13  
  * @Author Sri komandur@uw.edu
 14  
  */
 15  
 @XmlAccessorType(XmlAccessType.FIELD)
 16  
 @XmlType(name = "RoomUsageInfo", propOrder = {"id", "usageTypeKey", "layoutTypeKey", "preferredCapacity", "hardCapacity", "meta", "attributes", "_futureElements"})
 17  
 public class RoomUsageInfo extends HasAttributesAndMetaInfo implements RoomUsage, Serializable {
 18  
 
 19  
     @XmlElement
 20  
     private String id;
 21  
     @XmlElement
 22  
     private String usageTypeKey;
 23  
     @XmlElement
 24  
     private String layoutTypeKey;
 25  
     @XmlElement
 26  
     private Integer preferredCapacity;
 27  
     @XmlElement
 28  
     private Integer hardCapacity;
 29  
     @XmlAnyElement
 30  
     private List<Element> _futureElements;
 31  
 
 32  
 
 33  0
     public RoomUsageInfo() {
 34  
 
 35  0
     }
 36  
 
 37  0
     public RoomUsageInfo(RoomUsage roomUsage) {
 38  0
         if (null != roomUsage) {
 39  0
             this.id = roomUsage.getId();
 40  0
             this.usageTypeKey = roomUsage.getUsageTypeKey();
 41  0
             this.layoutTypeKey = roomUsage.getLayoutTypeKey();
 42  0
             this.preferredCapacity = roomUsage.getPreferredCapacity();
 43  0
             this.hardCapacity = roomUsage.getHardCapacity();
 44  
         }
 45  0
     }
 46  
 
 47  
     @Override
 48  
     public String getId() {
 49  0
         return this.id;
 50  
     }
 51  
 
 52  
     public void setId(String id) {
 53  0
         this.id = id;
 54  0
     }
 55  
 
 56  
     @Override
 57  
     public String getUsageTypeKey() {
 58  0
         return this.usageTypeKey;
 59  
     }
 60  
 
 61  
     public void setUsageTypeKey(String usageTypeKey) {
 62  0
         this.usageTypeKey = usageTypeKey;
 63  0
     }
 64  
 
 65  
     @Override
 66  
     public String getLayoutTypeKey() {
 67  0
         return this.layoutTypeKey;
 68  
     }
 69  
 
 70  
     public void setLayoutTypeKey(String layoutTypeKey) {
 71  0
         this.layoutTypeKey = layoutTypeKey;
 72  0
     }
 73  
     
 74  
     @Override
 75  
     public Integer getPreferredCapacity() {
 76  0
         return this.preferredCapacity;
 77  
     }
 78  
 
 79  
     public void setPreferredCapacity(Integer preferredCapacity) {
 80  0
         this.preferredCapacity = preferredCapacity;
 81  0
     }
 82  
 
 83  
     @Override
 84  
     public Integer getHardCapacity() {
 85  0
         return this.hardCapacity;
 86  
     }
 87  
 
 88  
     public void setHardCapacity(Integer hardCapacity) {
 89  0
         this.hardCapacity = hardCapacity;
 90  0
     }
 91  
 
 92  
 
 93  
 }