1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.statement.ui.client.widgets.rules; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
|
20 | |
import org.kuali.student.common.dto.Idable; |
21 | |
import org.kuali.student.core.statement.dto.ReqComponentInfo; |
22 | |
|
23 | |
public class ReqComponentVO extends Token implements Serializable, Idable { |
24 | |
|
25 | |
private static final long serialVersionUID = 1L; |
26 | |
private String id; |
27 | |
private ReqComponentInfo reqComponentInfo; |
28 | |
private String typeDesc; |
29 | |
private boolean dirty; |
30 | 0 | private String clusetId = null; |
31 | |
|
32 | |
private String guiReferenceLabelId; |
33 | |
|
34 | 0 | public ReqComponentVO() {} |
35 | |
|
36 | 0 | public ReqComponentVO(ReqComponentInfo reqComponentInfo) { |
37 | 0 | this.reqComponentInfo = reqComponentInfo; |
38 | 0 | this.id = reqComponentInfo.getId(); |
39 | 0 | } |
40 | |
|
41 | |
public ReqComponentInfo getReqComponentInfo() { |
42 | 0 | return reqComponentInfo; |
43 | |
} |
44 | |
|
45 | |
public void setReqComponentInfo(ReqComponentInfo reqComponentInfo) { |
46 | 0 | this.reqComponentInfo = reqComponentInfo; |
47 | 0 | } |
48 | |
|
49 | |
public String getTypeDesc() { |
50 | 0 | return typeDesc; |
51 | |
} |
52 | |
|
53 | |
public void setTypeDesc(String typeDesc) { |
54 | 0 | this.typeDesc = typeDesc; |
55 | 0 | } |
56 | |
|
57 | |
public boolean isDirty() { |
58 | 0 | return dirty; |
59 | |
} |
60 | |
|
61 | |
public void setDirty(boolean dirty) { |
62 | 0 | this.dirty = dirty; |
63 | 0 | } |
64 | |
|
65 | |
public String getClusetId() { |
66 | 0 | return clusetId; |
67 | |
} |
68 | |
|
69 | |
public void setClusetId(String clusetId) { |
70 | 0 | this.clusetId = clusetId; |
71 | 0 | } |
72 | |
|
73 | |
public String getGuiReferenceLabelId() { |
74 | 0 | return guiReferenceLabelId; |
75 | |
} |
76 | |
|
77 | |
public void setGuiReferenceLabelId(String guiReferenceLabelId) { |
78 | 0 | this.guiReferenceLabelId = guiReferenceLabelId; |
79 | 0 | this.setTokenID(guiReferenceLabelId); |
80 | 0 | } |
81 | |
|
82 | |
@Override |
83 | |
public String getId() { |
84 | 0 | return id; |
85 | |
} |
86 | |
|
87 | |
@Override |
88 | |
public void setId(String id) { |
89 | 0 | this.id = id; |
90 | 0 | } |
91 | |
|
92 | |
@Override |
93 | |
public boolean equals(Object obj) { |
94 | 0 | return this == obj; |
95 | |
} |
96 | |
|
97 | |
@Override |
98 | |
public String toString() { |
99 | |
|
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
|
105 | |
|
106 | |
|
107 | 0 | return reqComponentInfo.getNaturalLanguageTranslation(); |
108 | |
} |
109 | |
} |