Coverage Report - org.kuali.student.r2.lum.clu.dto.AdminOrgInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
AdminOrgInfo
0%
0/14
0%
0/4
1.333
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the Educational Community
 3  
  * License, Version 2.0 (the "License"); you may not use this file except in
 4  
  * compliance with the License. You may obtain a copy of the License at
 5  
  * http://www.osedu.org/licenses/ECL-2.0 Unless required by applicable law or
 6  
  * agreed to in writing, software distributed under the License is distributed
 7  
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 8  
  * express or implied. See the License for the specific language governing
 9  
  * permissions and limitations under the License.
 10  
  */
 11  
 package org.kuali.student.r2.lum.clu.dto;
 12  
 
 13  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 14  
 import org.kuali.student.r2.lum.clu.infc.AdminOrg;
 15  
 import org.w3c.dom.Element;
 16  
 
 17  
 import javax.xml.bind.annotation.XmlAccessType;
 18  
 import javax.xml.bind.annotation.XmlAccessorType;
 19  
 import javax.xml.bind.annotation.XmlAnyElement;
 20  
 import javax.xml.bind.annotation.XmlElement;
 21  
 import javax.xml.bind.annotation.XmlType;
 22  
 import java.io.Serializable;
 23  
 import java.util.List;
 24  
 
 25  
 /**
 26  
  * @author Kuali Student Team (sambitpa@kuali.org)
 27  
  */
 28  
 @XmlAccessorType(XmlAccessType.FIELD)
 29  
 @XmlType(name = "AdminOrgInfo", propOrder = {"id", "typeKey", "stateKey", "name", "descr", "isPrimary", "orgId", "meta", "attributes", "_futureElements"})
 30  
 public class AdminOrgInfo extends IdEntityInfo implements AdminOrg, Serializable {
 31  
 
 32  
     private static final long serialVersionUID = 1L;
 33  
     @XmlElement
 34  
     private String orgId;
 35  
     @XmlElement
 36  
     private Boolean isPrimary;
 37  
     @XmlAnyElement
 38  
     private List<Element> _futureElements;
 39  
 
 40  0
     public AdminOrgInfo() {
 41  0
     }
 42  
 
 43  
     public AdminOrgInfo(AdminOrg adminOrg) {
 44  0
         super(adminOrg);
 45  0
         if (adminOrg != null) {
 46  0
             this.orgId = adminOrg.getOrgId();
 47  0
             if (adminOrg.getIsPrimary() != null) {
 48  0
                 this.isPrimary = adminOrg.getIsPrimary();
 49  
             }
 50  
         }
 51  0
     }
 52  
 
 53  
     @Override
 54  
     public String getOrgId() {
 55  0
         return orgId;
 56  
     }
 57  
 
 58  
     public void setOrgId(String orgId) {
 59  0
         this.orgId = orgId;
 60  0
     }
 61  
 
 62  
     @Override
 63  
     public Boolean getIsPrimary() {
 64  0
         return isPrimary;
 65  
     }
 66  
 
 67  
     public void setIsPrimary(Boolean isPrimary) {
 68  0
         this.isPrimary = isPrimary;
 69  0
     }
 70  
 }