1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.lum.clu.dto; |
17 | |
|
18 | |
import org.kuali.student.r2.common.dto.HasAttributesInfo; |
19 | |
import org.kuali.student.r2.common.dto.RichTextInfo; |
20 | |
import org.kuali.student.r2.lum.clu.infc.AffiliatedOrg; |
21 | |
import org.kuali.student.r2.lum.clu.infc.CluAccounting; |
22 | |
|
23 | |
import javax.xml.bind.Element; |
24 | |
import javax.xml.bind.annotation.XmlAccessType; |
25 | |
import javax.xml.bind.annotation.XmlAccessorType; |
26 | |
import javax.xml.bind.annotation.XmlAnyElement; |
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 = {"id", "descr", "affiliatedOrgs", "attributes", "_futureElements"}) |
35 | |
public class CluAccountingInfo extends HasAttributesInfo implements CluAccounting, Serializable { |
36 | |
|
37 | |
private static final long serialVersionUID = 1L; |
38 | |
|
39 | |
@XmlElement |
40 | |
private String id; |
41 | |
@XmlElement |
42 | |
private RichTextInfo descr; |
43 | |
@XmlElement |
44 | |
private List<AffiliatedOrgInfo> affiliatedOrgs; |
45 | |
@XmlAnyElement |
46 | |
private List<Element> _futureElements; |
47 | |
|
48 | 0 | public CluAccountingInfo() { |
49 | |
|
50 | 0 | } |
51 | |
|
52 | |
public CluAccountingInfo(CluAccounting cluAccounting) { |
53 | 0 | super(cluAccounting); |
54 | 0 | if (null != cluAccounting) { |
55 | 0 | this.id = cluAccounting.getId(); |
56 | 0 | this.affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>(); |
57 | 0 | for (AffiliatedOrg affiliatedOrg : cluAccounting.getAffiliatedOrgs()) { |
58 | 0 | this.affiliatedOrgs.add(new AffiliatedOrgInfo(affiliatedOrg)); |
59 | |
} |
60 | |
} |
61 | 0 | } |
62 | |
|
63 | |
@Override |
64 | |
public String getId() { |
65 | 0 | return id; |
66 | |
} |
67 | |
|
68 | |
public void setId(String id) { |
69 | 0 | this.id = id; |
70 | 0 | } |
71 | |
|
72 | |
@Override |
73 | |
public RichTextInfo getDescr() { |
74 | 0 | return descr; |
75 | |
} |
76 | |
|
77 | |
public void setDescr(RichTextInfo descr) { |
78 | 0 | this.descr = descr; |
79 | 0 | } |
80 | |
|
81 | |
|
82 | |
@Override |
83 | |
public List<AffiliatedOrgInfo> getAffiliatedOrgs() { |
84 | 0 | return affiliatedOrgs; |
85 | |
} |
86 | |
|
87 | |
public void setAffiliatedOrgs(List<AffiliatedOrgInfo> affiliatedOrgs) { |
88 | 0 | this.affiliatedOrgs = affiliatedOrgs; |
89 | 0 | } |
90 | |
} |