1 | |
package org.kuali.student.enrollment.class2.acal.dto; |
2 | |
|
3 | |
import org.apache.commons.lang.StringUtils; |
4 | |
import org.kuali.student.r2.core.type.dto.TypeInfo; |
5 | |
|
6 | |
import java.util.ArrayList; |
7 | |
import java.util.List; |
8 | |
|
9 | |
public class KeyDatesGroupWrapper { |
10 | |
|
11 | |
private String keyDateGroupType; |
12 | |
private String keyDateGroupNameUI; |
13 | |
private List<KeyDateWrapper> keydates; |
14 | |
|
15 | |
private TypeInfo typeInfo; |
16 | |
|
17 | 0 | public KeyDatesGroupWrapper(){ |
18 | 0 | keydates = new ArrayList<KeyDateWrapper>(); |
19 | 0 | } |
20 | |
|
21 | 0 | public KeyDatesGroupWrapper(String keydateGroupType,String nameUI){ |
22 | 0 | this.keydates = new ArrayList<KeyDateWrapper>(); |
23 | 0 | this.keyDateGroupType = keydateGroupType; |
24 | 0 | this.keyDateGroupNameUI = nameUI; |
25 | 0 | } |
26 | |
|
27 | |
public String getKeyDateGroupNameUI() { |
28 | 0 | return keyDateGroupNameUI; |
29 | |
} |
30 | |
|
31 | |
public void setKeyDateGroupNameUI(String keyDateGroupNameUI) { |
32 | 0 | this.keyDateGroupNameUI = keyDateGroupNameUI; |
33 | 0 | } |
34 | |
|
35 | |
public String getKeyDateGroupType() { |
36 | 0 | return keyDateGroupType; |
37 | |
} |
38 | |
|
39 | |
public void setKeyDateGroupType(String keyDateGroupType) { |
40 | 0 | this.keyDateGroupType = keyDateGroupType; |
41 | 0 | } |
42 | |
|
43 | |
public List<KeyDateWrapper> getKeydates() { |
44 | 0 | return keydates; |
45 | |
} |
46 | |
|
47 | |
public void setKeydates(List<KeyDateWrapper> keydates) { |
48 | 0 | this.keydates = keydates; |
49 | 0 | } |
50 | |
|
51 | |
public TypeInfo getTypeInfo() { |
52 | 0 | return typeInfo; |
53 | |
} |
54 | |
|
55 | |
public void setTypeInfo(TypeInfo typeInfo) { |
56 | 0 | this.typeInfo = typeInfo; |
57 | 0 | } |
58 | |
|
59 | |
public boolean isKeyDateExists(String keyDateType){ |
60 | 0 | for (KeyDateWrapper keydate : keydates) { |
61 | 0 | if (StringUtils.equals(keyDateType,keydate.getKeyDateType())){ |
62 | 0 | return true; |
63 | |
} |
64 | |
} |
65 | 0 | return false; |
66 | |
} |
67 | |
|
68 | |
} |