Clover Coverage Report - KS LUM 1.2-M1-SNAPSHOT (Aggregated)
Coverage timestamp: Fri Mar 4 2011 05:30:47 EST
../../../../../../img/srcFileCovDistChart9.png 37% of files have more coverage
8   81   6   2
4   39   0.75   4
4     1.5  
1    
 
  CourseExpenditureInfo       Line # 43 8 0% 6 2 87.5% 0.875
 
  (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.XmlElement;
27    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
28   
29    import org.kuali.student.common.dto.HasAttributes;
30    import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
31    import org.kuali.student.lum.lu.dto.AffiliatedOrgInfo;
32   
33    /**
34    * Detailed information about expenditure for the course.
35    *
36    * @Author KSContractMojo
37    * @Author Daniel Epstein
38    * @Since Mon Jul 26 14:12:42 EDT 2010
39    * @See <a href="https://test.kuali.org/confluence/display/KULSTU/courseExpenditureInfo+Structure">CourseExpenditureInfo</>
40    *
41    */
42    @XmlAccessorType(XmlAccessType.FIELD)
 
43    public class CourseExpenditureInfo implements Serializable, HasAttributes {
44   
45    private static final long serialVersionUID = 1L;
46   
47    @XmlElement
48    private List<AffiliatedOrgInfo> affiliatedOrgs;
49   
50    @XmlElement
51    @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
52    private Map<String, String> attributes;
53   
54    /**
55    * List of affiliated organizations.
56    */
 
57  29 toggle public List<AffiliatedOrgInfo> getAffiliatedOrgs() {
58  29 if (affiliatedOrgs == null) {
59  0 affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>(0);
60    }
61  29 return affiliatedOrgs;
62    }
63   
 
64  62 toggle public void setAffiliatedOrgs(List<AffiliatedOrgInfo> affiliatedOrgs) {
65  62 this.affiliatedOrgs = affiliatedOrgs;
66    }
67   
68    /**
69    * List of key/value pairs, typically used for dynamic attributes.
70    */
 
71  26 toggle public Map<String, String> getAttributes() {
72  26 if (attributes == null) {
73  10 attributes = new HashMap<String, String>();
74    }
75  26 return attributes;
76    }
77   
 
78  16 toggle public void setAttributes(Map<String, String> attributes) {
79  16 this.attributes = attributes;
80    }
81    }