1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.common.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.core.ws.binding.JaxbAttributeMapListAdapter; |
30 | |
|
31 | |
@SuppressWarnings("serial") |
32 | |
@XmlAccessorType(XmlAccessType.FIELD) |
33 | 0 | public abstract class TypeInfo implements Serializable, Idable, HasAttributes { |
34 | |
|
35 | |
@XmlAttribute(name="key") |
36 | |
private String id; |
37 | |
|
38 | |
@XmlElement |
39 | |
private String name; |
40 | |
|
41 | |
@XmlElement(name ="desc") |
42 | |
private String descr; |
43 | |
|
44 | |
@XmlElement |
45 | |
private Date effectiveDate; |
46 | |
|
47 | |
@XmlElement |
48 | |
private Date expirationDate; |
49 | |
|
50 | |
@XmlElement |
51 | |
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
52 | |
private Map<String, String> attributes; |
53 | |
|
54 | |
public String getName(){ |
55 | 0 | return name; |
56 | |
} |
57 | |
|
58 | |
public void setName(String name){ |
59 | 0 | this.name = name; |
60 | 0 | } |
61 | |
|
62 | |
public String getDescr(){ |
63 | 0 | return descr; |
64 | |
} |
65 | |
|
66 | |
public void setDescr(String descr){ |
67 | 0 | this.descr = descr; |
68 | 0 | } |
69 | |
|
70 | |
public Date getEffectiveDate(){ |
71 | 0 | return effectiveDate; |
72 | |
} |
73 | |
|
74 | |
public void setEffectiveDate(Date effectiveDate){ |
75 | 0 | this.effectiveDate = effectiveDate; |
76 | 0 | } |
77 | |
|
78 | |
public Date getExpirationDate(){ |
79 | 0 | return expirationDate; |
80 | |
} |
81 | |
|
82 | |
public void setExpirationDate(Date expirationDate){ |
83 | 0 | this.expirationDate = expirationDate; |
84 | 0 | } |
85 | |
|
86 | |
public Map<String, String> getAttributes(){ |
87 | 0 | if(attributes == null){ |
88 | 0 | attributes = new HashMap<String, String>(); |
89 | |
} |
90 | 0 | return attributes; |
91 | |
} |
92 | |
|
93 | |
public void setAttributes(Map<String, String> attributes){ |
94 | 0 | this.attributes = attributes; |
95 | 0 | } |
96 | |
|
97 | |
public String getId(){ |
98 | 0 | return id; |
99 | |
} |
100 | |
|
101 | |
public void setId(String id){ |
102 | 0 | this.id = id; |
103 | 0 | } |
104 | |
} |