Clover Coverage Report - KS LUM 1.1.1-SNAPSHOT (Aggregated)
Coverage timestamp: Wed Apr 20 2011 05:50:45 EST
../../../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
26   205   25   1.08
2   115   0.96   24
24     1.04  
1    
 
  CluIdentifierInfo       Line # 35 26 0% 25 0 100% 1.0
 
  (107)
 
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.HashMap;
20    import java.util.Map;
21   
22    import javax.xml.bind.annotation.XmlAccessType;
23    import javax.xml.bind.annotation.XmlAccessorType;
24    import javax.xml.bind.annotation.XmlAttribute;
25    import javax.xml.bind.annotation.XmlElement;
26    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
27   
28    import org.kuali.student.core.dto.Idable;
29    import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter;
30   
31    /**
32    *Detailed information about the human readable form of a CLU Identifier
33    */
34    @XmlAccessorType(XmlAccessType.FIELD)
 
35    public class CluIdentifierInfo implements Serializable, Idable {
36   
37    private static final long serialVersionUID = 1L;
38   
39    @XmlElement
40    private String code;
41   
42    @XmlElement
43    private String shortName;
44   
45    @XmlElement
46    private String longName;
47   
48    @XmlElement
49    private String level;
50   
51    @XmlElement
52    private String division;
53   
54    @XmlElement
55    private String variation;
56   
57    @XmlElement
58    private String suffixCode;
59   
60    @XmlElement
61    private String orgId;
62   
63    @XmlAttribute
64    private String type;
65   
66    @XmlAttribute
67    private String state;
68   
69    @XmlAttribute
70    private String id;
71   
72    @XmlElement
73    @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class)
74    private Map<String, String> attributes;
75   
76    /**
77    * The composite string that is used to officially reference or publish the CLU. Note it may have an internal structure that each Institution may want to enforce. This structure may be composed from the other parts of the structure such as Level amp; Division, but may include items such as cluType.
78    */
 
79  824 toggle public String getCode() {
80  824 return code;
81    }
82   
 
83  1229 toggle public void setCode(String code) {
84  1229 this.code = code;
85    }
86   
87    /**
88    * Abbreviated name of the CLU, commonly used on transcripts
89    */
 
90  843 toggle public String getShortName() {
91  843 return shortName;
92    }
93   
 
94  1183 toggle public void setShortName(String shortName) {
95  1183 this.shortName = shortName;
96    }
97   
 
98  756 toggle public String getLongName() {
99  756 return longName;
100    }
101   
 
102  1153 toggle public void setLongName(String longName) {
103  1153 this.longName = longName;
104    }
105   
106    /**
107    * A code that indicates whether this is introductory, advanced, etc.
108    */
 
109  366 toggle public String getLevel() {
110  366 return level;
111    }
112   
 
113  1038 toggle public void setLevel(String level) {
114  1038 this.level = level;
115    }
116   
117    /**
118    * A code that indicates what school, program, major, subject area, etc. Examples: "Chem", "18"
119    */
 
120  448 toggle public String getDivision() {
121  448 return division;
122    }
123   
 
124  1088 toggle public void setDivision(String division) {
125  1088 this.division = division;
126    }
127   
128    /*
129    * The "extra" portion of the code, which usually corresponds with the most detailed part of the number.
130    */
 
131  448 toggle public String getSuffixCode() {
132  448 return suffixCode;
133    }
134   
 
135  1088 toggle public void setSuffixCode(String suffixCode) {
136  1088 this.suffixCode = suffixCode;
137    }
138   
139    /**
140    * A number that indicates the sequence or order of versions in cases where several different Clus have the same offical Identifier
141    */
 
142  399 toggle public String getVariation() {
143  399 return variation;
144    }
145   
 
146  1060 toggle public void setVariation(String variation) {
147  1060 this.variation = variation;
148    }
149   
150    /*
151    * The identifier of the organization associated with this cluIdentifier.
152    */
 
153  310 toggle public String getOrgId() {
154  310 return orgId;
155    }
156   
 
157  1009 toggle public void setOrgId(String orgId) {
158  1009 this.orgId = orgId;
159    }
160   
161    /**
162    * Identifies the type of usage for the identifier. While most usages will have the same data constraints, this may provide some context around what the specific intent is for this identifier. (Ex. Why does this alternate identifier exist?)
163    */
 
164  1122 toggle public String getType() {
165  1122 return type;
166    }
167   
 
168  1229 toggle public void setType(String type) {
169  1229 this.type = type;
170    }
171   
172    /**
173    * Identifies the state of the identifier. Values for this field are constrained to values present within the cluIdentifierState enumeration.
174    */
 
175  309 toggle public String getState() {
176  309 return state;
177    }
178   
 
179  1176 toggle public void setState(String state) {
180  1176 this.state = state;
181    }
182   
183    /**
184    * Identifies the particular identifier structure. This is set by the service to be able to determine changes and alterations to the structure as well as provides a handle for searches. This structure is not accessible through unique operations, and it is strongly recommended that no external references to this particular identifier be maintained.
185    */
 
186  430 toggle public String getId() {
187  430 return id;
188    }
189   
 
190  1109 toggle public void setId(String id) {
191  1109 this.id = id;
192    }
193   
 
194  319 toggle public Map<String, String> getAttributes() {
195  319 if (attributes == null) {
196  131 attributes = new HashMap<String, String>();
197    }
198   
199  319 return attributes;
200    }
201   
 
202  1001 toggle public void setAttributes(Map<String, String> attributes) {
203  1001 this.attributes = attributes;
204    }
205    }