1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.lum.lu.dto; |
17 | |
|
18 | |
import org.kuali.student.r2.common.dto.HasAttributesInfo; |
19 | |
import org.kuali.student.r2.lum.lu.infc.AffiliatedOrg; |
20 | |
import org.kuali.student.r2.lum.lu.infc.CluAccounting; |
21 | |
|
22 | |
import javax.xml.bind.Element; |
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAnyElement; |
26 | |
import javax.xml.bind.annotation.XmlAttribute; |
27 | |
import javax.xml.bind.annotation.XmlElement; |
28 | |
import javax.xml.bind.annotation.XmlType; |
29 | |
import java.io.Serializable; |
30 | |
import java.util.ArrayList; |
31 | |
import java.util.List; |
32 | |
|
33 | |
@XmlAccessorType(XmlAccessType.FIELD) |
34 | |
@XmlType(name = "CluAccountingInfo", propOrder = {"affiliatedOrgs", "attributes", "_futureElements"}) |
35 | |
public class CluAccountingInfo extends HasAttributesInfo implements CluAccounting, Serializable { |
36 | |
|
37 | |
private static final long serialVersionUID = 1L; |
38 | |
|
39 | |
@XmlAttribute |
40 | |
private String id; |
41 | |
@XmlElement |
42 | |
private List<AffiliatedOrgInfo> affiliatedOrgs; |
43 | |
@XmlAnyElement |
44 | |
private List<Element> _futureElements; |
45 | |
|
46 | 0 | public CluAccountingInfo() { |
47 | |
|
48 | 0 | } |
49 | |
|
50 | |
public CluAccountingInfo(CluAccounting cluAccounting) { |
51 | 0 | super(cluAccounting); |
52 | 0 | if (null != cluAccounting) { |
53 | 0 | this.id = cluAccounting.getId(); |
54 | 0 | this.affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>(); |
55 | 0 | for (AffiliatedOrg affiliatedOrg : cluAccounting.getAffiliatedOrgs()) { |
56 | 0 | this.affiliatedOrgs.add(new AffiliatedOrgInfo(affiliatedOrg)); |
57 | |
} |
58 | |
} |
59 | 0 | } |
60 | |
|
61 | |
@Override |
62 | |
public String getId() { |
63 | 0 | return id; |
64 | |
} |
65 | |
|
66 | |
public void setId(String id) { |
67 | 0 | this.id = id; |
68 | 0 | } |
69 | |
|
70 | |
@Override |
71 | |
public List<AffiliatedOrgInfo> getAffiliatedOrgs() { |
72 | 0 | return affiliatedOrgs; |
73 | |
} |
74 | |
|
75 | |
public void setAffiliatedOrgs(List<AffiliatedOrgInfo> affiliatedOrgs) { |
76 | 0 | this.affiliatedOrgs = affiliatedOrgs; |
77 | 0 | } |
78 | |
} |