1
2
3
4
5
6
7
8
9
10
11
12
13
14
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.core.dto.HasAttributes;
30 import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
31 import org.kuali.student.lum.lu.dto.AffiliatedOrgInfo;
32
33
34
35
36
37
38
39
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
56
57 public List<AffiliatedOrgInfo> getAffiliatedOrgs() {
58 if (affiliatedOrgs == null) {
59 affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>(0);
60 }
61 return affiliatedOrgs;
62 }
63
64 public void setAffiliatedOrgs(List<AffiliatedOrgInfo> affiliatedOrgs) {
65 this.affiliatedOrgs = affiliatedOrgs;
66 }
67
68
69
70
71 public Map<String, String> getAttributes() {
72 if (attributes == null) {
73 attributes = new HashMap<String, String>();
74 }
75 return attributes;
76 }
77
78 public void setAttributes(Map<String, String> attributes) {
79 this.attributes = attributes;
80 }
81 }