Coverage Report - org.kuali.student.r2.core.room.dto.BuildingInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
BuildingInfo
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.IdEntityInfo;
 19  
 import org.kuali.student.r2.core.room.infc.Building;
 20  
 import org.w3c.dom.Element;
 21  
 
 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.io.Serializable;
 28  
 import java.util.List;
 29  
 
 30  
 /**
 31  
  *
 32  
  * @Version 2.0
 33  
  * @Author Sri komandur@uw.edu
 34  
  */
 35  
 @XmlAccessorType(XmlAccessType.FIELD)
 36  
 @XmlType(name = "BuildingInfo", propOrder = {"id", "typeKey", "stateKey",
 37  
         "name", "descr", "buildingCode", "campusKey", "meta", "attributes", "_futureElements"})
 38  
 public class BuildingInfo extends IdEntityInfo implements Building, Serializable {
 39  
 
 40  
     private static final long serialVersionUID = 1L;
 41  
 
 42  
     @XmlElement
 43  
     private String buildingCode;
 44  
     
 45  
     @XmlElement
 46  
     private String campusKey;
 47  
 
 48  
     @XmlAnyElement
 49  
     private List<Element> _futureElements;
 50  
 
 51  0
     public BuildingInfo() {
 52  0
     }
 53  
 
 54  
     public BuildingInfo(Building building) {
 55  0
         super(building);
 56  0
         if (null != building) {
 57  0
             this.buildingCode = building.getBuildingCode();
 58  0
             this.campusKey = building.getCampusKey();
 59  
         }
 60  0
     }
 61  
 
 62  
     @Override
 63  
     public String getBuildingCode() {
 64  0
         return buildingCode;
 65  
     }
 66  
 
 67  
     public void setBuildingCode(String buildingCode) {
 68  0
         this.buildingCode = buildingCode;
 69  0
     }
 70  
 
 71  
     @Override
 72  
     public String getCampusKey() {
 73  0
         return this.campusKey;
 74  
     }
 75  
 
 76  
     public void setCampusKey(String campusKey) {
 77  0
         this.campusKey = campusKey;
 78  0
     }
 79  
 }