Coverage Report - org.kuali.student.r2.lum.lu.dto.RevenueInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
RevenueInfo
0%
0/23
0%
0/6
1.5
 
 1  
 /*
 2  
  * Copyright 2009 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.student.r2.lum.lu.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.ArrayList;
 20  
 import java.util.List;
 21  
 
 22  
 import javax.xml.bind.annotation.XmlAccessType;
 23  
 import javax.xml.bind.annotation.XmlAccessorType;
 24  
 import javax.xml.bind.annotation.XmlAnyElement;
 25  
 import javax.xml.bind.annotation.XmlAttribute;
 26  
 import javax.xml.bind.annotation.XmlElement;
 27  
 import javax.xml.bind.annotation.XmlType;
 28  
 
 29  
 import org.kuali.student.r2.common.dto.HasAttributesAndMetaInfo;
 30  
 import org.kuali.student.r2.lum.lu.infc.Revenue;
 31  
 import org.w3c.dom.Element;
 32  
 
 33  
 
 34  
 @XmlAccessorType(XmlAccessType.FIELD)
 35  
 @XmlType(name = "RevenueInfo", propOrder = {"id", "feeType", "affiliatedOrgs",
 36  
        "attributes", "meta", "_futureElements"})
 37  
 public class RevenueInfo extends HasAttributesAndMetaInfo implements Revenue, Serializable {
 38  
 
 39  
     private static final long serialVersionUID = 1L;
 40  
     
 41  
     @XmlAttribute
 42  
     private String id;
 43  
     
 44  
     @XmlElement
 45  
     private String feeType;
 46  
 
 47  
     @XmlElement
 48  
     private List<AffiliatedOrgInfo> affiliatedOrgs;
 49  
 
 50  
     @XmlAnyElement
 51  
     private List<Element> _futureElements;
 52  
 
 53  0
     public RevenueInfo() {
 54  0
         this.id = null;
 55  0
         this.feeType = null;
 56  0
         this.affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>();
 57  0
         this._futureElements = null;
 58  0
     }
 59  
     
 60  
     public RevenueInfo(Revenue rev) {
 61  0
         super(rev);
 62  
         
 63  0
         if(null == rev) return;
 64  
         
 65  0
         this.feeType = rev.getFeeType();
 66  0
         this.affiliatedOrgs = (null != rev.getAffiliatedOrgs()) ? new ArrayList<AffiliatedOrgInfo>((List<AffiliatedOrgInfo>)rev.getAffiliatedOrgs()) : null;
 67  0
         this.id = rev.getId();
 68  0
     }
 69  
     
 70  
     @Override
 71  
     public String getFeeType() {
 72  0
         return feeType;
 73  
     }
 74  
 
 75  
     public void setFeeType(String feeType) {
 76  0
         this.feeType = feeType;
 77  0
     }
 78  
 
 79  
  
 80  
     @Override
 81  
     public List<AffiliatedOrgInfo> getAffiliatedOrgs() {
 82  0
         if (affiliatedOrgs == null) {
 83  0
             affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>(0);
 84  
         }
 85  0
         return affiliatedOrgs;
 86  
     }
 87  
 
 88  
     public void setAffiliatedOrgs(List<AffiliatedOrgInfo> affiliatedOrgs) {
 89  0
         this.affiliatedOrgs = affiliatedOrgs;
 90  0
     }
 91  
 
 92  
     @Override
 93  
     public String getId() {
 94  0
         return id;
 95  
     }
 96  
 
 97  
     public void setId(String id) {
 98  0
         this.id = id;
 99  0
     }
 100  
 }