Coverage Report - org.kuali.student.r2.lum.clu.dto.CluAccountingInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CluAccountingInfo
0%
0/18
0%
0/4
1.25
 
 1  
 /**
 2  
  * Copyright 2010 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.lum.clu.dto;
 17  
 
 18  
 import org.kuali.student.r2.common.dto.HasAttributesInfo;
 19  
 import org.kuali.student.r2.common.dto.RichTextInfo;
 20  
 import org.kuali.student.r2.lum.clu.infc.AffiliatedOrg;
 21  
 import org.kuali.student.r2.lum.clu.infc.CluAccounting;
 22  
 
 23  
 import javax.xml.bind.Element;
 24  
 import javax.xml.bind.annotation.XmlAccessType;
 25  
 import javax.xml.bind.annotation.XmlAccessorType;
 26  
 import javax.xml.bind.annotation.XmlAnyElement;
 27  
 import javax.xml.bind.annotation.XmlElement;
 28  
 import javax.xml.bind.annotation.XmlType;
 29  
 import java.io.Serializable;
 30  
 import java.util.ArrayList;
 31  
 import java.util.List;
 32  
 
 33  
 @XmlAccessorType(XmlAccessType.FIELD)
 34  
 @XmlType(name = "CluAccountingInfo", propOrder = {"id", "descr", "affiliatedOrgs", "attributes", "_futureElements"})
 35  
 public class CluAccountingInfo extends HasAttributesInfo implements CluAccounting, Serializable {
 36  
 
 37  
     private static final long serialVersionUID = 1L;
 38  
 
 39  
     @XmlElement
 40  
     private String id;
 41  
     @XmlElement
 42  
     private RichTextInfo descr;
 43  
     @XmlElement
 44  
     private List<AffiliatedOrgInfo> affiliatedOrgs;
 45  
     @XmlAnyElement
 46  
     private List<Element> _futureElements;
 47  
 
 48  0
     public CluAccountingInfo() {
 49  
 
 50  0
     }
 51  
 
 52  
     public CluAccountingInfo(CluAccounting cluAccounting) {
 53  0
         super(cluAccounting);
 54  0
         if (null != cluAccounting) {
 55  0
             this.id = cluAccounting.getId();
 56  0
             this.affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>();
 57  0
             for (AffiliatedOrg affiliatedOrg : cluAccounting.getAffiliatedOrgs()) {
 58  0
                 this.affiliatedOrgs.add(new AffiliatedOrgInfo(affiliatedOrg));
 59  
             }
 60  
         }
 61  0
     }
 62  
 
 63  
     @Override
 64  
     public String getId() {
 65  0
         return id;
 66  
     }
 67  
 
 68  
     public void setId(String id) {
 69  0
         this.id = id;
 70  0
     }
 71  
 
 72  
     @Override
 73  
     public RichTextInfo getDescr() {
 74  0
         return descr;
 75  
     }
 76  
 
 77  
     public void setDescr(RichTextInfo descr) {
 78  0
         this.descr = descr;
 79  0
     }
 80  
 
 81  
 
 82  
     @Override
 83  
     public List<AffiliatedOrgInfo> getAffiliatedOrgs() {
 84  0
         return affiliatedOrgs;
 85  
     }
 86  
 
 87  
     public void setAffiliatedOrgs(List<AffiliatedOrgInfo> affiliatedOrgs) {
 88  0
         this.affiliatedOrgs = affiliatedOrgs;
 89  0
     }
 90  
 }