Coverage Report - org.kuali.student.r2.core.room.dto.RoomFixedResourceInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
RoomFixedResourceInfo
0%
0/13
0%
0/2
1.167
 
 1  
 /*
 2  
  * Copyright 2011 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.core.room.dto;
 17  
 
 18  
 import org.kuali.student.r2.common.dto.HasAttributesAndMetaInfo;
 19  
 import org.kuali.student.r2.core.room.infc.RoomFixedResource;
 20  
 import org.w3c.dom.Element;
 21  
 
 22  
 import javax.xml.bind.annotation.*;
 23  
 import java.io.Serializable;
 24  
 import java.util.List;
 25  
 
 26  
 /**
 27  
  *
 28  
  * @Version 2.0
 29  
  * @Author Sri komandur@uw.edu
 30  
  */
 31  
 @XmlAccessorType(XmlAccessType.FIELD)
 32  
 @XmlType(name = "RoomFixedResourceInfo", propOrder = {"id", "quantity", "resourceTypeKey", "meta", "attributes", "_futureElements"})
 33  
 
 34  
 public class RoomFixedResourceInfo 
 35  
     extends HasAttributesAndMetaInfo 
 36  
     implements RoomFixedResource, Serializable {
 37  
 
 38  
     @XmlElement
 39  
     private String id;
 40  
 
 41  
     @XmlElement
 42  
     private Integer quantity;
 43  
 
 44  
     @XmlElement
 45  
     private String resourceTypeKey;
 46  
 
 47  
     @XmlAnyElement
 48  
     private List<Element> _futureElements;
 49  
 
 50  0
     public RoomFixedResourceInfo() {
 51  0
     }
 52  
 
 53  0
     public RoomFixedResourceInfo(RoomFixedResource roomFixedResource) {
 54  0
         if (null != roomFixedResource) {
 55  0
             this.id = roomFixedResource.getId();
 56  0
             this.quantity = roomFixedResource.getQuantity();
 57  0
             this.resourceTypeKey = roomFixedResource.getResourceTypeKey();
 58  
         }
 59  0
     }
 60  
     
 61  
     @Override
 62  
     public String getId() {
 63  0
         return this.id;
 64  
     }
 65  
     
 66  
     public void setId(String id) {
 67  0
         this.id = id;
 68  0
     }
 69  
 
 70  
     @Override
 71  
     public Integer getQuantity() {
 72  0
         return this.quantity;
 73  
     }
 74  
 
 75  
     @Override
 76  
     public String getResourceTypeKey() {
 77  0
         return this.resourceTypeKey;
 78  
     }
 79  
 }