Coverage Report - org.kuali.student.lum.course.dto.CourseRevenueInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
CourseRevenueInfo
0%
0/20
0%
0/4
1.2
 
 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.lum.course.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.ArrayList;
 20  
 import java.util.HashMap;
 21  
 import java.util.List;
 22  
 import java.util.Map;
 23  
 
 24  
 import javax.xml.bind.annotation.XmlAccessType;
 25  
 import javax.xml.bind.annotation.XmlAccessorType;
 26  
 import javax.xml.bind.annotation.XmlAttribute;
 27  
 import javax.xml.bind.annotation.XmlElement;
 28  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 29  
 
 30  
 import org.kuali.student.common.dto.HasAttributes;
 31  
 import org.kuali.student.common.dto.MetaInfo;
 32  
 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
 33  
 import org.kuali.student.lum.lu.dto.AffiliatedOrgInfo;
 34  
 
 35  
 /**
 36  
  * Detailed information about revenue collected from the course.
 37  
  *
 38  
  * @Author KSContractMojo
 39  
  * @Author Daniel Epstein
 40  
  * @Since Mon Jul 26 14:12:38 EDT 2010
 41  
  * @See <a href="https://test.kuali.org/confluence/display/KULSTU/courseRevenueInfo+Structure">CourseReenueInfo</>
 42  
  *
 43  
  */
 44  
 @XmlAccessorType(XmlAccessType.FIELD)
 45  0
 public class CourseRevenueInfo implements Serializable, HasAttributes {
 46  
 
 47  
     private static final long serialVersionUID = 1L;
 48  
     
 49  
     @XmlAttribute
 50  
     private String id;
 51  
     
 52  
     @XmlElement
 53  
     private String feeType;
 54  
 
 55  
     @XmlElement
 56  
     private List<AffiliatedOrgInfo> affiliatedOrgs;
 57  
 
 58  
     @XmlElement
 59  
     @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
 60  
     private Map<String, String> attributes;
 61  
 
 62  
     @XmlElement
 63  
     private MetaInfo metaInfo;
 64  
     
 65  
 
 66  
     /**
 67  
      * Identifier for the clu fee record.
 68  
      */
 69  
     public String getId() {
 70  0
         return id;
 71  
     }
 72  
 
 73  
     public void setId(String id) {
 74  0
         this.id = id;
 75  0
     }
 76  
     
 77  
     /**
 78  
      * A code that identifies the type of the fee with which this revenue is associated with.
 79  
      */
 80  
     public String getFeeType() {
 81  0
         return feeType;
 82  
     }
 83  
 
 84  
     public void setFeeType(String feeType) {
 85  0
         this.feeType = feeType;
 86  0
     }
 87  
 
 88  
     /**
 89  
      * List of affiliated organizations.
 90  
      */
 91  
     public List<AffiliatedOrgInfo> getAffiliatedOrgs() {
 92  0
         if (affiliatedOrgs == null) {
 93  0
             affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>(0);
 94  
         }
 95  0
         return affiliatedOrgs;
 96  
     }
 97  
 
 98  
     public void setAffiliatedOrgs(List<AffiliatedOrgInfo> affiliatedOrgs) {
 99  0
         this.affiliatedOrgs = affiliatedOrgs;
 100  0
     }
 101  
 
 102  
     /**
 103  
      * List of key/value pairs, typically used for dynamic attributes.
 104  
      */
 105  
     public Map<String, String> getAttributes() {
 106  0
         if (attributes == null) {
 107  0
             attributes = new HashMap<String, String>();
 108  
         }
 109  0
         return attributes;
 110  
     }
 111  
 
 112  
     public void setAttributes(Map<String, String> attributes) {
 113  0
         this.attributes = attributes;
 114  0
     }
 115  
 
 116  
         /**
 117  
          * Create and last update info for the structure. This is optional and 
 118  
          * treated as read only since the data is set by the internals of the service 
 119  
          * during maintenance operations.
 120  
          */
 121  
         public MetaInfo getMetaInfo() {
 122  0
                 return metaInfo;
 123  
         }
 124  
 
 125  
         public void setMetaInfo(MetaInfo metaInfo) {
 126  0
                 this.metaInfo = metaInfo;
 127  0
         }
 128  
 }