1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.lum.lrc.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.Date; |
20 | |
import java.util.HashMap; |
21 | |
import java.util.Map; |
22 | |
|
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAttribute; |
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
28 | |
|
29 | |
import org.kuali.student.common.dto.HasAttributes; |
30 | |
import org.kuali.student.common.dto.Idable; |
31 | |
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
@XmlAccessorType(XmlAccessType.FIELD) |
43 | 0 | public class GradeInfo implements Serializable, Idable, HasAttributes { |
44 | |
|
45 | |
private static final long serialVersionUID = 1L; |
46 | |
|
47 | |
@XmlElement |
48 | |
private String name; |
49 | |
|
50 | |
@XmlElement |
51 | |
private String value; |
52 | |
|
53 | |
@XmlElement |
54 | |
private String scaleKey; |
55 | |
|
56 | |
@XmlElement |
57 | |
private String rank; |
58 | |
|
59 | |
@XmlElement |
60 | |
private Date effectiveDate; |
61 | |
|
62 | |
@XmlElement |
63 | |
private Date expirationDate; |
64 | |
|
65 | |
@XmlElement |
66 | |
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
67 | |
private Map<String, String> attributes; |
68 | |
|
69 | |
@XmlAttribute |
70 | |
private String type; |
71 | |
|
72 | |
@XmlAttribute(name="key") |
73 | |
private String id; |
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
public String getName() { |
79 | 0 | return name; |
80 | |
} |
81 | |
|
82 | |
public void setName(String name) { |
83 | 0 | this.name = name; |
84 | 0 | } |
85 | |
|
86 | |
|
87 | |
|
88 | |
|
89 | |
public String getValue() { |
90 | 0 | return value; |
91 | |
} |
92 | |
|
93 | |
public void setValue(String value) { |
94 | 0 | this.value = value; |
95 | 0 | } |
96 | |
|
97 | |
|
98 | |
|
99 | |
|
100 | |
public String getScaleKey() { |
101 | 0 | return scaleKey; |
102 | |
} |
103 | |
|
104 | |
public void setScaleKey(String scaleKey) { |
105 | 0 | this.scaleKey = scaleKey; |
106 | 0 | } |
107 | |
|
108 | |
|
109 | |
|
110 | |
|
111 | |
public String getRank() { |
112 | 0 | return rank; |
113 | |
} |
114 | |
|
115 | |
public void setRank(String rank) { |
116 | 0 | this.rank = rank; |
117 | 0 | } |
118 | |
|
119 | |
|
120 | |
|
121 | |
|
122 | |
public Date getEffectiveDate() { |
123 | 0 | return effectiveDate; |
124 | |
} |
125 | |
|
126 | |
public void setEffectiveDate(Date effectiveDate) { |
127 | 0 | this.effectiveDate = effectiveDate; |
128 | 0 | } |
129 | |
|
130 | |
|
131 | |
|
132 | |
|
133 | |
public Date getExpirationDate() { |
134 | 0 | return expirationDate; |
135 | |
} |
136 | |
|
137 | |
public void setExpirationDate(Date expirationDate) { |
138 | 0 | this.expirationDate = expirationDate; |
139 | 0 | } |
140 | |
|
141 | |
|
142 | |
|
143 | |
|
144 | |
public Map<String, String> getAttributes() { |
145 | 0 | if (attributes == null) { |
146 | 0 | attributes = new HashMap<String, String>(); |
147 | |
} |
148 | 0 | return attributes; |
149 | |
} |
150 | |
|
151 | |
public void setAttributes(Map<String, String> attributes) { |
152 | 0 | this.attributes = attributes; |
153 | 0 | } |
154 | |
|
155 | |
|
156 | |
|
157 | |
|
158 | |
public String getType() { |
159 | 0 | return type; |
160 | |
} |
161 | |
|
162 | |
public void setType(String type) { |
163 | 0 | this.type = type; |
164 | 0 | } |
165 | |
|
166 | |
|
167 | |
|
168 | |
|
169 | |
public String getId() { |
170 | 0 | return id; |
171 | |
} |
172 | |
|
173 | |
public void setId(String id) { |
174 | 0 | this.id = id; |
175 | 0 | } |
176 | |
} |