Coverage Report - org.kuali.student.r2.lum.lu.dto.AdminOrgInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
AdminOrgInfo
0%
0/13
0%
0/2
1.167
 
 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  
 
 12  
 package org.kuali.student.r2.lum.lu.dto;
 13  
 
 14  
 import java.io.Serializable;
 15  
 import java.util.List;
 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  
 
 23  
 import org.kuali.student.r2.common.dto.IdEntityInfo;
 24  
 import org.kuali.student.r2.lum.lu.infc.AdminOrg;
 25  
 import org.w3c.dom.Element;
 26  
 
 27  
 /**
 28  
  * This is a description of what this class does - sambit don't forget to fill
 29  
  * this in.
 30  
  * 
 31  
  * @author Kuali Student Team (sambitpa@kuali.org)
 32  
  */
 33  
 @XmlType(name = "AdminOrgInfo", propOrder = {"id", "typeKey", "stateKey", "name", "descr",  "isPrimary", "orgId", "meta", "attributes", "_futureElements"})
 34  
 @XmlAccessorType(XmlAccessType.FIELD)
 35  
 public class AdminOrgInfo extends IdEntityInfo implements AdminOrg, Serializable {
 36  
 
 37  
     private static final long serialVersionUID = 1L;
 38  
 
 39  
     @XmlElement
 40  
     private String orgId;
 41  
 
 42  
     @XmlElement
 43  
     private boolean isPrimary;
 44  
 
 45  
     @XmlAnyElement
 46  
     private List<Element> _futureElements;
 47  
 
 48  0
     public AdminOrgInfo() {
 49  
 
 50  0
     }
 51  
 
 52  
     public AdminOrgInfo(AdminOrg adminOrg) {
 53  0
         super(adminOrg);
 54  0
         if (adminOrg != null) {
 55  0
             this.orgId = adminOrg.getOrgId();
 56  0
             this.isPrimary = adminOrg.isPrimary();
 57  
         }
 58  0
     }
 59  
 
 60  
     @Override
 61  
     public String getOrgId() {
 62  0
         return orgId;
 63  
     }
 64  
 
 65  
     public void setOrgId(String orgId) {
 66  0
         this.orgId = orgId;
 67  0
     }
 68  
 
 69  
     @Override
 70  
     public boolean isPrimary() {
 71  0
         return isPrimary;
 72  
     }
 73  
 
 74  
     public void setPrimary(boolean isPrimary) {
 75  0
         this.isPrimary = isPrimary;
 76  0
     }
 77  
 
 78  
 }