Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
CluIdentifierInfo |
|
| 1.0;1 |
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 | ||
20 | import javax.xml.bind.annotation.XmlAccessType; | |
21 | import javax.xml.bind.annotation.XmlAccessorType; | |
22 | import javax.xml.bind.annotation.XmlAttribute; | |
23 | import javax.xml.bind.annotation.XmlElement; | |
24 | ||
25 | import org.kuali.student.core.dto.Idable; | |
26 | ||
27 | /** | |
28 | *Detailed information about the human readable form of a CLU Identifier | |
29 | */ | |
30 | @XmlAccessorType(XmlAccessType.FIELD) | |
31 | 0 | public class CluIdentifierInfo implements Serializable, Idable { |
32 | ||
33 | private static final long serialVersionUID = 1L; | |
34 | ||
35 | @XmlElement | |
36 | private String code; | |
37 | ||
38 | @XmlElement | |
39 | private String shortName; | |
40 | ||
41 | @XmlElement | |
42 | private String longName; | |
43 | ||
44 | @XmlElement | |
45 | private String level; | |
46 | ||
47 | @XmlElement | |
48 | private String division; | |
49 | ||
50 | @XmlElement | |
51 | private String variation; | |
52 | ||
53 | @XmlElement | |
54 | private String suffixCode; | |
55 | ||
56 | @XmlElement | |
57 | private String orgId; | |
58 | ||
59 | @XmlAttribute | |
60 | private String type; | |
61 | ||
62 | @XmlAttribute | |
63 | private String state; | |
64 | ||
65 | @XmlAttribute | |
66 | private String id; | |
67 | ||
68 | /** | |
69 | * 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. | |
70 | */ | |
71 | public String getCode() { | |
72 | 0 | return code; |
73 | } | |
74 | ||
75 | public void setCode(String code) { | |
76 | 0 | this.code = code; |
77 | 0 | } |
78 | ||
79 | /** | |
80 | * Abbreviated name of the CLU, commonly used on transcripts | |
81 | */ | |
82 | public String getShortName() { | |
83 | 0 | return shortName; |
84 | } | |
85 | ||
86 | public void setShortName(String shortName) { | |
87 | 0 | this.shortName = shortName; |
88 | 0 | } |
89 | ||
90 | public String getLongName() { | |
91 | 0 | return longName; |
92 | } | |
93 | ||
94 | public void setLongName(String longName) { | |
95 | 0 | this.longName = longName; |
96 | 0 | } |
97 | ||
98 | /** | |
99 | * A code that indicates whether this is introductory, advanced, etc. | |
100 | */ | |
101 | public String getLevel() { | |
102 | 0 | return level; |
103 | } | |
104 | ||
105 | public void setLevel(String level) { | |
106 | 0 | this.level = level; |
107 | 0 | } |
108 | ||
109 | /** | |
110 | * A code that indicates what school, program, major, subject area, etc. Examples: "Chem", "18" | |
111 | */ | |
112 | public String getDivision() { | |
113 | 0 | return division; |
114 | } | |
115 | ||
116 | public void setDivision(String division) { | |
117 | 0 | this.division = division; |
118 | 0 | } |
119 | ||
120 | /* | |
121 | * The "extra" portion of the code, which usually corresponds with the most detailed part of the number. | |
122 | */ | |
123 | public String getSuffixCode() { | |
124 | 0 | return suffixCode; |
125 | } | |
126 | ||
127 | public void setSuffixCode(String suffixCode) { | |
128 | 0 | this.suffixCode = suffixCode; |
129 | 0 | } |
130 | ||
131 | /** | |
132 | * A number that indicates the sequence or order of versions in cases where several different Clus have the same offical Identifier | |
133 | */ | |
134 | public String getVariation() { | |
135 | 0 | return variation; |
136 | } | |
137 | ||
138 | public void setVariation(String variation) { | |
139 | 0 | this.variation = variation; |
140 | 0 | } |
141 | ||
142 | /* | |
143 | * The identifier of the organization associated with this cluIdentifier. | |
144 | */ | |
145 | public String getOrgId() { | |
146 | 0 | return orgId; |
147 | } | |
148 | ||
149 | public void setOrgId(String orgId) { | |
150 | 0 | this.orgId = orgId; |
151 | 0 | } |
152 | ||
153 | /** | |
154 | * 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?) | |
155 | */ | |
156 | public String getType() { | |
157 | 0 | return type; |
158 | } | |
159 | ||
160 | public void setType(String type) { | |
161 | 0 | this.type = type; |
162 | 0 | } |
163 | ||
164 | /** | |
165 | * Identifies the state of the identifier. Values for this field are constrained to values present within the cluIdentifierState enumeration. | |
166 | */ | |
167 | public String getState() { | |
168 | 0 | return state; |
169 | } | |
170 | ||
171 | public void setState(String state) { | |
172 | 0 | this.state = state; |
173 | 0 | } |
174 | ||
175 | /** | |
176 | * 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. | |
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 | } |