Clover Coverage Report - Kuali Student 1.2-SNAPSHOT (Aggregated)
Coverage timestamp: Thu Mar 3 2011 04:02:59 EST
../../../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
28   215   26   1.17
4   135   0.93   24
24     1.08  
1    
 
  ProgramRequirementInfo       Line # 50 28 0% 26 2 96.4% 0.96428573
 
  (7)
 
1    /*
2    * Copyright 2009 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 1.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * 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, software
11    * distributed under the License is distributed on an "AS IS" BASIS,
12    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13    * See the License for the specific language governing permissions and
14    * limitations under the License.
15    */
16    package org.kuali.student.lum.program.dto;
17   
18    import java.io.Serializable;
19    import java.util.ArrayList;
20    import java.util.HashMap;
21    import java.util.List;
22    import java.util.Map;
23   
24    import javax.xml.bind.annotation.XmlAccessType;
25    import javax.xml.bind.annotation.XmlAccessorType;
26    import javax.xml.bind.annotation.XmlAttribute;
27    import javax.xml.bind.annotation.XmlElement;
28    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
29   
30    import org.kuali.student.common.dto.HasAttributes;
31    import org.kuali.student.common.dto.HasTypeState;
32    import org.kuali.student.common.dto.Idable;
33    import org.kuali.student.common.dto.MetaInfo;
34    import org.kuali.student.common.dto.RichTextInfo;
35    import org.kuali.student.core.statement.dto.StatementTreeViewInfo;
36    import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
37    import org.kuali.student.lum.course.dto.LoDisplayInfo;
38    import org.kuali.student.lum.program.dto.assembly.ProgramCommonAssembly;
39   
40    /**
41    * Detailed information about a program requirement
42    *
43    * @Author KSContractMojo
44    * @Author Li Pan
45    * @Since Wed Jun 30 14:56:20 PDT 2010
46    * @See <a href="https://test.kuali.org/confluence/display/KULSTU/programRequirementInfo+Structure">ProgramRequirementInfo</>
47    *
48    */
49    @XmlAccessorType(XmlAccessType.FIELD)
 
50    public class ProgramRequirementInfo implements Serializable, Idable, HasTypeState, HasAttributes, ProgramCommonAssembly {
51   
52    private static final long serialVersionUID = 1L;
53   
54    @XmlElement
55    private String shortTitle;
56   
57    @XmlElement
58    private String longTitle;
59   
60    @XmlElement
61    private RichTextInfo descr;
62   
63    @XmlElement
64    private List<LoDisplayInfo> learningObjectives;
65   
66    @XmlElement
67    private StatementTreeViewInfo statement;
68   
69    @XmlElement
70    Integer minCredits;
71   
72    @XmlElement
73    Integer maxCredits;
74   
75    @XmlElement
76    @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
77    private Map<String, String> attributes;
78   
79    @XmlElement
80    private MetaInfo metaInfo;
81   
82    @XmlAttribute
83    private String type;
84   
85    @XmlAttribute
86    private String state;
87   
88    @XmlAttribute
89    private String id;
90   
 
91  9 toggle public String getShortTitle() {
92  9 return shortTitle;
93    }
94   
 
95  18 toggle public void setShortTitle(String shortTitle) {
96  18 this.shortTitle = shortTitle;
97    }
98   
 
99  9 toggle public String getLongTitle() {
100  9 return longTitle;
101    }
102   
 
103  18 toggle public void setLongTitle(String longTitle) {
104  18 this.longTitle = longTitle;
105    }
106   
 
107  15 toggle public RichTextInfo getDescr() {
108  15 return descr;
109    }
110   
 
111  18 toggle public void setDescr(RichTextInfo descr) {
112  18 this.descr = descr;
113    }
114   
 
115  37 toggle public List<LoDisplayInfo> getLearningObjectives() {
116  37 if(null == learningObjectives) {
117  5 learningObjectives = new ArrayList<LoDisplayInfo>(0);
118    }
119  37 return learningObjectives;
120    }
121   
 
122  11 toggle public void setLearningObjectives(List<LoDisplayInfo> learningObjectives) {
123  11 this.learningObjectives = learningObjectives;
124    }
125   
 
126  34 toggle public StatementTreeViewInfo getStatement() {
127  34 return statement;
128    }
129   
 
130  11 toggle public void setStatement(StatementTreeViewInfo statement) {
131  11 this.statement = statement;
132    }
133   
 
134  12 toggle public Integer getMinCredits() {
135  12 return minCredits;
136    }
137   
 
138  13 toggle public void setMinCredits(Integer minCredits) {
139  13 this.minCredits = minCredits;
140    }
141   
 
142  12 toggle public Integer getMaxCredits() {
143  12 return maxCredits;
144    }
145   
 
146  13 toggle public void setMaxCredits(Integer maxCredits) {
147  13 this.maxCredits = maxCredits;
148    }
149   
150    /**
151    * List of key/value pairs, typically used for dynamic attributes.
152    */
 
153  9 toggle @Override
154    public Map<String, String> getAttributes() {
155  9 if (attributes == null) {
156  6 attributes = new HashMap<String, String>();
157    }
158  9 return attributes;
159    }
160   
 
161  12 toggle @Override
162    public void setAttributes(Map<String, String> attributes) {
163  12 this.attributes = attributes;
164    }
165   
166    /**
167    * 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.
168    */
 
169  9 toggle public MetaInfo getMetaInfo() {
170  9 return metaInfo;
171    }
172   
 
173  12 toggle public void setMetaInfo(MetaInfo metaInfo) {
174  12 this.metaInfo = metaInfo;
175    }
176   
177    /**
178    * Unique identifier for a learning unit type. Once set at create time, this field may not be updated.
179    */
 
180  9 toggle @Override
181    public String getType() {
182  9 return type;
183    }
184   
 
185  18 toggle @Override
186    public void setType(String type) {
187  18 this.type = type;
188    }
189   
190    /**
191    * The current status of the credential program. The values for this field are constrained to those in the luState enumeration. A separate setup operation does not exist for retrieval of the meta data around this value.
192    */
 
193  18 toggle @Override
194    public String getState() {
195  18 return state;
196    }
197   
 
198  0 toggle @Override
199    public void setState(String state) {
200  0 this.state = state;
201    }
202   
203    /**
204    * Unique identifier for a Program Requirement This is optional, due to the identifier being set at the time of creation. Once the Program has been created, this should be seen as required.
205    */
 
206  39 toggle @Override
207    public String getId() {
208  39 return id;
209    }
210   
 
211  21 toggle @Override
212    public void setId(String id) {
213  21 this.id = id;
214    }
215    }