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 GradeTypeInfo 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 desc; |
52 | |
|
53 | |
@XmlElement |
54 | |
private Date effectiveDate; |
55 | |
|
56 | |
@XmlElement |
57 | |
private Date expirationDate; |
58 | |
|
59 | |
@XmlElement |
60 | |
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
61 | |
private Map<String, String> attributes; |
62 | |
|
63 | |
@XmlAttribute(name="key") |
64 | |
private String id; |
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
public String getName() { |
70 | 0 | return name; |
71 | |
} |
72 | |
|
73 | |
public void setName(String name) { |
74 | 0 | this.name = name; |
75 | 0 | } |
76 | |
|
77 | |
|
78 | |
|
79 | |
|
80 | |
public String getDesc() { |
81 | 0 | return desc; |
82 | |
} |
83 | |
|
84 | |
public void setDesc(String desc) { |
85 | 0 | this.desc = desc; |
86 | 0 | } |
87 | |
|
88 | |
|
89 | |
|
90 | |
|
91 | |
public Date getEffectiveDate() { |
92 | 0 | return effectiveDate; |
93 | |
} |
94 | |
|
95 | |
public void setEffectiveDate(Date effectiveDate) { |
96 | 0 | this.effectiveDate = effectiveDate; |
97 | 0 | } |
98 | |
|
99 | |
|
100 | |
|
101 | |
|
102 | |
public Date getExpirationDate() { |
103 | 0 | return expirationDate; |
104 | |
} |
105 | |
|
106 | |
public void setExpirationDate(Date expirationDate) { |
107 | 0 | this.expirationDate = expirationDate; |
108 | 0 | } |
109 | |
|
110 | |
|
111 | |
|
112 | |
|
113 | |
public Map<String, String> getAttributes() { |
114 | 0 | if (attributes == null) { |
115 | 0 | attributes = new HashMap<String, String>(); |
116 | |
} |
117 | 0 | return attributes; |
118 | |
} |
119 | |
|
120 | |
public void setAttributes(Map<String, String> attributes) { |
121 | 0 | this.attributes = attributes; |
122 | 0 | } |
123 | |
|
124 | |
|
125 | |
|
126 | |
|
127 | |
public String getId() { |
128 | 0 | return id; |
129 | |
} |
130 | |
|
131 | |
public void setId(String id) { |
132 | 0 | this.id = id; |
133 | 0 | } |
134 | |
} |