Clover Coverage Report - Kuali Student 1.2-M1-SNAPSHOT (Aggregated)
Coverage timestamp: Fri Mar 4 2011 04:03:38 EST
../../../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
24   198   22   1.2
4   109   0.92   20
20     1.1  
1    
 
  ResultComponentInfo       Line # 48 24 0% 22 0 100% 1.0
 
  (31)
 
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.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.common.dto.HasAttributes;
32    import org.kuali.student.common.dto.HasTypeState;
33    import org.kuali.student.common.dto.Idable;
34    import org.kuali.student.common.dto.MetaInfo;
35    import org.kuali.student.common.dto.RichTextInfo;
36    import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
37   
38    /**
39    * Detailed information about a result component.
40    *
41    * @Author KSContractMojo
42    * @Author lindholm
43    * @Since Tue Apr 21 13:47:47 PDT 2009
44    * @See <a href="https://test.kuali.org/confluence/display/KULSTU/resultComponentInfo+Structure">ResultComponentInfo</>
45    *
46    */
47    @XmlAccessorType(XmlAccessType.FIELD)
 
48    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    * Friendly name of the result component
85    */
 
86  31 toggle public String getName() {
87  31 return name;
88    }
89   
 
90  162 toggle public void setName(String name) {
91  162 this.name = name;
92    }
93   
94    /**
95    * Narrative description of the result component
96    */
 
97  29 toggle public RichTextInfo getDesc() {
98  29 return desc;
99    }
100   
 
101  148 toggle public void setDesc(RichTextInfo desc) {
102  148 this.desc = desc;
103    }
104   
105    /**
106    * List of result values
107    */
 
108  210 toggle public List<String> getResultValues() {
109  210 if (resultValues == null) {
110  1 resultValues = new ArrayList<String>(0);
111    }
112  210 return resultValues;
113    }
114   
 
115  167 toggle public void setResultValues(List<String> resultValues) {
116  167 this.resultValues = resultValues;
117    }
118   
119    /**
120    * Date and time that this result component 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.
121    */
 
122  29 toggle public Date getEffectiveDate() {
123  29 return effectiveDate;
124    }
125   
 
126  148 toggle public void setEffectiveDate(Date effectiveDate) {
127  148 this.effectiveDate = effectiveDate;
128    }
129   
130    /**
131    * Date and time that this result component expires. This is a similar concept to the expiration date on enumerated values. If specified, this should 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.
132    */
 
133  29 toggle public Date getExpirationDate() {
134  29 return expirationDate;
135    }
136   
 
137  148 toggle public void setExpirationDate(Date expirationDate) {
138  148 this.expirationDate = expirationDate;
139    }
140   
141    /**
142    * List of key/value pairs, typically used for dynamic attributes.
143    */
 
144  173 toggle public Map<String, String> getAttributes() {
145  173 if (attributes == null) {
146  2 attributes = new HashMap<String, String>();
147    }
148  173 return attributes;
149    }
150   
 
151  150 toggle public void setAttributes(Map<String, String> attributes) {
152  150 this.attributes = attributes;
153    }
154   
155    /**
156    * 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.
157    */
 
158  23 toggle public MetaInfo getMetaInfo() {
159  23 return metaInfo;
160    }
161   
 
162  116 toggle public void setMetaInfo(MetaInfo metaInfo) {
163  116 this.metaInfo = metaInfo;
164    }
165   
166    /**
167    * Unique identifier for a result component type.
168    */
 
169  95 toggle public String getType() {
170  95 return type;
171    }
172   
 
173  156 toggle public void setType(String type) {
174  156 this.type = type;
175    }
176   
177    /**
178    * The current status of the result component. The values for this field are constrained to those in the state enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
179    */
 
180  29 toggle public String getState() {
181  29 return state;
182    }
183   
 
184  152 toggle public void setState(String state) {
185  152 this.state = state;
186    }
187   
188    /**
189    * Unique identifier for a result component. This is optional, due to the identifier being set at the time of creation. Once the result component has been created, this should be seen as required.
190    */
 
191  124 toggle public String getId() {
192  124 return id;
193    }
194   
 
195  214 toggle public void setId(String id) {
196  214 this.id = id;
197    }
198    }