1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.lum.lrc.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.ArrayList; |
20 | |
import java.util.Date; |
21 | |
import java.util.HashMap; |
22 | |
import java.util.List; |
23 | |
import java.util.Map; |
24 | |
|
25 | |
import javax.xml.bind.annotation.XmlAccessType; |
26 | |
import javax.xml.bind.annotation.XmlAccessorType; |
27 | |
import javax.xml.bind.annotation.XmlAttribute; |
28 | |
import javax.xml.bind.annotation.XmlElement; |
29 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
30 | |
|
31 | |
import org.kuali.student.core.dto.HasAttributes; |
32 | |
import org.kuali.student.core.dto.HasTypeState; |
33 | |
import org.kuali.student.core.dto.Idable; |
34 | |
import org.kuali.student.core.dto.MetaInfo; |
35 | |
import org.kuali.student.core.dto.RichTextInfo; |
36 | |
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | |
@XmlAccessorType(XmlAccessType.FIELD) |
48 | 0 | public class ResultComponentInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
49 | |
|
50 | |
private static final long serialVersionUID = 1L; |
51 | |
|
52 | |
@XmlElement |
53 | |
private String name; |
54 | |
|
55 | |
@XmlElement |
56 | |
private RichTextInfo desc; |
57 | |
|
58 | |
@XmlElement |
59 | |
private List<String> resultValues; |
60 | |
|
61 | |
@XmlElement |
62 | |
private Date effectiveDate; |
63 | |
|
64 | |
@XmlElement |
65 | |
private Date expirationDate; |
66 | |
|
67 | |
@XmlElement |
68 | |
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
69 | |
private Map<String, String> attributes; |
70 | |
|
71 | |
@XmlElement |
72 | |
private MetaInfo metaInfo; |
73 | |
|
74 | |
@XmlAttribute |
75 | |
private String type; |
76 | |
|
77 | |
@XmlAttribute |
78 | |
private String state; |
79 | |
|
80 | |
@XmlAttribute |
81 | |
private String id; |
82 | |
|
83 | |
|
84 | |
|
85 | |
|
86 | |
public String getName() { |
87 | 0 | return name; |
88 | |
} |
89 | |
|
90 | |
public void setName(String name) { |
91 | 0 | this.name = name; |
92 | 0 | } |
93 | |
|
94 | |
|
95 | |
|
96 | |
|
97 | |
public RichTextInfo getDesc() { |
98 | 0 | return desc; |
99 | |
} |
100 | |
|
101 | |
public void setDesc(RichTextInfo desc) { |
102 | 0 | this.desc = desc; |
103 | 0 | } |
104 | |
|
105 | |
|
106 | |
|
107 | |
|
108 | |
public List<String> getResultValues() { |
109 | 0 | if (resultValues == null) { |
110 | 0 | resultValues = new ArrayList<String>(0); |
111 | |
} |
112 | 0 | return resultValues; |
113 | |
} |
114 | |
|
115 | |
public void setResultValues(List<String> resultValues) { |
116 | 0 | this.resultValues = resultValues; |
117 | 0 | } |
118 | |
|
119 | |
|
120 | |
|
121 | |
|
122 | |
public Date getEffectiveDate() { |
123 | 0 | return effectiveDate; |
124 | |
} |
125 | |
|
126 | |
public void setEffectiveDate(Date effectiveDate) { |
127 | 0 | this.effectiveDate = effectiveDate; |
128 | 0 | } |
129 | |
|
130 | |
|
131 | |
|
132 | |
|
133 | |
public Date getExpirationDate() { |
134 | 0 | return expirationDate; |
135 | |
} |
136 | |
|
137 | |
public void setExpirationDate(Date expirationDate) { |
138 | 0 | this.expirationDate = expirationDate; |
139 | 0 | } |
140 | |
|
141 | |
|
142 | |
|
143 | |
|
144 | |
public Map<String, String> getAttributes() { |
145 | 0 | if (attributes == null) { |
146 | 0 | attributes = new HashMap<String, String>(); |
147 | |
} |
148 | 0 | return attributes; |
149 | |
} |
150 | |
|
151 | |
public void setAttributes(Map<String, String> attributes) { |
152 | 0 | this.attributes = attributes; |
153 | 0 | } |
154 | |
|
155 | |
|
156 | |
|
157 | |
|
158 | |
public MetaInfo getMetaInfo() { |
159 | 0 | return metaInfo; |
160 | |
} |
161 | |
|
162 | |
public void setMetaInfo(MetaInfo metaInfo) { |
163 | 0 | this.metaInfo = metaInfo; |
164 | 0 | } |
165 | |
|
166 | |
|
167 | |
|
168 | |
|
169 | |
public String getType() { |
170 | 0 | return type; |
171 | |
} |
172 | |
|
173 | |
public void setType(String type) { |
174 | 0 | this.type = type; |
175 | 0 | } |
176 | |
|
177 | |
|
178 | |
|
179 | |
|
180 | |
public String getState() { |
181 | 0 | return state; |
182 | |
} |
183 | |
|
184 | |
public void setState(String state) { |
185 | 0 | this.state = state; |
186 | 0 | } |
187 | |
|
188 | |
|
189 | |
|
190 | |
|
191 | |
public String getId() { |
192 | 0 | return id; |
193 | |
} |
194 | |
|
195 | |
public void setId(String id) { |
196 | 0 | this.id = id; |
197 | 0 | } |
198 | |
} |