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 java.io.Serializable;
19 import java.util.ArrayList;
20 import java.util.List;
21
22 import javax.xml.bind.annotation.XmlAccessType;
23 import javax.xml.bind.annotation.XmlAccessorType;
24 import javax.xml.bind.annotation.XmlAnyElement;
25 import javax.xml.bind.annotation.XmlAttribute;
26 import javax.xml.bind.annotation.XmlElement;
27 import javax.xml.bind.annotation.XmlType;
28
29 import org.kuali.student.r2.common.dto.HasAttributesAndMetaInfo;
30 import org.kuali.student.r2.common.dto.RichTextInfo;
31 import org.kuali.student.r2.lum.clu.infc.CluFee;
32 import org.kuali.student.r2.lum.clu.infc.CluFeeRecord;
33
34 @XmlAccessorType(XmlAccessType.FIELD)
35 @XmlType(name = "CluFeeInfo", propOrder = {"id", "descr", "cluFeeRecords", "attributes", "meta" , "_futureElements" })
36 public class CluFeeInfo extends HasAttributesAndMetaInfo implements CluFee, Serializable {
37
38 private static final long serialVersionUID = 1L;
39
40 @XmlAttribute
41 private String id;
42
43 @XmlElement
44 private RichTextInfo descr;
45
46 @XmlElement
47 private List<CluFeeRecordInfo> cluFeeRecords;
48
49 @XmlAnyElement
50 private List<Object> _futureElements;
51
52 public CluFeeInfo() {
53
54 }
55
56 public CluFeeInfo(CluFee cluFee) {
57 super(cluFee);
58 if (null != cluFee) {
59 this.id = cluFee.getId();
60 this.descr = cluFee.getDescr();
61 this.cluFeeRecords = new ArrayList<CluFeeRecordInfo>();
62 for (CluFeeRecord cluFeeRecord : cluFee.getCluFeeRecords()) {
63 this.cluFeeRecords.add(new CluFeeRecordInfo(cluFeeRecord));
64 }
65 }
66 }
67
68 @Override
69 public List<CluFeeRecordInfo> getCluFeeRecords() {
70 if (cluFeeRecords == null) {
71 cluFeeRecords = new ArrayList<CluFeeRecordInfo>(0);
72 }
73 return cluFeeRecords;
74 }
75
76 public void setCluFeeRecords(List<CluFeeRecordInfo> cluFeeRecords) {
77 this.cluFeeRecords = cluFeeRecords;
78 }
79
80 @Override
81 public String getId() {
82 return id;
83 }
84
85 public void setId(String id) {
86 this.id = id;
87 }
88
89 @Override
90 public RichTextInfo getDescr() {
91 return descr;
92 }
93
94 public void setDescr(RichTextInfo descr) {
95 this.descr = descr;
96 }
97
98 }