Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ResultOptionInfo |
|
| 1.0;1 |
1 | /** | |
2 | * Copyright 2010 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the | |
5 | * "License"); you may not use this file except in compliance with the | |
6 | * License. You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl1.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, | |
11 | * software distributed under the License is distributed on an "AS IS" | |
12 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | |
13 | * or implied. See the License for the specific language governing | |
14 | * permissions and limitations under the License. | |
15 | */ | |
16 | ||
17 | package org.kuali.student.lum.lu.dto; | |
18 | ||
19 | import org.kuali.student.core.dto.Idable; | |
20 | import org.kuali.student.core.dto.MetaInfo; | |
21 | import org.kuali.student.core.dto.RichTextInfo; | |
22 | ||
23 | import javax.xml.bind.annotation.XmlAccessType; | |
24 | import javax.xml.bind.annotation.XmlAccessorType; | |
25 | import javax.xml.bind.annotation.XmlAttribute; | |
26 | import javax.xml.bind.annotation.XmlElement; | |
27 | import java.io.Serializable; | |
28 | import java.util.Date; | |
29 | ||
30 | ||
31 | /** | |
32 | * Information about a result option. | |
33 | * | |
34 | * @Author Kamal | |
35 | * @Since Mon Jan 11 15:21:31 PST 2010 | |
36 | */ | |
37 | ||
38 | @XmlAccessorType(XmlAccessType.FIELD) | |
39 | 0 | public class ResultOptionInfo implements Serializable, Idable { |
40 | ||
41 | private static final long serialVersionUID = 1L; | |
42 | ||
43 | @XmlElement | |
44 | private RichTextInfo desc; | |
45 | ||
46 | @XmlElement | |
47 | private String resultUsageTypeKey; | |
48 | ||
49 | @XmlElement | |
50 | private String resultComponentId; | |
51 | ||
52 | @XmlElement | |
53 | private Date effectiveDate; | |
54 | ||
55 | @XmlElement | |
56 | private Date expirationDate; | |
57 | ||
58 | @XmlElement | |
59 | private MetaInfo metaInfo; | |
60 | ||
61 | @XmlAttribute | |
62 | private String state; | |
63 | ||
64 | @XmlAttribute | |
65 | private String id; | |
66 | ||
67 | /** | |
68 | * Narrative description of the result option. | |
69 | */ | |
70 | ||
71 | public RichTextInfo getDesc() { | |
72 | 0 | return desc; |
73 | } | |
74 | ||
75 | public void setDesc(RichTextInfo desc) { | |
76 | 0 | this.desc = desc; |
77 | 0 | } |
78 | ||
79 | ||
80 | /** | |
81 | * Unique identifier for a result usage type. | |
82 | */ | |
83 | ||
84 | public String getResultUsageTypeKey() { | |
85 | 0 | return resultUsageTypeKey; |
86 | } | |
87 | ||
88 | public void setResultUsageTypeKey(String resultUsageTypeKey) { | |
89 | 0 | this.resultUsageTypeKey = resultUsageTypeKey; |
90 | 0 | } |
91 | ||
92 | ||
93 | /** | |
94 | * Unique identifier for a result component. | |
95 | */ | |
96 | ||
97 | public String getResultComponentId() { | |
98 | 0 | return resultComponentId; |
99 | } | |
100 | ||
101 | public void setResultComponentId(String resultComponentId) { | |
102 | 0 | this.resultComponentId = resultComponentId; |
103 | 0 | } |
104 | ||
105 | ||
106 | /** | |
107 | * Date and time that this result option became effective. This is | |
108 | * a similar concept to the effective date on enumerated | |
109 | * values. When an expiration date has been specified, this field | |
110 | * must be less than or equal to the expiration date. | |
111 | */ | |
112 | ||
113 | public Date getEffectiveDate() { | |
114 | 0 | return effectiveDate; |
115 | } | |
116 | ||
117 | public void setEffectiveDate(Date effectiveDate) { | |
118 | 0 | this.effectiveDate = effectiveDate; |
119 | 0 | } |
120 | ||
121 | ||
122 | /** | |
123 | * Date and time that this result option expires. This is a | |
124 | * similar concept to the expiration date on enumerated values. If | |
125 | * specified, this must be greater than or equal to the effective | |
126 | * date. If this field is not specified, then no expiration date | |
127 | * has been currently defined and should automatically be | |
128 | * considered greater than the effective date. | |
129 | */ | |
130 | ||
131 | public Date getExpirationDate() { | |
132 | 0 | return expirationDate; |
133 | } | |
134 | ||
135 | public void setExpirationDate(Date expirationDate) { | |
136 | 0 | this.expirationDate = expirationDate; |
137 | 0 | } |
138 | ||
139 | ||
140 | /** | |
141 | * Create and last update info for the structure. This is optional | |
142 | * and treated as read only since the data is set by the internals | |
143 | * of the service during maintenance operations. | |
144 | */ | |
145 | ||
146 | public MetaInfo getMetaInfo() { | |
147 | 0 | return metaInfo; |
148 | } | |
149 | ||
150 | public void setMetaInfo(MetaInfo metaInfo) { | |
151 | 0 | this.metaInfo = metaInfo; |
152 | 0 | } |
153 | ||
154 | ||
155 | /** | |
156 | * The current status of the result option. The values for this | |
157 | * field are constrained to those in the resultOptionState | |
158 | * enumeration. A separate setup operation does not exist for | |
159 | * retrieval of the meta data around this value. | |
160 | */ | |
161 | ||
162 | public String getState() { | |
163 | 0 | return state; |
164 | } | |
165 | ||
166 | public void setState(String state) { | |
167 | 0 | this.state = state; |
168 | 0 | } |
169 | ||
170 | ||
171 | /** | |
172 | * Unique identifier for a result option. This is optional, due to | |
173 | * the identifier being set at the time of creation. Once the | |
174 | * result option has been created, this should be seen as | |
175 | * required. | |
176 | */ | |
177 | ||
178 | public String getId() { | |
179 | 0 | return id; |
180 | } | |
181 | ||
182 | public void setId(String id) { | |
183 | 0 | this.id = id; |
184 | 0 | } |
185 | } |