Coverage Report - org.kuali.student.r2.lum.clu.dto.CluFeeInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CluFeeInfo
0%
0/21
0%
0/6
1.375
 
 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.HasAttributesAndMetaInfo;
 19  
 import org.kuali.student.r2.common.dto.RichTextInfo;
 20  
 import org.kuali.student.r2.lum.clu.infc.CluFee;
 21  
 import org.kuali.student.r2.lum.clu.infc.CluFeeRecord;
 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.XmlAttribute;
 28  
 import javax.xml.bind.annotation.XmlElement;
 29  
 import javax.xml.bind.annotation.XmlType;
 30  
 import java.io.Serializable;
 31  
 import java.util.ArrayList;
 32  
 import java.util.List;
 33  
 
 34  
 @XmlAccessorType(XmlAccessType.FIELD)
 35  
 @XmlType(name = "CluFeeInfo", propOrder = {"id", "descr", "cluFeeRecords", "attributes", "meta", "_futureElements"})
 36  
 public class CluFeeInfo extends HasAttributesAndMetaInfo implements CluFee, Serializable {
 37  
 
 38  
     private static final long serialVersionUID = 1L;
 39  
 
 40  
     @XmlAttribute
 41  
     private String id;
 42  
 
 43  
     @XmlElement
 44  
     private RichTextInfo descr;
 45  
 
 46  
     @XmlElement
 47  
     private List<CluFeeRecordInfo> cluFeeRecords;
 48  
 
 49  
     @XmlAnyElement
 50  
     private List<Element> _futureElements;
 51  
 
 52  0
     public CluFeeInfo() {
 53  
 
 54  0
     }
 55  
 
 56  
     public CluFeeInfo(CluFee cluFee) {
 57  0
         super(cluFee);
 58  0
         if (null != cluFee) {
 59  0
             this.id = cluFee.getId();
 60  0
             this.descr = cluFee.getDescr();
 61  0
             this.cluFeeRecords = new ArrayList<CluFeeRecordInfo>();
 62  0
             for (CluFeeRecord cluFeeRecord : cluFee.getCluFeeRecords()) {
 63  0
                 this.cluFeeRecords.add(new CluFeeRecordInfo(cluFeeRecord));
 64  
             }
 65  
         }
 66  0
     }
 67  
 
 68  
     @Override
 69  
     public List<CluFeeRecordInfo> getCluFeeRecords() {
 70  0
         if (cluFeeRecords == null) {
 71  0
             cluFeeRecords = new ArrayList<CluFeeRecordInfo>(0);
 72  
         }
 73  0
         return cluFeeRecords;
 74  
     }
 75  
 
 76  
     public void setCluFeeRecords(List<CluFeeRecordInfo> cluFeeRecords) {
 77  0
         this.cluFeeRecords = cluFeeRecords;
 78  0
     }
 79  
 
 80  
     @Override
 81  
     public String getId() {
 82  0
         return id;
 83  
     }
 84  
 
 85  
     public void setId(String id) {
 86  0
         this.id = id;
 87  0
     }
 88  
 
 89  
     @Override
 90  
     public RichTextInfo getDescr() {
 91  0
         return descr;
 92  
     }
 93  
 
 94  
     public void setDescr(RichTextInfo descr) {
 95  0
         this.descr = descr;
 96  0
     }
 97  
 }