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" })
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
68
69
70
71 public CluCreditInfo() {
72
73 }
74
75 public CluCreditInfo(CluCredit cluCredit) {
76 if (null != cluCredit) {
77 this.repeatCount = cluCredit.getRepeatCount();
78 this.repeatTime = (null != cluCredit.getRepeatTime()) ? new TimeAmountInfo(cluCredit.getRepeatTime()) : null;
79 this.repeatUnits = cluCredit.getRepeatUnits();
80 this.minTotalUnits = cluCredit.getMinTotalUnits();
81 this.instructorUnits = cluCredit.getInstructorUnits();
82 this.maxTotalUnits = cluCredit.getMaxTotalUnits();
83 this.minTimeToComplete = (null != cluCredit.getMinTimeToComplete()) ? new TimeAmountInfo(cluCredit.getMinTimeToComplete()) : null;
84 this.maxTimeToComplete = (null != cluCredit.getMaxTimeToComplete()) ? new TimeAmountInfo(cluCredit.getMaxTimeToComplete()) : null;
85 this.maxAllowableInactivity = (null != cluCredit.getMaxAllowableInactivity()) ? new TimeAmountInfo(cluCredit.getMaxAllowableInactivity()) : null;
86 this.maxTimeResultsRecognized = (null != cluCredit.getMaxTimeResultsRecognized()) ? new TimeAmountInfo(cluCredit.getMaxTimeResultsRecognized()) : null;
87 }
88 }
89
90 @Override
91 public String getRepeatCount() {
92 return repeatCount;
93 }
94
95 public void setRepeatCount(String repeatCount) {
96 this.repeatCount = repeatCount;
97 }
98
99 @Override
100 public TimeAmountInfo getRepeatTime() {
101 return repeatTime;
102 }
103
104 public void setRepeatTime(TimeAmountInfo repeatTime) {
105 this.repeatTime = repeatTime;
106 }
107
108 @Override
109 public String getRepeatUnits() {
110 return repeatUnits;
111 }
112
113 public void setRepeatUnits(String repeatUnits) {
114 this.repeatUnits = repeatUnits;
115 }
116
117 @Override
118 public Integer getMinTotalUnits() {
119 return minTotalUnits;
120 }
121
122 public void setMinTotalUnits(Integer minTotalUnits) {
123 this.minTotalUnits = minTotalUnits;
124 }
125
126 @Override
127 public Integer getMaxTotalUnits() {
128 return maxTotalUnits;
129 }
130
131 public void setMaxTotalUnits(Integer maxTotalUnits) {
132 this.maxTotalUnits = maxTotalUnits;
133 }
134
135 @Override
136 public Integer getInstructorUnits() {
137 return instructorUnits;
138 }
139
140 public void setInstructorUnits(Integer instructorUnits) {
141 this.instructorUnits = instructorUnits;
142 }
143
144 @Override
145 public TimeAmountInfo getMinTimeToComplete() {
146 return minTimeToComplete;
147 }
148
149 public void setMinTimeToComplete(TimeAmountInfo minTimeToComplete) {
150 this.minTimeToComplete = minTimeToComplete;
151 }
152
153 @Override
154 public TimeAmountInfo getMaxTimeToComplete() {
155 return maxTimeToComplete;
156 }
157
158 public void setMaxTimeToComplete(TimeAmountInfo maxTimeToComplete) {
159 this.maxTimeToComplete = maxTimeToComplete;
160 }
161
162 @Override
163 public TimeAmountInfo getMaxAllowableInactivity() {
164 return maxAllowableInactivity;
165 }
166
167 public void setMaxAllowableInactivity(TimeAmountInfo maxAllowableInactivity) {
168 this.maxAllowableInactivity = maxAllowableInactivity;
169 }
170
171 @Override
172 public TimeAmountInfo getMaxTimeResultsRecognized() {
173 return maxTimeResultsRecognized;
174 }
175
176 public void setMaxTimeResultsRecognized(TimeAmountInfo maxTimeResultsRecognized) {
177 this.maxTimeResultsRecognized = maxTimeResultsRecognized;
178 }
179 }