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