Clover Coverage Report - KS LUM 1.2-M4-SNAPSHOT (Aggregated)
Coverage timestamp: Wed Jul 20 2011 13:25:47 EDT
../../../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
14   128   12   1.4
4   65   0.86   10
10     1.2  
1    
 
  CourseRevenueInfo       Line # 45 14 0% 12 2 92.9% 0.9285714
 
  (15)
 
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    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  52 toggle public String getId() {
70  52 return id;
71    }
72   
 
73  138 toggle public void setId(String id) {
74  138 this.id = id;
75    }
76   
77    /**
78    * A code that identifies the type of the fee with which this revenue is associated with.
79    */
 
80  2 toggle public String getFeeType() {
81  2 return feeType;
82    }
83   
 
84  124 toggle public void setFeeType(String feeType) {
85  124 this.feeType = feeType;
86    }
87   
88    /**
89    * List of affiliated organizations.
90    */
 
91  80 toggle public List<AffiliatedOrgInfo> getAffiliatedOrgs() {
92  80 if (affiliatedOrgs == null) {
93  0 affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>(0);
94    }
95  80 return affiliatedOrgs;
96    }
97   
 
98  124 toggle public void setAffiliatedOrgs(List<AffiliatedOrgInfo> affiliatedOrgs) {
99  124 this.affiliatedOrgs = affiliatedOrgs;
100    }
101   
102    /**
103    * List of key/value pairs, typically used for dynamic attributes.
104    */
 
105  52 toggle public Map<String, String> getAttributes() {
106  52 if (attributes == null) {
107  2 attributes = new HashMap<String, String>();
108    }
109  52 return attributes;
110    }
111   
 
112  122 toggle public void setAttributes(Map<String, String> attributes) {
113  122 this.attributes = attributes;
114    }
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  52 toggle public MetaInfo getMetaInfo() {
122  52 return metaInfo;
123    }
124   
 
125  90 toggle public void setMetaInfo(MetaInfo metaInfo) {
126  90 this.metaInfo = metaInfo;
127    }
128    }