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.TimeAmountInfo;
19 import org.kuali.student.r2.lum.clu.infc.CluCredit;
20
21 import javax.xml.bind.Element;
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.XmlElement;
26 import javax.xml.bind.annotation.XmlType;
27 import java.io.Serializable;
28 import java.util.List;
29
30
31 @XmlAccessorType(XmlAccessType.FIELD)
32 @XmlType(name = "CluCreditInfo", propOrder = {"repeatCount", "repeatTime", "repeatUnits", "minTotalUnits", "maxTotalUnits", "instructorUnits", "minTimeToComplete", "maxTimeToComplete", "maxAllowableInactivity", "maxTimeResultsRecognized" , "_futureElements" })
33 public class CluCreditInfo implements Serializable, CluCredit {
34
35 private static final long serialVersionUID = 1L;
36
37 @XmlElement
38 private String repeatCount;
39
40 @XmlElement
41 private TimeAmountInfo repeatTime;
42
43 @XmlElement
44 private String repeatUnits;
45
46 @XmlElement
47 private Integer minTotalUnits;
48
49 @XmlElement
50 private Integer instructorUnits;
51
52 @XmlElement
53 private Integer maxTotalUnits;
54
55 @XmlElement
56 private TimeAmountInfo minTimeToComplete;
57
58 @XmlElement
59 private TimeAmountInfo maxTimeToComplete;
60
61 @XmlElement
62 private TimeAmountInfo maxAllowableInactivity;
63
64 @XmlElement
65 private TimeAmountInfo maxTimeResultsRecognized;
66
67 @XmlAnyElement
68 private List<Object> _futureElements;
69
70 public CluCreditInfo() {
71
72 }
73
74 public CluCreditInfo(CluCredit cluCredit) {
75 if (null != cluCredit) {
76 this.repeatCount = cluCredit.getRepeatCount();
77 this.repeatTime = (null != cluCredit.getRepeatTime()) ? new TimeAmountInfo(cluCredit.getRepeatTime()) : null;
78 this.repeatUnits = cluCredit.getRepeatUnits();
79 this.minTotalUnits = cluCredit.getMinTotalUnits();
80 this.instructorUnits = cluCredit.getInstructorUnits();
81 this.maxTotalUnits = cluCredit.getMaxTotalUnits();
82 this.minTimeToComplete = (null != cluCredit.getMinTimeToComplete()) ? new TimeAmountInfo(cluCredit.getMinTimeToComplete()) : null;
83 this.maxTimeToComplete = (null != cluCredit.getMaxTimeToComplete()) ? new TimeAmountInfo(cluCredit.getMaxTimeToComplete()) : null;
84 this.maxAllowableInactivity = (null != cluCredit.getMaxAllowableInactivity()) ? new TimeAmountInfo(cluCredit.getMaxAllowableInactivity()) : null;
85 this.maxTimeResultsRecognized = (null != cluCredit.getMaxTimeResultsRecognized()) ? new TimeAmountInfo(cluCredit.getMaxTimeResultsRecognized()) : null;
86 }
87 }
88
89 @Override
90 public String getRepeatCount() {
91 return repeatCount;
92 }
93
94 public void setRepeatCount(String repeatCount) {
95 this.repeatCount = repeatCount;
96 }
97
98 @Override
99 public TimeAmountInfo getRepeatTime() {
100 return repeatTime;
101 }
102
103 public void setRepeatTime(TimeAmountInfo repeatTime) {
104 this.repeatTime = repeatTime;
105 }
106
107 @Override
108 public String getRepeatUnits() {
109 return repeatUnits;
110 }
111
112 public void setRepeatUnits(String repeatUnits) {
113 this.repeatUnits = repeatUnits;
114 }
115
116 @Override
117 public Integer getMinTotalUnits() {
118 return minTotalUnits;
119 }
120
121 public void setMinTotalUnits(Integer minTotalUnits) {
122 this.minTotalUnits = minTotalUnits;
123 }
124
125 @Override
126 public Integer getMaxTotalUnits() {
127 return maxTotalUnits;
128 }
129
130 public void setMaxTotalUnits(Integer maxTotalUnits) {
131 this.maxTotalUnits = maxTotalUnits;
132 }
133
134 @Override
135 public Integer getInstructorUnits() {
136 return instructorUnits;
137 }
138
139 public void setInstructorUnits(Integer instructorUnits) {
140 this.instructorUnits = instructorUnits;
141 }
142
143 @Override
144 public TimeAmountInfo getMinTimeToComplete() {
145 return minTimeToComplete;
146 }
147
148 public void setMinTimeToComplete(TimeAmountInfo minTimeToComplete) {
149 this.minTimeToComplete = minTimeToComplete;
150 }
151
152 @Override
153 public TimeAmountInfo getMaxTimeToComplete() {
154 return maxTimeToComplete;
155 }
156
157 public void setMaxTimeToComplete(TimeAmountInfo maxTimeToComplete) {
158 this.maxTimeToComplete = maxTimeToComplete;
159 }
160
161 @Override
162 public TimeAmountInfo getMaxAllowableInactivity() {
163 return maxAllowableInactivity;
164 }
165
166 public void setMaxAllowableInactivity(TimeAmountInfo maxAllowableInactivity) {
167 this.maxAllowableInactivity = maxAllowableInactivity;
168 }
169
170 @Override
171 public TimeAmountInfo getMaxTimeResultsRecognized() {
172 return maxTimeResultsRecognized;
173 }
174
175 public void setMaxTimeResultsRecognized(TimeAmountInfo maxTimeResultsRecognized) {
176 this.maxTimeResultsRecognized = maxTimeResultsRecognized;
177 }
178 }