Coverage Report - org.kuali.student.r2.lum.lu.dto.AffiliatedOrgInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
AffiliatedOrgInfo
0%
0/27
0%
0/4
1.2
 
 1  
 /*
 2  
  * Copyright 2009 The Kuali Foundation Licensed under the Educational Community
 3  
  * License, Version 1.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.opensource.org/licenses/ecl1.php Unless required by applicable law
 6  
  * or agreed to in writing, software distributed under the License is
 7  
  * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 8  
  * KIND, either express or implied. See the License for the specific language
 9  
  * governing permissions and limitations under the License.
 10  
  */
 11  
 package org.kuali.student.r2.lum.lu.dto;
 12  
 
 13  
 import com.google.gwt.dom.client.Element;
 14  
 import java.io.Serializable;
 15  
 import java.util.Date;
 16  
 import java.util.List;
 17  
 
 18  
 import javax.xml.bind.annotation.XmlAccessType;
 19  
 import javax.xml.bind.annotation.XmlAccessorType;
 20  
 import javax.xml.bind.annotation.XmlAnyElement;
 21  
 import javax.xml.bind.annotation.XmlElement;
 22  
 import javax.xml.bind.annotation.XmlType;
 23  
 
 24  
 import org.kuali.student.r2.common.dto.IdNamelessEntityInfo;
 25  
 import org.kuali.student.r2.lum.lu.infc.AffiliatedOrg;
 26  
 
 27  
 @XmlAccessorType(XmlAccessType.FIELD)
 28  
 @XmlType(name = "AffiliatedOrgInfo", propOrder = {"id", "meta", "attributes", "orgId", "percentage", "effectiveDate", "expirationDate", "typeKey", "stateKey", "_futureElements"})
 29  
 public class AffiliatedOrgInfo extends IdNamelessEntityInfo implements AffiliatedOrg, Serializable {
 30  
 
 31  
     private static final long serialVersionUID = 1L;
 32  
     @XmlElement
 33  
     private String orgId;
 34  
     @XmlElement
 35  
     private Long percentage;
 36  
     @XmlElement
 37  
     private Date effectiveDate;
 38  
     @XmlElement
 39  
     private Date expirationDate;
 40  
     @XmlAnyElement
 41  
     private List<Element> _futureElements;
 42  
 
 43  
     public AffiliatedOrgInfo() {
 44  0
         super();
 45  0
         orgId = null;
 46  0
         percentage = null;
 47  0
         effectiveDate = null;
 48  0
         expirationDate = null;
 49  0
     }
 50  
 
 51  
     public AffiliatedOrgInfo(AffiliatedOrg affiliatedOrg) {
 52  
 
 53  0
         super(affiliatedOrg);
 54  
 
 55  0
         this.percentage = affiliatedOrg.getPercentage();
 56  0
         if (affiliatedOrg.getEffectiveDate() != null) {
 57  0
             this.effectiveDate = new Date(affiliatedOrg.getEffectiveDate().getTime());
 58  
         } else {
 59  0
             this.effectiveDate = null;
 60  
         }
 61  
 
 62  0
         if (affiliatedOrg.getExpirationDate() != null) {
 63  0
             this.expirationDate = new Date(affiliatedOrg.getExpirationDate().getTime());
 64  
         } else {
 65  0
             this.expirationDate = null;
 66  
         }
 67  0
     }
 68  
 
 69  
     @Override
 70  
     public String getOrgId() {
 71  0
         return orgId;
 72  
     }
 73  
 
 74  
     public void setOrgId(String orgId) {
 75  0
         this.orgId = orgId;
 76  0
     }
 77  
 
 78  
     @Override
 79  
     public Long getPercentage() {
 80  0
         return percentage;
 81  
     }
 82  
 
 83  
     public void setPercentage(Long percentage) {
 84  0
         this.percentage = percentage;
 85  0
     }
 86  
 
 87  
     @Override
 88  
     public Date getEffectiveDate() {
 89  0
         return effectiveDate;
 90  
     }
 91  
 
 92  
     public void setEffectiveDate(Date effectiveDate) {
 93  0
         this.effectiveDate = effectiveDate;
 94  0
     }
 95  
 
 96  
     @Override
 97  
     public Date getExpirationDate() {
 98  0
         return expirationDate;
 99  
     }
 100  
 
 101  
     public void setExpirationDate(Date expirationDate) {
 102  0
         this.expirationDate = expirationDate;
 103  0
     }
 104  
 }